• 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

  • 相关阅读:
    Centos7.6安装FTP
    各中间件性能、优缺点对比
    [免费专栏] Android安全之静态方式逆向APK应用浅析【手动注入smali+】+【IDA Pro静态分析so文件】+【IDA Pro基础使用讲解】
    记一次HEAP CORRUPTION DETECTED问题及解决
    老板要我写个APP自动化--准备阶段--01
    python:numpy查询定位赋值数值所在行列
    土豆清洗去皮机设计
    数据结构——新建一棵完全二叉树(C语言动态实现)
    Singleton、Scoped、Transient 的应用情景有哪些
    CEC2013(MATLAB):霸王龙优化算法(Tyrannosaurus optimization)求解CEC2013
  • 原文地址:https://blog.csdn.net/weixin_43767046/article/details/126934809