Android build configuration for NDK with Boost and Fost libraries.
Use the latest NDK and it uses C++14 and the Clang compiler.
Add this repository as a git submodule in your Android project:
git submodule add git@github.com:KayEss/fost-android.git jni/fost-android
The version of Boost is 1.65.1. To change it do something like this:
git submodule foreach "git checkout boost-1.66.0 || echo Not boost"
There is a convenience script in boost/ for this. As the libraries are maintained you may find that new dependancies are introduced.
A sample application configuration:
APP_ABI := arm64-v8a armeabi-v7a x86 # crypto++ won't build for mips
APP_PLATFORM := android-9
NDK_TOOLCHAIN_VERSION=clang
APP_STL := c++_static
APP_CPPFLAGS += -fexceptions -frtti
- Crypto++ will not build for MIPS or early (non-NEON) ARM chips.
arm64-v8a
,armeabi-v7a
,x86
andx86_64
are known to work.