Android+ndk+cdt+eclipse+opengl es Compilation and native debug no debugging symbols found

Source: Internet
Author: User

Environment:

The NDK version R8,eclipse and Android use the Adt-bundle-windows-x86 packaging version is more convenient,


Operating system is windows8.1

First, the NDK compilation

1. Source Code

NDK's Examples directory has HELLO-GL2 source code, you can use it first.

2. Import the sample project into eclipse

3. Compilation Settings

A. Select project, Eclipse menu windows->prefereces-"android-" NDK

Set the path to the NDK

B. Select project, Eclipse menu Project->properties

Click Builder, CDT Builder selects

Click C/c++bulder,builder setting, the build command is reset to Ndk-build ndk_debug=1 v=1 (ndk_debug=1 v=1 is primarily prepared for subsequent native debugs)

C, run project can be



Second, native commissioning

1. Create simulator

The simulator version is not too high, my version is android2.3.3, otherwise there will be no debug symbol found error


2. Select the project, right-click the popup menu, native support

3, select the project, right-click on the menu, the Run as Android Applicaton, first loaded the program

4. Select the project, right-click on the popup menu, press Debug as native Applicaton


4, you can debug C + + code

Note the point:

1, the real machine may appear no debug symbol found error

2, the simulator version is too high will appear no debug symbol found error

3, the download of the other version of the SDK is placed in the \sdk\platforms

4, need to run as Android application first install the app

Error type:

The error type that occurs because the Android version is too high

1, no debugging symbols found

2, No symbol table is loaded. Use the "file" command

3, Error accessing memory address 0x1a66:input/output error, etc.




Android+ndk+cdt+eclipse+opengl es Compilation and native debug no debugging symbols found

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.