From f6cc27cdb2db0539d0720a05399452e7c18d1640 Mon Sep 17 00:00:00 2001 From: yangzhenghan Date: Thu, 21 Mar 2024 13:30:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E7=AB=A0=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../posts/EPICS-Qt\345\256\211\350\243\205.md" | 14 +++++++------- content/posts/epics-ioc-access-security.md | 2 +- ...\347\247\273\346\244\215IgH EtherCAT Master.md" | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git "a/content/posts/EPICS-Qt\345\256\211\350\243\205.md" "b/content/posts/EPICS-Qt\345\256\211\350\243\205.md" index 8ea3c1b..638fefc 100644 --- "a/content/posts/EPICS-Qt\345\256\211\350\243\205.md" +++ "b/content/posts/EPICS-Qt\345\256\211\350\243\205.md" @@ -1,7 +1,7 @@ --- title: "EPICS Qt安装" date: 2023-05-04T15:06:56+08:00 -lastmod: 2023-12-28T09:25:36+08:00 +lastmod: 2024-03-21T13:27:36+08:00 draft: false description: Linux上编译安装EPICS Qt tags: ["linux", "EPICS", "Qt", "龙芯"] @@ -99,7 +99,7 @@ git clone https://github.com/qtepics/qegui.git 在开始编译前,需要先配置一些环境变量(根据自己的实际情况设置)。具体可以参考 [EPICS Qt Environment Variables](https://qtepics.github.io/environment_variables.html) ```sh -export EPICS_HOST_ARCH=linux-loongarch64 +export EPICS_HOST_ARCH=linux-la64 export EPICS_BASE=/usr/local/epics/base-7.0.7 export ACAI=/usr/local/epics/modules/acai export QWT_INCLUDE_PATH=/usr/include/qwt @@ -120,7 +120,7 @@ cd ~/QtEpics/qeframework/archapplDataSup/ make ``` -编译完成后,可以看到`~/QtEpics/qeframework/lib/linux-loongarch64`目录下有`libarchapplData.a`、`libarchapplData.so`两个文件。 +编译完成后,可以看到`~/QtEpics/qeframework/lib/linux-la64`目录下有`libarchapplData.a`、`libarchapplData.so`两个文件。 然后依次编译 `qeframework` `qeplugin` `qegui`。EPICS Qt文档说明需要修改`configure/RELEASE`文件,但我这里修改后似乎没有生效,可能是使用了Qt Creator的原因,只能通过上面的环境变量设置。 @@ -136,15 +136,15 @@ make 最后将编译生成的文件复制到以下位置,例: ```sh -sudo cp ~/QtEpics/qeframework/lib/linux-loongarch64/libarchapplData.so /usr/lib/loongarch64-linux-gnu/ -sudo cp ~/QtEpics/qeframework/lib/linux-loongarch64/libQEFramework.so /usr/lib/loongarch64-linux-gnu/ -sudo cp ~/QtEpics/qeframework/lib/linux-loongarch64/designer/libQEPlugin.so /usr/lib/loongarch64-linux-gnu/qt5/plugins/designer/ +sudo cp ~/QtEpics/qeframework/lib/linux-la64/libarchapplData.so /usr/lib/loongarch64-linux-gnu/ +sudo cp ~/QtEpics/qeframework/lib/linux-la64/libQEFramework.so /usr/lib/loongarch64-linux-gnu/ +sudo cp ~/QtEpics/qeframework/lib/linux-la64/designer/libQEPlugin.so /usr/lib/loongarch64-linux-gnu/qt5/plugins/designer/ ``` 运行`QEGuiApp` ```sh -cd ~/epics/qtepics/qegui/bin/linux-loongarch64 +cd ~/epics/qtepics/qegui/bin/linux-la64 ./qegui ``` diff --git a/content/posts/epics-ioc-access-security.md b/content/posts/epics-ioc-access-security.md index 772ae6f..a36d088 100644 --- a/content/posts/epics-ioc-access-security.md +++ b/content/posts/epics-ioc-access-security.md @@ -111,7 +111,7 @@ ASG() [{ **INP``**:`index`必须是A到L中的一个值。类似于CALC record的INP字段。如果在ASG的规则中定义了CALC字段,则需要INP字段。 -**RULE**:定义访问权限``必须为`0`或`1`。级别`1`字段的权限继承了级别`0`字段的权限。权限为`NONE`、`READ`和`WRITE`,`WRITE`也继承了`READ`权限。标准EPICS记录类型的所有字段除`VAL`、`CMD`(命令)和`RES`(重置)外都设置为1级。可选参数指定是否应捕获写入。请参阅下面关于捕获通道访问的一节介绍了如何使用此功能。如果未给定,则默认为`NOTRAPWRITE`。 +**RULE**:定义访问权限``必须为`0`或`1`。级别`1`字段的权限继承了级别`0`字段的权限。权限为`NONE`、`READ`和`WRITE`,`WRITE`也继承了`READ`权限。标准EPICS记录类型的所有字段除`VAL`、`CMD`(命令)和`RES`(重置)外都设置为1级。可选参数指定是否应捕获写入,如果未给定,则默认为`NOTRAPWRITE`。 `UAG`指定可以访问的用户访问组列表。如果未定义UAG,则允许所有用户访问。 diff --git "a/content/posts/\351\276\231\350\212\257\345\274\200\345\217\221\346\235\277\347\247\273\346\244\215IgH EtherCAT Master.md" "b/content/posts/\351\276\231\350\212\257\345\274\200\345\217\221\346\235\277\347\247\273\346\244\215IgH EtherCAT Master.md" index 4b2cdff..533840a 100644 --- "a/content/posts/\351\276\231\350\212\257\345\274\200\345\217\221\346\235\277\347\247\273\346\244\215IgH EtherCAT Master.md" +++ "b/content/posts/\351\276\231\350\212\257\345\274\200\345\217\221\346\235\277\347\247\273\346\244\215IgH EtherCAT Master.md" @@ -747,7 +747,7 @@ usage: scanner [-m master_index] [-s] [-q] scanner.xml socket_path |lib/libethercat.so*|/usr/lib/libethercat.so*| |modules/|/lib/modules/5.10.0-rt17.lsgd/| |sbin/ethercatctl|/sbin/ethercatctl| -|share/bash-completion/|usr/share/bash-completion/| +|share/bash-completion/|/usr/share/bash-completion/| > 注意:如果系统目录存在`/lib/modules/{内核版本}`目录,则可以将`modules`目录下的`ec_master.ko`和`ec_generic.ko`复制到该目录下,然后在终端执行`depmod`命令。否则,可以按照下面的步骤做相应修改。