Configuring the ANDROID-NDK environment under Windows

Source: Internet
Author: User

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:


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.