准备:

Centos7ministall的系统:

root权限下:

yum install -y epel-release

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

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

##需要的包参考: https://docs.epics-controls.org/projects/how-tos/en/latest/getting-started/linux-packages.html

adduser ioc

mkdir /half          #以合肥先进光源为例

chown -R ioc:ioc /half

cd /half

su ioc

mkdir epics

cd epics

############下载和编译epics base#################################

git clone -b 3.15 https://git.launchpad.net/epics-base

cd epics-base

make

来自 <https://epics-controls.org/resources-and-support/base/series-3-15/>

或者:

git clone --recursive -b 7.0 https://git.launchpad.net/epics-base base-7.0
cd base-7.0

make

来自 <https://epics-controls.org/resources-and-support/base/epics-7/>

选择3.15或7编译,或者分别编译,再把某一个ln -s 到base

After compiling you should put the path into $HOME/.profile or into $HOME/.bashrc by adding the following to either one of those files:

export EPICS_BASE=${HOME}/EPICS/epics-base
export EPICS_HOST_ARCH=$(${EPICS_BASE}/startup/EpicsHostArch)
export PATH=${EPICS_BASE}/bin/${EPICS_HOST_ARCH}:${PATH}

EpicsHostArch is a program provided by EPICS that returns the architecture of your system. Thus the code above should be fine for every architecture.

来自 <https://docs.epics-controls.org/projects/how-tos/en/latest/getting-started/installation.html>

之后按上面配好环境变量

############上面是下载和编译base##########################

没有意外的话,上面应该把base编译通过了。

############下载和编译synApps(当前最新版是6.1 --2020.7.15)#############

# 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:
bash ./assemble_synApps.sh           #一次可能不能把所有的包抓下来,多运行几次

之后进入support目录:

make release

make

来自 <https://github.com/EPICS-synApps/support>

之后下载aravisGigE:

wget https://github.com/areaDetector/aravisGigE/archive/R3-0.tar.gz

解压到areadetector 目录下

之后进入aravisGigE:

./install.sh

make

至此aravisGigE应该编译通过了,下面就可以添加摄像头了:

Adding a new camera

  • Run bin/linux-x86/arv-tool-0.2 -n "<device_name>" genicam > "<camera_model>.xml" to download the genicam xml data from the selected device cameras

    • E.g. bin/linux-x86/arv-tool-0.2 -n "Allied Vision Technologies-50-0503318719" genicam > AVT_Manta_G125B.xml
  • Make sure the generated file doesn't have a space at the start of it
  • Run aravisGigEApp/src/makeDbAndEdl.py <genicam_xml> <camera_name>
    • E.g. aravisGigEApp/src/makeDbAndEdl.py AVT_Manta_G125B.xml AVT_Manta
  • This should then create:
    • aravisGigEApp/Db/<camera_name>.template
    • aravisGigEApp/opi/edl/<camera_name>.edl
    • aravisGigEApp/opi/edl/<camera_name>-features.edl
  • Once you have decided on the most useful features, copy them from <camera_name>-features.edl and paste them into <camera_name>.edl in order to create a useful summary screen
  • If you are using medm, or want to generate CSS-Boy or caQtDM screens from medm screens then run aravisGigEApp/src/makeAdl.py <genicam_xml> <camera_name>. This will generate <camera_name>-features_1.adl through <camera_name>-features_N.adl, where N depends on the number of features and the maximum screen width and height set in makeAdl.py.
  • Once you have decided on the most useful features, copy them from <camera_name>-features_*.adl into a new file called <camera_name>-features.adl in order to create a useful summary screen.

来自 <https://github.com/areaDetector/aravisGigE>

cd /half/epics/synApps/support/areaDetector-master/aravisGigE/bin/linux-x86_64

没发现设备,需要关闭防火墙:

systemctl disable firewalld

systemctl stop firewalld 之后:

之后:

[ioc@localhost linux-x86_64]$ pwd

/half/epics/synApps/support/areaDetector-master/aravisGigE/bin/linux-x86_64

[ioc@localhost linux-x86_64]$ ../../aravisGigEApp/src/makeDbAndEdl.py HIK-MV-CA004-10GM.xml HIK720

More than 16 enum entries for PixelFormat mbbi record, discarding additional options.

If needed, edit the Enumeration tag for PixelFormat to select the 16 you want.

More than 16 enum entries for TestPattern mbbi record, discarding additional options.

If needed, edit the Enumeration tag for TestPattern to select the 16 you want.

Don't know what to do with Register

More than 16 enum entries for GevSupportedOptionSelector mbbi record, discarding additional options.

If needed, edit the Enumeration tag for GevSupportedOptionSelector to select the 16 you want.

More than 16 enum entries for ISPawbDebugSelector mbbi record, discarding additional options.

If needed, edit the Enumeration tag for ISPawbDebugSelector to select the 16 you want.

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

[ioc@localhost linux-x86_64]$ ../../aravisGigEApp/src/makeAdl.py HIK-MV-CA004-10GM.xml HIK720

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

Don't know what to do with Register

[ioc@localhost linux-x86_64]$

会在/half/epics/synApps/support/areaDetector-master/aravisGigE/aravisGigEApp/Db生成template文件,copy至/half/epics/synApps/support/areaDetector-master/aravisGigE/db

之后修改:/half/epics/synApps/support/areaDetector-master/aravisGigE/iocs/aravisGigEIOC/iocBoot/iocAravisGigE/st.cmd:

aravisCameraConfig("$(PORT)", "Hikvision-00D22036189")

dbLoadRecords("$(ARAVISGIGE)/db/HIK720.template","P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1")

load相应摄像头的template和摄像头代号,之后./start_epics就可以运行起IOC了。

以上过程在Centos7下都通过了。尝试过在centos8下做,但是在tirpc那卡住了,有空的可以在8上试试。

Centos7下areaDetector IOC的编译的更多相关文章

  1. CentOS7下用jdk1.7编译hadoop-2.7.1全过程详解

    说实话,本人编译hadoop的过程比较曲折,但收获也很多,下面系统介绍一下CentOS7下编译hadoop-2.7.1的全过程吧. 先说明,32位Linux操作系统可以直接下载编译好的hadoop使用 ...

  2. centos7下vim8.1的编译安装教程

    之前安装YouCompleteMe的时候遇到vim版本不兼容的问题,看网上说是需要将vim版本提升到8.0及以上,然后就开始安装最新版本的vim,安装过程中的遇到了不少问题主要集中在配置方面和缺少插件 ...

  3. centos7下比特币源码编译安装

    今天我们介绍比特币的源码安装过程,是利用编译安装的 首先安装依赖 1 yum install -y boost-devel qt-devel protobuf-devel qrencode-devel ...

  4. centos7下使用n grok编译服务端和客户端穿透内网

    (发现博客园会屏蔽一些标题中的关键词,比如ngrok.内网穿透,原因不知,所以改了标题才能正常访问,) 有时候想在自己电脑.路由器或者树莓派上搭建一些web.vpn等服务让自己用,但是自己的电脑一般没 ...

  5. centos7下编译安装php-7.0.15(PHP-FPM)

    centos7下编译安装php-7.0.15(PHP-FPM) 一.下载php7源码包 http://php.net/downloads.php 如:php-7.0.15.tar.gz 二.安装所需依 ...

  6. Centos7 下编译 Openjdk8

    本文主要介绍如何在 Centos7 下编译 Openjdk8 源码,<深入理解java虚拟机>第二版网上好多 openjdk7 的帖子,编译 jdk8 和 7 还是有些差别的,比如大家经常 ...

  7. CentOS7下编译安装redis-5.0.9

    CentOS7下编译安装redis-5.0.9 本文地址http://yangjianyong.cn/?p=171转载无需经过作者本人授权 下载redis #code start wget https ...

  8. Linux CentOs7 下安装 redis

    Linux CentOs7 下安装 redis 请将以下命令放入linux命令行中运行 如果安装过程前没有安装GCC请先安装  命令如下 $ yum install gcc-c++ $ wget ht ...

  9. [转]Centos7下caffe的安装

    Centos7下caffe的安装 原文地址:http://blog.csdn.net/s2392735818/article/details/49796017   版权声明:本文为博主原创文章,未经博 ...

  10. Centos7下安装配置Redsocks

    Redsocks是一个开源的网络程序,代码依赖开源的libevent网络库.Redsocks允许你将所有TCP连接重定向到SOCKS或HTTPS代理,比如Shadowsocks(Centos7下安装配 ...

随机推荐

  1. Tauri+Rust+Vue 跨平台桌面应用简明教程(1)环境创建+系统事件+自定义菜单

    作者:小牛呼噜噜 | https://xiaoniuhululu.com 计算机内功.JAVA底层.面试相关资料等更多精彩文章在公众号「小牛呼噜噜 」 Tauri简介 Tauri 是一个工具包,可以帮 ...

  2. DevExpress中GridControl控件焦点改变时触发事件

    FocusedRowObjectChanged 事件.可以在焦点改变一行的时候触发对应的事件. 做一个记录 大家如果有问题可以 Console.WriteLine("加群"+&qu ...

  3. 第2-4-4章 规则引擎Drools规则属性-业务规则管理系统-组件化-中台

    目录 5. 规则属性 5.1 enabled属性 5.2 dialect属性 5.3 salience属性 5.4 no-loop属性 5.5 activation-group属性 5.6 agend ...

  4. Python3 Scrapy 框架学习

    1.安装scrapy 框架 windows 打开cmd输入 pip install Scrapy 2.新建一个项目: 比如这里我新建的项目名为first scrapy startproject fir ...

  5. Jmeter中用户定义的变量跟用户参数的区别

    用户定义的变量: 全局变量,可以跨线程组被调用,但是,在启动运行时,获取一次值,在运行过程中,不会再动态获取值.用户参数: 局部变量,只能在自己的线程组中被调用,不能直接跨线程组被调用:但是,它在启动 ...

  6. React Server Component: 混合式渲染

    作者:谢奇璇 React 官方对 Server Comopnent 是这样介绍的: zero-bundle-size React Server Components. 这是一种实验性探索,但相信该探索 ...

  7. Windows 服务器中使用 mysqldump 命令导出数据,解决中文乱码问题

    起因 环境:阿里云服务器(windows server).mysql(8.0.11) mysql> select @@version; +-----------+ | @@version | + ...

  8. static_cast和dynamic_cast

    C++的强制类型转换,除了继承自C语言的写法((目标类型)表达式)之外,还新增了4个关键字,分别是:static_cast.dynamic_cast.const_cast和reinterpret_ca ...

  9. 【Java】【数据库】索引为何使查询变得更快?--B+树

    排序数据的二分查找 二分查找的时间复杂度是\(O(log_2n)\),明显快于暴力搜索. 索引 建立索引的数据,就是通过事先排好顺序,在查找时可以应用二分查找来提高查询效率. 所以索引应该尽可能建立在 ...

  10. [数学建模]层次分析法AHP

    评价类问题. 问题: ① 评价的目标? ② 可选的方案? ③ 评价的指标? 分层 目标层.准则层.方案层 层次分析法可分为四个步骤建立: 第一步:标度确定和构造判断矩阵: 第二步:特征向量,特征根计算 ...