cross compile Boost 1.57.0 on ubuntu for arm

匿名 (未验证) 提交于 2019-12-03 01:48:02

问题:

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?

回答1:

To Cross compile boost library using followig step:

  1. Bootstrap the code:

    ./bootstrap.sh

  2. Edit Modify the configuration file (project-build.jam) to use the ARM toolchain by replacing the line with “using gcc” by:

    using gcc : arm : arm-linux-gnueabihf-g++ ;

  3. Build and install the boost libraries:

    ./bjam install toolset=gcc-arm --prefix=/usr/local/boost

Note: toolchain must be in the PATH



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!