Android+ndk+opengles Development Environment Configuration

Source: Internet
Author: User

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

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.