Boost logo

Boost Users :

Subject: [Boost-users] Crossbuilding for ARM
From: Mats Webjörn/WIKAB (konsult_at_[hidden])
Date: 2018-03-30 20:30:46


I'm trying to build for ARM, and have some problems in making b2 find user-config.jam when it's located outside boost root dir.

First I go to boost/tools/build and run
./b2 install -prefix=/home/administrator/project/myproj/build/boost

Then I run
./b2 toolset=gcc-arm --build-dir=/home/administrator/project/myproj/build/boost stage

According to http://www.boost.org/build/doc/html/bbv2/overview/configuration.html Boost.Build<http://www.boost.org/build/doc/html/bbv2/overview/configuration.html%20Boost.Build> will search $HOME and $BOOST_BUILD_PATH, but if I add --debug-configuration to b2 command then I can see that it searches

'/home/administrator' = $HOME
'/home/administrator/project/myproj/externals/boost/tools/build/src/kernel'
'/usr/share/boost-build'
'/home/administrator/project/myproj/externals/boost/tools/build/src/kernel'
'/home/administrator/project/myproj/externals/boost/tools/build/src/util'
'/home/administrator/project/myproj/externals/boost/tools/build/src/build'
'/home/administrator/project/myproj/externals/boost/tools/build/src/tools'
'/home/administrator/project/myproj/externals/boost/tools/build/src/contrib'
'/home/administrator/project/myproj/externals/boost/tools/build/src/.'.

Where none of the directories searched is the one I've provided as buid directory.

It seems odd that $BOOST_BUILD_PATH should be "the one in the top-level directory of your Boost.Build installation" since http://www.boost.org/build/doc/html/bbv2/overview/invocation.html describes --build-dir as "the build directories for all project roots being built".

It seems like the documentation isn't correct. I'm just not sure which one is right and which is wrong.

Has anyone crossbuilt for ARM on Linux?

Regards

Mats Webjörn

E-Mail: konsult_at_[hidden] Webjörn IngenjörsKonsult AB
Tel +46 8 584 238 80 Solhemsbackarna 75A
Fax +46 8 445 69 21 SE-163 56 SPÅNGA
Mobil +46 70 639 16 99 Sweden



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net