1. Resources
(1), Android's Eclipse development environment
I use adt-bundle-windows-x86. The official homepage will be available for download. This is a packaged version number that executes directly eclipse.exe you can start
(2), NDK
Download ndk (download them online)
(3), Cygwin64
For simulating the Linux execution 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
Execute CD/CYGDRIVE/E/ANDROID/WPS2/HELLOGL (go to the Hellogl folder of sample. Where E/ANDROID/WPS2/HELLOGL is your sample folder)
C, C + + compilation
Execute/cygdrive/e/android/android-ndk-r8/ndk-build compile C + + GL Code
3. Run
Right-click Project, pop-up menu run Android application
Note the point:
Ability to execute at Terminal
Set ndk=/cygdrive/e/android/android-ndk-r8/
Export NDK
Setting the environment variable is easier. Write $ndk/ndk-build on call to be able to
Download:
Cube rotation Demo sample program Download http://download.csdn.net/detail/kupe87826/8146269
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Android+ndk+opengles Development Environment Configuration