当前位置: 首页 > 工具软件 > open62541 > 使用案例 >

open62541 编译

宣弘新
2023-12-01

一:源码下载

        https://gitee.com/mirrors/open62541.git

二:编译

        sudo apt-get install git build-essential gcc pkg-config cmake python

        # enable additional features
        sudo apt-get install cmake-curses-gui # for the ccmake graphical interface
        sudo apt-get install libmbedtls-dev # for encryption support
        sudo apt-get install check libsubunit-dev # for unit tests
        sudo apt-get install python-sphinx graphviz # for documentation generation
        sudo apt-get install python-sphinx-rtd-theme # documentation style

        cd open62541
        mkdir build
        cd build
        cmake  -DCMAKE_INSTALL_PREFIX=/home/keda/x64tool-root/open62541 ..
        make

        # select additional features
        cmake ..
        make

        # build documentation
        make doc # html documentation
        make doc_pdf # pdf documentation (requires LaTeX)
 类似资料: