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:

  1. Download the NDK installation package from the Android developer website at http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin.
  2. Move the setup file into the same installation folder:
    mv android-ndk-r10e-darwin-x86_64.bin 3rd_party/android 
  3. Set the permission of the file to be an executable:
    cd 3rd_party/android && chmod +x android-ndk-r10e-darwin-x86_64.bin
  4. Run the NDK installation package:
    ./android-ndk-r10e-darwin-x86_64.bin
  5. The installation process is fully automated and the ...

Get OpenGL Data Visualization Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.