Setting up the Android Native Development Kit (NDK)
The Android NDK environment is essential for native-code language development. Here, we will outline the setup steps for the Mac OS X platform again.
How to do it...
To install the Android NDK, follow these steps:
Download the NDK installation package from the Android developer website at http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin.
Move the setup file into the same installation folder:
mv android-ndk-r10e-darwin-x86_64.bin 3rd_party/android
Set the permission of the file to be an executable:
cd 3rd_party/android && chmod +x android-ndk-r10e-darwin-x86_64.bin
Run the NDK installation package:
./android-ndk-r10e-darwin-x86_64.bin
The installation process is fully automated and the following output confirms the successful installation of the Android NDK:
... Extracting android-ndk-r10e/build/tools Extracting android-ndk-r10e/build/gmsl Extracting android-ndk-r10e/build/core Extracting android-ndk-r10e/build/awk Extracting...