Android ndk development environment (in Windows)

Source: Internet
Author: User

This section describes how to set up Android ndk in a Windows development environment.

1. Download ndk and cygwin

Ndk: http://dl.google.com/android/ndk/android-ndk-r8b-windows.zip

Currently updated to r8b.

Cygwin: http://cygwin.com/setup.exe

2. Extract the ndk to a disk.

3. Install cygwin

Click the cygwin.exe File

The following page is displayed:

Click Next

If you have not downloaded the package, select the second one to download the installation file, or use the first online installation, but it is very slow.

Because everything is downloaded in advance, the third item is selected.

Click Next

Select the installation location and click Next.

Find the downloaded Installation File directory and click Next.

Change the two marked in the red box to the install status, and then click Next.

Finally, the installation is successful.

There is a shortcut on the desktop

Open the cygwin Terminal

Enter make-version

If the following page shows a version number, the installation is successful.

4. Configure ndk Environment Variables

Configure the ndk decompressed directory to cygwin's environment variable.

There is a frofile under the etc directory of cygwin's installation directory,

Add the ndk directory to the path

/Cygdrive/G/ndk/android-ndk-r7b

G: indicates your windows drive letter. In fact, this is the ing between cygwin and your windows disk path.

In Linux, the environment variable Delimiter is a colon:

Save the modification and restart cygwin,

Enter the ndk-build command. The following interface indicates that the configuration is successful.

 

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.