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?
"building a cross-compiler is significantly harder than building a compiler that targets the platform it runs on." The problem exists due to the way libraries are built and accessed. In the normal situation all the libraries are located in a specific spot, and are used by all apps on that system.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With