arm linux 下mq,在arm-linux環境下的編譯ActiveMQ-CPP 嵌入式版本庫

(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 即可

!!!!運行 ./configure 和make以后,出現錯誤:

undefined reference to `dlclose'

undefined reference to `dlopen'

undefined reference to `dlsym'

解決的方法是在 ./configure 后面加上參數LDFLAS=‘-ldl’:

make clean

./configureLDFLAGS='-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   (Line 156)

為 #include 

(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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值