Has somebody ported and used Boost on Android?
I\'ve found the tool which builds boost for android (https://github.com/MysticTreeGames/Boost-for-Android), the build is
I've solved the problem. I specified the incorrect path to NDK. Script patches CrystaX NDK too. So now it works!
You can download a collection of scripts that will download and build some popular c/c++ open source libraries for android and ios including boost at this location.
https://github.com/mevansam/cmoss
I just found a easy way to build boost under android NDK, which don't need patching the boost.
I don't use Android.mk to build boost, instead, I use the standalone-toolchain to build, just link CodeSourcery's toolchain.
Prepare the NDK toolchain first:
Install the NDK toolchain as a standalone toolchain. See $NDK/docs/STANDALONE-TOOLCHAIN.html
Add the bin path of cross-toolchain to your PATH
Build boost.Build tool, in Boost prj:
./bootstrap.sh
echo "using gcc : android : arm-linux-androideabi-g++ ;" > $HOME/user-config.jam
Build example
./b2 --prefix=$HOME/mybuild --with-thread --with-system toolset=gcc-android threading=multi link=static install
I hope these can help you.