由于跨平台的原因,需要在mac 上 编译 android 需要的 so文件, 记录一下环境配置

1 下载NDK for Mac

developer.android.com/ndk/downloads/index.html

 

2 解压 下载的 bin文件

1)        获取文件权限

chmod a+xandroid_ndk_r10c_version.bin

2)        解压文件

./android_ndk_r10c_version.bin

3 配置 .bash_rofile文件

  打开终端,输入open ~/.bash_profile( 如果文件不存在,创建命令 touch ~/.bash_profile)

添加这样的内容

exportPATH=$PATH:/Users/zhangxiao/Sourcecode/android-ndk-r10e

 

4 编译 hello-jni 测试 环境是否配置成功

  到 samples/hello-jni目录下,运行ndk-build, 测试是否能编译出 hello-jin.so

更多相关文章

  1. x264在android平台上的编译和使用
  2. Android(安卓)Telechips89xx背光控制流程
  3. Android(安卓)NDK学习 简介
  4. Ubuntu Qt安装安卓android编译器
  5. Android(安卓)Studio 配置SVN 及 代码管理
  6. Android(安卓)Button Selector
  7. 通读Android文档系列 TWO
  8. Android(安卓)tips2
  9. NPM 和webpack 的基础使用

随机推荐

  1. Android 应用的自动升级、更新模块的实现
  2. android集成语音功能
  3. 通过Android Studio查看SDK源码
  4. 转帖并消化:Android中一种使用AttributeS
  5. AlterDialog详细讲解
  6. Android中Activity界面展示与跳转及数据
  7. Android Intent (2) Serializable vs Par
  8. push研究——Apache Mina探索初步
  9. Could not find *****/adb.exe!的解决方
  10. 解决Android Studio连不上Android设备真