/*********************************************************************************
* FreeOpcUa compile
* 说明:
* 记录一下FreeOpcUa编译过程中遇到的错误,以及如何避免。
*
* 2017-11-22 深圳 南山平山村 曾剑锋
********************************************************************************/ 一、参考文档:
. FreeOpcUa/freeopcua
https://github.com/FreeOpcUa/freeopcua
. Boost “no such file or directory”
https://stackoverflow.com/questions/12241152/boost-no-such-file-or-directory
. undefined macro: AC_PROG_LIBTOOL
https://github.com/maxmind/libmaxminddb/issues/9
. 解决: g++: internal compiler error: Killed (program cc1plus)
http://ittony.blog.51cto.com/6242212/1687469
. Thread: swapon - operation not permitted
https://ubuntuforums.org/showthread.php?t=1329211
. src/lxml/etree_defs.h::: 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
. UaExpert is available for Windows and Linux.
https://www.unified-automation.com/products/development-tools/uaexpert.html 二、Compiler:
. autoreconf -ivf
. ./configure --prefix=`pwd`/_install
. make
. make check
. make install
. cd _install
. LD_LIBRARY_PATH=./lib ./bin/opcuaserver 三、Compiler Error & Fix
. configure.ac:: error: possibly undefined macro: AC_PROG_LIBTOOL
sudo apt-get install libtool
. fatal error: boost/any.hpp: No such file or directory
sudo apt-get install libboost-dev
. g++: internal compiler error: Killed (program cc1plus)
这是在VPS上编译出错了,后来使用自己的电脑编译,没有这个问题,应该是内存太小了,不过VPS不支持swap修改。
. fatal error: libxml/uri.h: No such file or directory
sudo apt-get install libxml2-dev
. /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
. sudo apt-cache search libboost-
. sudo apt-cache search libboost-thread
. sudo apt-cache search libboost-filesystem
. sudo apt-cache search libboost-system
. sudo apt-cache search libboost-program-options
. sudo apt-cache search libboost-python
. sudo apt-get install libboost-thread-dev
. sudo apt-get install libboost-filesystem-dev
. sudo apt-get install libboost-system-dev
. sudo apt-get install libboost-program-options-dev
. sudo apt-get install libboost-pthon-dev
. fatal error: cppunit/extensions/Helpermacros.h: No such file or directory
sudo apt-get install libcppunit-dev

FreeOpcUa compile的更多相关文章

  1. Angular源码分析之$compile

    @(Angular) $compile,在Angular中即"编译"服务,它涉及到Angular应用的"编译"和"链接"两个阶段,根据从DO ...

  2. Compile FreeCAD on Windows

    Compile FreeCAD on Windows eryar@163.com 1.Introduction FreeCAD是一个参数化的三维造型软件,主要用于任意大小的实际模型的设计.参数化的建模 ...

  3. maven 加入json-lib.jar 报错 Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile

    <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</art ...

  4. $compile

    <html ng-app="compile"> <head> <script src="http://apps.bdimg.com/libs ...

  5. 关于The C compiler "arm-none-eabi-gcc" is not able to compile a simple test program. 的错误自省...

    在 GCC ARM Embedded https://launchpad.net/gcc-arm-embedded/ 上面下载了个arm-none-eabi-gcc 用cmake 编译时 #指定C交叉 ...

  6. My first makefile to compile multiple C files

    I have three files to compile: main.c, func.c,  func.h The steps: 1   main.c   to   main.o 2   func. ...

  7. angular中的compile和link函数

    angular中的compile和link函数 前言 这篇文章,我们将通过一个实例来了解 Angular 的 directives (指令)是如何处理的.Angular 是如何在 HTML 中找到这些 ...

  8. Angular使用$compile为从Ajax加载的HTML绑定ng-click事件

    这是一个Angular使用$compile为从Ajax加载的HTML绑定ng-click事件的实现方式,由于近期忙碌,就先放代码.代码如下: <table data-ng-table=" ...

  9. Maven命令行使用:mvn clean compile(编译)

    先把命令行切换到Maven项目的根目录,比如:/d/xxxwork/java/maven-test,然后执行命令: mvn clean compile 执行结果如下: [INFO] Scanning ...

随机推荐

  1. c++ 数组元素拷贝到容器(copy)

    #include <iostream> // cout #include <algorithm> // copy #include <vector> // vect ...

  2. API接口自动化之1 常见的http请求

    常见的HTTP请求 就我所想到的,目前如果想做http/https请求接口自动户化,要处理的一些区别 get请求post请求 httphttps 单个值键值对键值对的搭配方式 POST请求体,后续讲一 ...

  3. Hadoop 部分截图

  4. Chrome与之驱动对应的版本

    看到网上基本没有最新的chromedriver与chrome的对应关系表,便兴起整理了一份如下,希望对大家有用: chromedriver版本 支持的Chrome版本 v2.46 v71-73 v2. ...

  5. crond 的注意点

    本来在控制台调试的好好的程序,一通过crond运行, 就执行不了. 一般需要注意: 1) 环境变量 当前目录 会变成用户的Home 2)  /var/log/messages 可以看出 crond 调 ...

  6. JS-Object(3) 继承(prototype方式, 类方式); javascript6的知识(部分)

    原型方式的继承 创建child object classes(constructors) , 子类如何从父类中继承特性. 原型链继承prototypal inheritance (ruby中的继承也是 ...

  7. Confluence 6 的高级 Crowd 设置

    启用嵌套用户组(Enable Nested Groups) 为嵌套组启用或禁用支持. 在启用嵌套用户组之前,你需要检查你在 Crowd 中定义的目录能够支持嵌套用户组.当嵌套用户组启用成功后,你可以将 ...

  8. 当保存在Session中的对象,取出后,在外部发生改变时会怎样

    return_reason_model model = new return_reason_model(); model.F_RetunrnReason = "; HttpContext.S ...

  9. Hadoop生产环境搭建(含HA、Federation)

    Hadoop生产环境搭建 1. 将安装包hadoop-2.x.x.tar.gz存放到某一目录下,并解压. 2. 修改解压后的目录中的文件夹etc/hadoop下的配置文件(若文件不存在,自己创建.) ...

  10. HDU 3720 深搜 枚举

    DES:从23个队员中选出4—4—2—1共4种11人来组成比赛队伍.给出每个人对每个职位的能力值.给出m组人在一起时会产生的附加效果.问你整场比赛人员的能力和最高是多少. 用深搜暴力枚举每种类型的人选 ...