The first step, download install Cygwin, (simulation Linux compilation environment), we can go to Cygwin official website Download Cygwin installation program, address is: http://www.cygwin.com/;
Start installing Cygwin, install tutorial http://jingyan.baidu.com/article/48a42057accae3a92525045a.html
The second part, download ndk,http://developer.android.com/tools/sdk/ndk/index.html; Download complete, unzip;
In the third step, locate the profile file under the ETC folder in the Cygwin installation directory:
Configure the NDK's environment variables in profile:
# Setup some default paths. Note that this order would allow user installed
# Software to override ' system ' software.
# Modifying these default path settings can be do in different ways.
# to learn more about the 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
Restart Cygwin, and then execute Ndk-build:
If the following information appears to indicate a successful configuration: