参考这几个博客
https://blog.csdn.net/github_30605157/article/details/60468727
https://blog.csdn.net/lx121451/article/details/78717603
https://blog.csdn.net/wei_xiaox126/article/details/41874853
https://www.cnblogs.com/xiaobingqianrui/p/9412130.htm
sudo mkdir /usr/local/third_party
把所有的库生成在third_party 目录下面
1:cppunit
./configure --prefix=/usr/local/third_party–host=arm-linux --build=arm-linux LDFLAGS=’-ldl’
sudo make -j4
sudo make install
2:apr-1.6.5
./configure --prefix=/usr/local/third_party
sudo make -j4
sduo make install
3:apr-util
./configure --prefix=/usr/local/third_party --with-apr=/usr/local/third_party–host=arm-linux --build=arm-linux
sudo make -j4
sudo make install
4: apr-iconv-1.2.1
./configure --prefix=/usr/local/third_party --with-apr=/usr/local/third_party
sudo make -j4
sudo make install
5: openssl
./config --prefix=/usr/local/third_party
sudo make -j4
sudo make install
6: ActiveMQ-CPP
./configure --host=arm-linux --prefix=/usr/local/third_party --with-apr=/usr/local/third_party --with-apr-util=/usr/local/third_party --with-cppunit=/usr/local/third_party --with-openssl=/usr/local/third_party
sudo make -j4
sudo make install
最终在/usr/local/third_party 生成所需要的库,