参考文章:
android — NDK生成so文件:http://blog.csdn.net/laczff21/article/details/7542236
- Download the appropriate package from this page.
- Open a terminal window.
- Go to the directory to which you downloaded the package.
- Run
chmod a+x
on the downloaded package. - Execute the package. For example:
ndk$ chmod a+x android-ndk-r10c-darwin-x86_64.bin ndk$ ./android-ndk-r10c-darwin-x86_64.bin
6.NDK路径添加到.bash_profile
export PATH=${PATH}:/Users/james/Documents/adt-bundle-mac/sdk/platform-tools/
:/Users/james/Documents/android-ndk:/Users/james/Documents/android-ndk/ndk-build
7.参考:http://blog.csdn.net/laczff21/article/details/7542236