Dipak D Desai
Dipak D Desai

Reputation: 877

cross compile Boost 1.57.0 on ubuntu for arm

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?

Upvotes: 14

Views: 32823

Answers (1)

Dipak D Desai
Dipak D Desai

Reputation: 877

You can cross-compile Boost using the following steps:

  1. Bootstrap the build system:

    ./bootstrap.sh
    
  2. 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++ ;
    
  3. Build and install the library:

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

Note: the toolchain must be in $PATH

Upvotes: 33

Related Questions