Android+ndk+cdt+eclipse+opengl es compilation and native debugging

Source: Internet
Author: User

Surrounding environment:

NDK version number r8,eclipse and Android use adt-bundle-windows-x86 packaging version is more convenient,

First, the NDK collection

1. Source Code

The NDK's examples folder has HELLO-GL2 source code, which the home can use first.

2. Import demo sample project into eclipse

3. Compilation Settings

A, check the 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 set again to Ndk-build ndk_debug=1 v=1 (ndk_debug=1 v=1 is primarily prepared for subsequent native debugs)

C, run project can



Second, native commissioning

1. Create simulator

The simulator version number is not too high, my version number is android2.3.3. Otherwise you may not be able to debug.


2. Select Project. Right-click the pop-up menu, native support

3. Select Project. Right-click the popup menu. Click Run as Android Applicaton to install the program first

4. Select project, right-click the pop-up menu, and 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 number is too high will appear no debug symbol found error

3, the download of the other version number 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 occurs because the Android version number is too high

1, no debugging symbols found

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

3.

q=error+accessing+memory+address+0x1a66%3a+input%2foutput+error&go=%e6%8f%90%e4%ba%a4&qs=n&form= qbre&pq=error+accessing+memory+address+0x1a66%3a+input%2foutput+error&sc=0-0&sp=-1&sk=& Cvid=30db582dc8ee4c5f913dc8c2f999a2ca "id=" id-97 "title=" Error accessing memory address 0x1a66:input/output error-Bing " tabindex= "-1" style= "font-family: ' Segoe UI ', Arial, ' Microsoft Yahei ', Simsun,sans-serif; line-height:21px; White-space:nowrap; Color:rgb (48,57,66); Text-decoration:none ">error Accessing memory address 0x1a66:input/output Error, etc.

Download:

Cube rotation Demo sample program Download http://download.csdn.net/detail/kupe87826/8146269





Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

Android+ndk+cdt+eclipse+opengl es compilation and native debugging

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.