Kompilacja Boost na Android pod Windows
Dotyczy Boost 1.56. I Android NDK r10b W katalogu tools\build\src\ umieścić plik user-config.jam (przykładowy znajduje się w \tools\build\example\) o następującej treści:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import os ; androidNDKRoot = e:/Android-SDK/android-ndk-r10b ; # put the relevant path using gcc : android : $(androidNDKRoot)/standalone-toolchain/bin/arm-linux-androideabi-g++ : <compileflags>--sysroot=$(androidNDKRoot)/platforms/android-19/arch-arm <compileflags>-mthumb <compileflags>-Os <compileflags>-fno-strict-aliasing <compileflags>-O2 <compileflags>-DNDEBUG <compileflags>-g <compileflags>-lstdc++ <compileflags>-I$(androidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.6/include <compileflags>-I$(androidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include <compileflags>-D__GLIBC__ <compileflags>-D_GLIBCXX__PTHREADS <compileflags>-D__arm__ <compileflags>-D_REENTRANT <archiver>$(androidNDKRoot)/standalone-toolchain/bin/arm-linux-androideabi-ar <ranlib>$(androidNDKRoot)/standalone-toolchain/bin/arm-linux-androideabi-ranlib ; |
Kompilację uruchomić jako:
|
1 |
b2 --without-python --without-mpi --without-serialization threading=multi link=static runtime-link=static toolset=gcc-android target-os=linux threadapi=pthread --stagedir=android stage |
