在arm-linux环境下的编译ActiveMQ-CPP 嵌入式版本库
来源:互联网 发布:h5登录注册页面源码 编辑:程序博客网 时间:2024/05/29 19:18
(1) 编译安装cppunit-1.12.1 ,切换至该目录。
执行./configure LDFLAGS='-ldl --host=arm-linux --prefix=/usr/local/arm/cppunit/
成功之后,执行make,再执行make install 进行安装。这时可以到/usr/local下查看会生成cppunit目录。
注:
在linux能正常编译,但在solaris下make时遇到点问题,报错:
../../include/cppunit/portability/FloatingPoint.h:43: error: `finite' undeclared (first use this function)
解决办法:找到include/cppunit/portability/FloatingPoint.h,在前面加入#include <ieeefp.h> 即可
!!!!运行 ./configure 和make以后,出现错误:
undefined reference to `dlclose'
undefined reference to `dlopen'
undefined reference to `dlsym'
解决的方法是在 ./configure 后面加上参数LDFLAS=‘-ldl’:
- make clean
- ./configure LDFLAGS='-ldl'
- make
- sudo make install
(2) 编译安装apr-1.4.2 ,切换至该目录。
执行./configure --host=arm-linux --prefix=/usr/local/arm/apr / ac_cv_file__dev_zero="yes" ac_cv_func_setpgrp_void="yes" apr_cv_process_shared_works="yes" \apr_cv_mutex_robust_shared="no" apr_cv_tcp_nodelay_with_cork="yes" ac_cv_sizeof_struct_iovec="8" apr_cv_mutex_recursive="yes"
,执行make,再执行make install 进行安装。这时可以到/usr/local下查看会生成apr目录。
可能出现的错误
1:In file included from ./include/apr_pools.h:43,
from /lu/activemq/Libary/apr-1.4.2/include/arch/unix/../apr_private_common.h:24,
from /lu/activemq/Libary/apr-1.4.2/include/arch/unix/apr_private.h:951,
from passwd/apr_getpass.c:22:
./include/apr.h:488:2: error: #error no decision has been made on APR_PATH_MAX for your platform
make[1]: *** [passwd/apr_getpass.lo] Error 1
make[1]: Leaving directory `/lu/activemq/Libary/apr-1.4.2'
make: *** [all-recursive] Error 1
解决方法:修改apr.h
#include <limits.h> (Line 156)
为 #include <linux/limits.h>
(3)编译安装apr-util-1.3.9,切换至该目录。执行./configure --host=arm-linux --prefix=/usr/local/arm/aprutil --with-apr=/usr/local/arm/apr/
,执行make,执行make install。这时可以到/usr/local下查看会生成apache目录。
(4)编译安装apr-iconv-1.2.1 ,切换至该目录。执行./configure --prefix=/usr/local/apr-iconv/ --with-apr=/usr/local/apr/,执行make,再执行make install 进行安装。这时可以到/usr/local下查看会生成apr-conv目录。
(5)编译安装openssl 1.0.0a ,切换至该目录。执行./config --prefix=/usr/local/openssl/,执行sudo make,再执行sudo make install 进行安装。这时可以到/usr/local下查看会生成openssl目录。
(6)编译安装e2fsprogs,切换至该目录。执行./configure --prefix=/usr --with-root-prefix="" --enable-elf-shlibs,执行sudo make,再执行sudo make install 进行安装。
下载地址:http://e2fsprogs.sourceforge.net/
参考:http://man.chinaunix.net/linux/lfs/htmlbook/chapter06/e2fsprogs.html
(7)编译安装expat, 切换至该目录。执行./configure --prefix=/usr,执行sudo make,再执行sudo make install 进行安装.
expat下载地址:http://prdownloads.sourceforge.net/expat/expat-1.95.7.tar.gz
(8)编译安装ActiveMQ-CPP ,切换至该目录。执行 ./configure --host=arm-linux --prefix=/usr/local/arm/ActiveMQ-CPP --with-apr=/usr/local/arm/apr/ --with-apr-util=/usr/local/arm/aprutil --with-cppunit=/usr/local/arm/cppunit --with-openssl=/usr/local/arm/openss
然后执行 sudo make && make install 编译安装
阅读全文
0 0
- 在arm-linux环境下的编译ActiveMQ-CPP 嵌入式版本库
- ActiveMQ-CPP在linux环境下的编译
- ActiveMQ-CPP在LINUX环境下的编译
- ActiveMQ-CPP在UNIX环境下的编译
- linux下automake编译ActiveMQ-Cpp为release版本,
- sqlite嵌入式数据库在arm-linux下的编译
- ActiveMQ-cpp 在windows下的编译备忘
- activemq-cpp-library在VS2015下的编译
- linux activemq-cpp编译
- 在linux下安装Activemq-Cpp
- Windows环境编译Activemq-cpp
- 【ARM】嵌入式 ARM Linux 下移植 USB 蓝牙、交叉编译 bluez 各种版本
- sqlite嵌入式数据库在arm-linux下的编译全攻略
- sqlite嵌入式数据库在arm-linux下的编译全攻略
- sqlite嵌入式数据库在arm-linux下的编译全攻略
- sqlite嵌入式数据库在arm-linux下的编译全攻略
- sqlite嵌入式数据库在arm-linux下的编译全攻略
- sqlite嵌入式数据库在arm-linux下的编译全攻略
- JavaScript基础学习笔记
- tensorflow 关于张量 shape 数组
- Modern C++ CI
- centos nginx配置https访问
- android 提示过时的几个方法
- 在arm-linux环境下的编译ActiveMQ-CPP 嵌入式版本库
- 机器学习(5)概念积累
- Android中Context的详细介绍
- leetcode 374[easy]--- Guess Number Higher or Lower
- linux常用库函数
- Kylin系列-使用Saiku+Kylin构建多维分析OLAP平台
- numpy中matrix 和 array的区别
- 建表时数据库建议使用 utf8mb4字符集
- 深度学习十大框架比较