Eclipse COCOS2DX Development Environment Building

Source: Internet
Author: User

Ensure that the basic environment is well established:

1. JDK

2. Eclipse

3. SDK

4. NDK

First, import the cocos2dx Sample Project

E:\COCOS2DX directory for cocos2dx

1. import E:\cocos2dx\cocos2d-x-2.2.4\samples\Cpp\SimpleGame into eclipseand Catalog

all Files under E:\cocos2dx\cocos2d-x-2.2.4\cocos2dx\platform\android\java\src ( library file ) copied to src directory, and will E:\cocos2dx\cocos2d-x-2.2.4\samples\Cpp\SimpleGame\Resources all resources in the directory are copied to Assets directory.

2.set eclipse environment variables, add ndk_root and cocos2dx Two variables, the values are as follows


3. There is also a bug not resolved, as follows:

4.modify the project properties and set the build command value under C + + build , as follows

5. Rebuild under Project,Project--build project, and report the following error:

6, the solution, in the jni directory under the android.mk to add the following two sentences

At this point, the environment is done.

Eclipse COCOS2DX Development Environment Building

Related Article

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.