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
-
1google ltib boost.spec. What have you tried? After you 'compile' boost, you need to link to it. Why don't you search out a 'filesystem builder'? There are many options. Certain versions of boost have issues with different gcc versions. In many cases, you don't need the boost library and can just include the headers. They are templates which just get expanded inline. – artless noise Mar 13 '15 at 18:01
Add a comment
|
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 withusing 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
-
I follow your instructions, but I get this error "provided command 'arm-none-linux-gnueabi-g++' not found" I thought I installed the cross compiler correctly... – Darksaint2014 Jun 4 '15 at 14:39
-
Have you use this? Using gcc : arm : arm-linux-gnueabihf-g++ ; or Using gcc : arm : arm-none-linux-gnueabi-g++ ; ? – Dipak D Desai Jun 5 '15 at 4:19
-
Yes I have tried both of those. I did get boost to work, it will actually build on the ARM platform I'm using. I am now stuck on ffmpeg, if you have any experience with compiling/using ffmpeg on ARM boards please do let me know. Thanks for the help! – Darksaint2014 Jun 5 '15 at 11:44
-
-
1