cross compile Boost 1.57.0 on ubuntu for arm

2019-01-22 22:35发布

问题:

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-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