Boost下载:点击跳转
编译过程:
- 
生成project-config.jam ./bootstrap.sh --with-libraries=filesystem,thread --with-toolset=gcc 
- 
修改project-config.jam(位于第12行附近) if ! gcc in [ feature.values <toolset> ] 
 {
 using gcc : arm : /opt/cluster-qt/2.5.3/sysroots/x86_64-sdrvsdk-linux/usr/bin/aarch64-sdrv-linux/aarch64-sdrv-linux-g++ --sysroot=/opt/cluster-qt/2.5.3/sysroots/aarch64-sdrv-linux ;
 }
3.执行编译
./b2 toolset=gcc-arm threading=multi link=shared
4.安装
./b2 install --prefix=$PWD/build
5、测试
#include <iostream>
#include <boost/algorithm/string.hpp>
int main() {
    std::string str = "Hello, World!";
    boost::to_upper(str);
    std::cout << str << std::endl;
    return 0;
}编译
aarch64-sdrv-linux-g++ main.c -o main -Lbuild/lib/ -lboost_filesystem -lboost_thread -Ibuild/include --sysroot=/opt/cluster-qt/2.5.3/sysroots/aarch64-sdrv-linux觉得有帮助的话,打赏一下呗。。
 
 
需要商务合作(定制程序)的欢迎私信!!