在做rk3568开发,默认的文件系统中不带boost库,所以需要自己重新交叉编译boost
交叉编译在ubuntu18.04虚拟机中进行,事先需要安装交叉编译器aarch64-linux-gnu-gcc并下载boost_1_73_0.tar.gz
tar -zxvf boost_1_73_0.tar.gz解压源码文件
进入目录
cd boost_1_73_0
查看可选库
./bootstrap.sh --show-libraries
显示结果
root@ubuntu:/home/ireal/third/boost_1_73_0# ./bootstrap.sh --show-libraries
Building Boost.Build engine with toolset gcc... tools/build/src/engine/b2
The following Boost libraries have portions that require a separate build
and installation step. Any library not listed here can be used by including
the headers only.
The Boost libraries requiring separate building and installation are:
- atomic
- chrono
- container
- context
- contract
- coroutine
- date_time
- exception<

本文详细描述了如何在rk3568开发中,由于默认文件系统不包含Boost库,而在Ubuntu18.04虚拟机上使用交叉编译器aarch64-linux-gnu-gcc,选择filesystem,system,thread三个库进行单独编译和安装的过程。
&spm=1001.2101.3001.5002&articleId=133773664&d=1&t=3&u=3d526b0891e1489db843f09ac091f7b3)
2478

被折叠的 条评论
为什么被折叠?



