1.下载
https://www.boost.org/users/history/version_1_74_0.html
2.解压
tar -zxvf boost_1_74_0.tar.gz
2.编译
./bootstrap.sh --with-libraries=filesystem,thread --with-toolset=gcc
3 替换gcc
修改配置文件project-config.jam,将下列的arm gcc编译器替换为你本机的编译器,比如我是用S32G的编译器
if ! gcc in [ feature.values <toolset> ]
{
using gcc : arm : /opt/windriver/hirain-linux/22.33/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/aarch64-wrs-linux/aarch64-wrs-linux-gcc ;
}
5.安装
./b2 install --prefix=/root/arm/c4