Setting up the NDK

NDK Downloads

chmod a+x android-ndk-r10e-linux-x86_64.bin

From Android Studio 1.3, the NDK was supposed to live inside the Android SDK folder and be managed by the SDK manager. This hasn't happened.

Set paths / environment variables: $NDK_ROOT etc. CMake likes /opt/android-ndk
Get the android.ndk path into Android Studio projects by default.

Making an android toolchain for cross-compilation:

../android-ndk-r10e/build/tools/ --ndk-dir="../android-ndk-r10e/" --install-dir="./android-9-toolchain" --platform="android-9" --toolchain="arm-linux-androideabi-4.9"
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License