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