本文介绍了在 ubuntu for arm 上交叉编译 Boost 1.57.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是交叉编译过程的新手.需要为arm交叉编译boost库.请建议交叉编译 boost 库的步骤.是否可以交叉编译boost库所需的功能?
I am new into cross compile process. Need to cross compile boost library for arm. Please suggest step to cross-compile boost library.Is it possible to cross compile required feature of boost library?
推荐答案
您可以使用以下步骤交叉编译 Boost:
You can cross-compile Boost using the following steps:
引导构建系统:
Bootstrap the build system:
./bootstrap.sh
修改配置文件 (project-config.jam
) 以使用 ARM 工具链,方法是将 using gcc
行替换为:
Modify the configuration file (project-config.jam
) to use the ARM toolchain by replacing the line with using gcc
with:
using gcc : arm : arm-linux-gnueabihf-g++ ;
构建并安装库:
Build and install the library:
./bjam install toolset=gcc-arm --prefix=/usr/local/boost
注意:工具链必须在$PATH
这篇关于在 ubuntu for arm 上交叉编译 Boost 1.57.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!