COCOS2DX under Windows to build environment Android error

Source: Internet
Author: User

(If you follow my method is not this error, I used other methods of the time have but later still did not solve, write to put here for reference it)

Reference Original: http://blog.csdn.net/fuyongbing1986/article/details/11556149

Method:

1. Add Cygwin/bin to the system environment variable path

2. Right-click Project-->properties-->c/c++ Build-->toolchain Edit
Confirm options for right view: current Toolchain:no toolchain
Current Builder:android Builder

Android Ndk:jni/android.mk:cannot Find module with tag ' cocos2dx ' in Import path
Android ndk:are sure your ndk_module_path variable is properly defined?
Android ndk:the following directories were searched:
Android NDK:
JNI/ANDROID.MK:19: * * * Android ndk:aborting.  . Stop.

Add a Ndk_module_path variable, note to write two paths, separated by semicolons
D:\sdk\cocos2d-2.0-rc0a-x-2.0;d:\sdk\cocos2d-2.0-rc0a-x-2.0\cocos2dx\platform\third_party\android\prebuilt
Because COCOS2DX also imports a few other module, the second path has a third-party module, set up can be compiled

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.