windows下配置android-NDK环境

第一步,下载安装cygwin,(模拟Linux 的编译环境),我们可以到Cygwin的官方网站下载Cygwin的安装程序,地址是:  http://www.cygwin.com/ ;

开始安装Cygwin,安装教程http://jingyan.baidu.com/article/48a42057accae3a92525045a.html

第二部,下载ndk,http://developer.android.com/tools/sdk/ndk/index.html;下载完成,解压;

第三步,在Cygwin的安装目录的etc的文件夹下,找到profile的文件:

windows下配置android-NDK环境

在profile中配置ndk的环境变量:

# Setup some default paths. Note that this order will allow user installed

# software to override ‘system‘ software.

# Modifying these default path settings can be done in different ways.

# To learn more about startup files, refer to your shell‘s man page.

PATH="/usr/local/bin:/usr/bin:/cygdrive/e/Android/Android_softWare_tools/NDK/android-ndk64-r10-windows-x86_64/android-ndk-r10:

${PATH}"

MANPATH="/usr/local/man:/usr/share/man:/usr/man:${MANPATH}"

INFOPATH="/usr/local/info:/usr/share/info:/usr/info:${INFOPATH}"

# Set the user id

USER="$(id -un)"

# TMP and TEMP as defined in the Windows environment must be kept

重启Cygwin,然后执行ndk-build:

如果出现如下信息表示配置成功:

windows下配置android-NDK环境


windows下配置android-NDK环境,布布扣,bubuko.com

windows下配置android-NDK环境

上一篇:【原】移动web页面兼容处理的思考


下一篇:Android应用层操作GPIO