cross compile Boost 1.57.0 on ubuntu for arm

2019-01-22 22:51发布

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条回答
闹够了就滚
2楼-- · 2019-01-22 23:04

To Cross compile boost library using followig step:

  1. Bootstrap the code:

    ./bootstrap.sh

  2. Edit Modify the configuration file (project-config.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

查看更多
登录 后发表回答