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的文件:
在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:
如果出现如下信息表示配置成功:
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。