(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 編譯安裝