Cocos2d-x in the Windows platform environment

Source: Internet
Author: User

| Copyright Notice: This article for Bo Master original article, without Bo Master permission not reproduced. The compressed files and executables required to configure the Cocos2d-x engine under the Windows platform;
Download Link:

The first step: download some of the above, unzip the compressed file good


The second step: Create a dev_cocos2d folder under the C packing directory and put the Cocos2d-x unzip file in it
 

Step three: Install Python, because the new version of Cocos2d-x is going to create the project with the Phython script, and the installation process is next.


Fourth Step: Configure environment variables;
Found it
and copy its path.
in open cmd: such as action (win+r input cmd quick Open)

From the terminal tells us to configure the path of the ndk_root, this only need to locate the path of the Ndk file to copy to the terminal prompt, press Enter can be configured, such as:
Locate the android-ndk-r9d folder, and then copy the path
Then press ENTER on the path input terminal
after configuration, the terminal reminder configures the path of the Android_sdk_root:
The path of the SDK is found as the path of the above configuration Ndk_root, and the same operation is performed;

After that, the path of the ant_root is configured;

Locate the path to the Apache-ant file in the bin directory


Finally, after the configuration is complete, the terminal prompts to restart the terminal;
So all the environment variables have been configured successfully, we can see the path we just configured under environment variables of Windows Advanced system settings:


Although the above environment variables have been configured successfully, when we re-open CMD and prepare to create the Cocos project, we find the following:
What's the reason for this? We can see that the display on the terminal says: ' Python ' is not an internal or external command, nor is it a running program or batch file.
We enter path to view the configured paths to find a path name at the Red Line;
Let's open this path.

When executing cocos.py, we can see that there is no Python path in the path of the terminal, that is, we also need to configure the path of the python, we can configure the same as above, and the following method to configure the environment variables, such as:
find the path to the installation
Then, mouse to find my computer, right-click into the properties, find, pop up a message box, find advanced-environment variable find path selected, click Edit Add; C:\Python27 path; Remember to add a semicolon in the lower half of the English state before the path;

And then all the way, so I can directly use the terminal to enter Cocos in the project can be created; in fact, we can create a project without the need to configure Python's environment variables: At this point we have to enter cocos.py in the terminal to create the project, not cocos;
Below we can verify the following: (we can already use the Cocos command to create the project)


  ------------------Beginner notes, if there are mistakes, I hope you will correct me.

Cocos2d-x in the Windows platform environment

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.