Eclipse CDT ndk environment setup steps

Source: Internet
Author: User

In the new version of Windows, ndk does not need cygwin as the basic environment.

For detailed steps, refer to the documentation on the official website:

Http://tools.android.com/recent/usingthendkplugin

I tried it for a while, which is very convenient, and I don't need to go to the command line to knock on the command. I just got it done in eclipse.

The basic steps are as follows:

Download and install JDK.

Download and install the android SDK and ndk.

Download indigo eclipse and install the CDT plug-in first. We recommend that you directly download the eclipse integrated with CDT.

Install the android eclipse ADT plug-in. During installation, select install all plug-in components.

Eclipse-> window-> preferences-> Android-> set the android SDK path

Eclipse-> window-> preferences-> Android-> ndk-> set the android ndk path

Create an android project, right-click the project, and select android
Tools-> Add native support.

To debug C/C ++ code with a breakpoint:

Right-click the project and choose Properties
-> C/C ++ build

Set the build command value to ndk-build
Ndk_debug = 1

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.