zoukankan      html  css  js  c++  java
  • FreeOpcUa compile

    /*********************************************************************************
     *                       FreeOpcUa compile
     * 说明:
     *     记录一下FreeOpcUa编译过程中遇到的错误,以及如何避免。
     *
     *                                              2017-11-22 深圳 南山平山村 曾剑锋
     ********************************************************************************/
    
    
    一、参考文档:
        1. FreeOpcUa/freeopcua
            https://github.com/FreeOpcUa/freeopcua
        2. Boost “no such file or directory”
            https://stackoverflow.com/questions/12241152/boost-no-such-file-or-directory
        3. undefined macro: AC_PROG_LIBTOOL
            https://github.com/maxmind/libmaxminddb/issues/9
        4. 解决: g++: internal compiler error: Killed (program cc1plus)
            http://ittony.blog.51cto.com/6242212/1687469
        5. Thread: swapon - operation not permitted
            https://ubuntuforums.org/showthread.php?t=1329211
        6. src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory
            https://stackoverflow.com/questions/15759150/src-lxml-etree-defs-h931-fatal-error-libxml-xmlversion-h-no-such-file-or-di
        7. UaExpert is available for Windows and Linux.
            https://www.unified-automation.com/products/development-tools/uaexpert.html
    
    二、Compiler:
        1. autoreconf -ivf
        2. ./configure --prefix=`pwd`/_install
        3. make 
        4. make check
        5. make install
        6. cd _install
        7. LD_LIBRARY_PATH=./lib ./bin/opcuaserver
    
    三、Compiler Error & Fix
        1. configure.ac:30: error: possibly undefined macro: AC_PROG_LIBTOOL
            sudo apt-get install libtool
        2. fatal error: boost/any.hpp: No such file or directory
            sudo apt-get install libboost-dev
        3. g++: internal compiler error: Killed (program cc1plus)
            这是在VPS上编译出错了,后来使用自己的电脑编译,没有这个问题,应该是内存太小了,不过VPS不支持swap修改。
        4. fatal error: libxml/uri.h: No such file or directory
            sudo apt-get install libxml2-dev   
        5. /usr/bin/ld: canot find -lboost_thread
           /usr/bin/ld: canot find -lboost_filesystem
           /usr/bin/ld: canot find -lboost_system
           /usr/bin/ld: canot find -lboost_program_options
           /usr/bin/ld: canot find -lboost_pthon
           1. sudo apt-cache search libboost-
           2. sudo apt-cache search libboost-thread
           3. sudo apt-cache search libboost-filesystem
           4. sudo apt-cache search libboost-system
           5. sudo apt-cache search libboost-program-options
           6. sudo apt-cache search libboost-python
           7. sudo apt-get install libboost-thread-dev
           8. sudo apt-get install libboost-filesystem-dev
           9. sudo apt-get install libboost-system-dev
           10. sudo apt-get install libboost-program-options-dev
           11. sudo apt-get install libboost-pthon-dev
        6. fatal error: cppunit/extensions/Helpermacros.h: No such file or directory
            sudo apt-get install libcppunit-dev
  • 相关阅读:
    洛谷 P1383 高级打字机==codevs 3333 高级打字机
    洛谷 P1525 关押罪犯==codevs 1069 关押罪犯[NOIP 2010]
    洛谷P2668 斗地主==codevs 4610 斗地主[NOIP 2015 day1 T3]
    poj1426
    3049 舞蹈家怀特先生
    1444 “破锣摇滚”乐队
    cocos2d-x开发的《派对小游戏》-github源代码分享
    【c语言】字符串替换空格:请实现一个函数,把字符串中的每一个空格替换成“%20”
    CAP理论与HBase
    也谈以人为本—— 服务型企业的管理随想
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/7878370.html
Copyright © 2011-2022 走看看