• Debian11编译EPICS ADAravis记录


    openEuler下EPICS areaDetector的ADAravis包的编译https://blog.csdn.net/weixin_43767046/article/details/122042837

    曾写过上面的文,又尝试了一下在Debian下这个流程:

    准备:

    Debian11的基础安装(我用的是在proxmox下使用现成的模板新建的debian11的CT),git抓包需要自己找渠道设置环境变量翻墙。

    root权限下:

    1. #改更新源
    2. sed -i 's/ftp.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
    3. sed -i 's/security.debian.org/mirrors.ustc.edu.cn\/debian-security/g' /etc/apt/sources.list
    4. apt-get install git make gcc g++ #编译base需要

     编译base:

    1. adduser ioc
    2. mkdir /half #以合肥先进光源为例
    3. chown -R ioc:ioc /half
    4. cd /half
    5. su ioc
    6. mkdir epics
    7. cd epics
    8. ############下载和编译epics base7#################################
    9. git clone --recursive -b 7.0 https://git.launchpad.net/epics-base base-7.0
    10. ln -s base-7.0 base
    11. cd base
    12. make

     areaDetector需要的包:

    EPICS Products Required for Building areaDetector

    areaDetector requires EPICS base. R3.14.12.4 or higher, any 3.15 release should work.

    areaDetector also requires asyn. The most recent release of asyn is recommended.

    Each areaDetector detector module builds both a library and an EPICS IOC application. To build the library only EPICS base and asynDriver are required. To build the IOC application the synApps modules AUTOSAVE, BUSY, CALC, and SSCAN are required. If the CALC module is built with SNCSEQ support then SNCSEQ is also required. The most recent release of the synApps modules is recommended.

    The DEVIOCSTATS and ALIVE modules are optional.

    EPICS base, asyn and the synApps modules must be built before building areaDetector.

     su下运行:

    apt-get install libx11-dev libxext-dev wget re2c #编译areaDetector需要

    ######下载和修改synApps的脚本(当前最新版是6.2 --2022.9.19)#####

    # 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

    make

     apt-get install meson pkg-config  glib-2.0 libxml2-dev #编译下面驱动需要:

    之后安装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   #Debian已经有,不用专门装

    ninja install

    编译后面的ADAravis需要在su下先运行下面两条命令:

    1. cp /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h /usr/include/.
    2. apt-get install libusb-1.0.0-dev

    编译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

  • 相关阅读:
    CVPR2022 | 简单高效的语义分割体系结构
    c++ new新建对象原因
    2965. 找出缺失和重复的数字
    微信小程序:超强大微信小程序源码下载内含几十款功能王者战力查询,游戏扫码登录,王者巅峰信息查询等等支持流量主收益和CPS收益
    UML建模语言、设计原则、设计模式
    linux之iptables防火墙
    FastDFS数据迁移
    [深入研究4G/5G/6G专题-45]: L3信令控制-1-软件功能和整体架构
    SAP MASS增加PR字段-删除标识
    【四】关系模型 -- 关系代数
  • 原文地址:https://blog.csdn.net/weixin_43767046/article/details/126934809