Reputation: 877
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
Reputation: 877
You can cross-compile Boost using the following steps:
Bootstrap the build system:
./bootstrap.sh
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
Note: the toolchain must be in $PATH
Upvotes: 33