Android+ndk+opengles Development Environment Configuration

Source: Internet
Author: User

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

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.