Back

安装 android ndk

发布时间: 2015-03-22 01:06:00

refer to:  https://developer.android.com/tools/sdk/ndk/index.html

$ wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin 

$ chmod a+ <ndk_file>

就会自动解压缩。

然后安装这个东东: 

$ sudo apt-get install gperf

然后设置 PATH 

ANDROID_NDK="/workspace/coding_tools/android-ndk-r10d"
PATH=$PATH:$ANDROID_NDK

最后,输入命令,如果可以得到结果就算成功: 

$ ndk-build
Android NDK: Could not find application project directory !    
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.    
/workspace/coding_tools/android-ndk-r10d/build/core/build-local.mk:148: *** Android NDK: Aborting    .  Stop.

Back