1. Download Resources
(1), the development environment of Android Eclipse
I use Adt-bundle-windows-x86, the official homepage can be downloaded, this is a packaged version, directly run Eclipse.exe can be launched
(2), NDK
Download ndk (download them online)
(3), Cygwin64
For simulating the Linux operating environment (download it online)
2. Environment configuration
(1) Eclipse Import Project
Import the HELLOGL program in NDK example
(2) compiling C + + code
A. Open Cygwin terminal (Mintty.exe)
B
Run CD/CYGDRIVE/E/ANDROID/WPS2/HELLOGL (go to the HELLOGL directory of sample, where E/android/wps2/hellogl is the directory of your example)
C, C + + compilation
Run/cygdrive/e/android/android-ndk-r8/ndk-build to compile C + + GL Code
3. Run
Right-click Project, pop-up menu run Android application
Note the point:
Can be run at terminal
Set ndk=/cygdrive/e/android/android-ndk-r8/
Export NDK
Setting the environment variable is easier. Write $ndk/ndk-build when you call it.
Android+ndk+opengles Development Environment Configuration