Skip to content

Commit

Permalink
更新文章内容
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzhenghan committed Mar 21, 2024
1 parent 168ca28 commit f6cc27c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions content/posts/EPICS-Qt安装.md
Original file line number Diff line number Diff line change
@@ -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", "龙芯"]
Expand Down Expand Up @@ -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
Expand All @@ -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的原因,只能通过上面的环境变量设置。

Expand All @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion content/posts/epics-ioc-access-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ ASG(<name>) [{
**INP`<index>`**:`index`必须是A到L中的一个值。类似于CALC record的INP字段。如果在ASG的规则中定义了CALC字段,则需要INP字段。
**RULE**:定义访问权限`<level>`必须为`0`或`1`。级别`1`字段的权限继承了级别`0`字段的权限。权限为`NONE`、`READ`和`WRITE`,`WRITE`也继承了`READ`权限。标准EPICS记录类型的所有字段除`VAL`、`CMD`(命令)和`RES`(重置)外都设置为1级。可选参数指定是否应捕获写入。请参阅下面关于捕获通道访问的一节介绍了如何使用此功能。如果未给定,则默认为`NOTRAPWRITE`。
**RULE**:定义访问权限`<level>`必须为`0`或`1`。级别`1`字段的权限继承了级别`0`字段的权限。权限为`NONE`、`READ`和`WRITE`,`WRITE`也继承了`READ`权限。标准EPICS记录类型的所有字段除`VAL`、`CMD`(命令)和`RES`(重置)外都设置为1级。可选参数指定是否应捕获写入如果未给定,则默认为`NOTRAPWRITE`。
`UAG`指定可以访问的用户访问组列表。如果未定义UAG,则允许所有用户访问。
Expand Down
2 changes: 1 addition & 1 deletion content/posts/龙芯开发板移植IgH EtherCAT Master.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`命令。否则,可以按照下面的步骤做相应修改。
Expand Down

0 comments on commit f6cc27c

Please sign in to comment.