Windows Environment builds COCOS2DX 3.x eclipse environment

Source: Internet
Author: User

    1. Install the JDK, the step online too much, no longer repeat;
    2. Install NDK, the same, go directly to Google to find the latest ndk, download the extract to a disk descriptor directory;
    3. For simplicity, using ADT bundles instead of using Eclipse's native packages saves you a lot of trivial and unnecessary work;
    4. Go to www.python.org Download the latest version of Python for 2.7.x, and install it, and remember to check the path of Python into path environment variable;
    5. Download a COCOS2DX 3.x version, I use here is 3.1.1, and unzip;
    6. Set the following environment variables in Windows:
      1. Cocos_console_root; This path is set to COCOS2DX 3.x cocos.py directory, usually in the Tools\cocos2d-console\bin directory;
      2. Ndk_root; This path is the directory location of the ndk just unzipped;
      3. Android_sdk_root; This setting is the SDK directory after the ADT bundle is unpacked;
      4. Remember to check that the Python directory is in the environment variable;
      5. Java_home; This environment variable is set to the bin directory of the JDK, there are many explanations on the Internet;
    7. Open cmd, enter Cocos new project name-P package name-L cpp-d Project target location;
    8. Open eclipse in the ADT Bundle, and import the project you just used Cocos new, remember to import the Proj.android directory of the project;
    9. After you import the project, it is very likely that the project does not contain libcocos2d, which is stored in the COCOS_ROOT\COCOS\PLATFORM\ANDROID\JAVA\SRC directory, which may require manual repositioning yourself.
    10. Then there is the possibility that the compiler reports that Java @override problem, this should be installed JDK version is not 1.6 version, need to manually set to 1.6 version, it is correct.

Windows Environment builds COCOS2DX 3.x eclipse environment

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.