折騰了幾天,并且在永良和大神Mark Rivers的幫助下,終于編譯成功了,下面總結下流程:
準備:openEuler20.03-SP2-LTS的mininstall(可以用中文選項)
root權限下:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh --nodeps epel-release-latest-7.noarch.rpm
yum install -y git wget gcc gcc-c++ autoconf libtool libX11-devel libXext-devel libnet-devel libpcap-devel libusbx-devel libusb-devel intltool glibmm24-devel procServ re2c readline-devel perl-ExtUtils-Install make
yum install -y ninja-build meson glib2-devel libxml2-devel gtk3-devel gstreamer1 gstreamer1-devel gstreamer1-plugins-base-devel libnotify-devel gtk-doc gobject-introspection-devel zlib-devel
#上面幾條命令注意提示,是否安裝齊全,可能按提示要加--nobest選項
##需要的包參考: Packages required for EPICS on Centos 8 — EPICS How-Tos documentation
adduser ioc
mkdir /half #以合肥先進光源為例
chown -R ioc:ioc /half
cd /half
su ioc
mkdir epics
cd epics
########下載和編譯epics base7########
##git抓包不順的話需要翻墻VPN
git clone --recursive -b 7.0 https://git.launchpad.net/epics-base base
cd base
make
來自 <EPICS 7 - EPICS Controls/>
######下載和修改synApps的腳本(當前最新版是6.2 --2021.12.20)#####
# 1. download the installer script
wget https://raw.githubusercontent.com/EPICS-synApps/support/master/assemble_synApps.sh# 2. edit assemble_synApps.sh for your version of EPICS base and local directory paths
# 3. (optional) Specify the (new) directory name where synApps will be installed.
# This is the default:
# export SYNAPPS_DIR=synApps
# This directory will be created when assemble_synApps.sh is run.# 4. download & install the synApps source files:
# 來自:GitHub - EPICS-synApps/support: APS BCDA synApps module: support
修改這個檔案,我是按下面截圖注釋掉不需要的模塊,可以注釋掉更多就能少下載些:
bash ./assemble_synApps.sh #一次可能不能把所有的包抓下來,多運行幾次
之后進入support目錄:
make release
vi areaDetector-R3-11/configure/CONFIG_SITE.local
和以前的流程相比多了這部分,上面的截圖是Mark幫助修改的選項,下面是永良踩坑幫總結的幾條命令:
sudo yum install -y rpcgen libtirpc libtirpc-devel
sudo In-s /usr/include/tirpc/netconfig.h /usr/include/
sudo cp /usr/include/tirpc/rpc/* /usr/include/rpc/
make LDFLAGS=-ltirpc
之后安裝aravis驅動,root權限下:
取ADGenICam — areaDetector 3-11-2-gf866e7e documentation 里的這部分即可:
cd /usr/local
git clone https://github.com/AravisProject/aravis
cd aravis/
meson build
cd build
ninja-build
ninja-build install
編譯ADGenICam和ADAravis,普通用戶權限運行:
cd /half/epics/synApps/support/areaDetector-R3-11/
git clone https://github.com/areaDetector/ADGenICam.git
cd ADGenICam/make
cd ..
git clone https://github.com/areaDetector/ADAravis.git
cd ADAravis/
make
至此編譯環節就都結束了,后面參照:海康攝像頭 EPICS的ADAravis的IOC搭建 搭建IOC即可,
GraphicsMagick不知道有什么用,永良帶著這個模塊編譯通過了,我編譯synApps程序中怎么也搞不過去,就用了NO,還是喜歡base配合synApps編譯的流程,省得單獨每個模塊下載,還要改很多的組態檔,這個流程里現在只需要改兩個檔案即可,歡迎路過的愿意用openEuler的按流程跑一遍,有問題隨時呼我或永良,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/388045.html
標籤:其他


