In this tutorial shows how to setup cocos2d-x environment step-by-step.
1. Download the latest version of cocos2d-x from http://www.cocos2d-x.org/download. (version 3.9 used for this tutorial and windows 10)
2. Download and install environment requirements for android.
1. Download the latest version of cocos2d-x from http://www.cocos2d-x.org/download. (version 3.9 used for this tutorial and windows 10)
2. Download and install environment requirements for android.
3. Unzip and install. note: Unzip and place all in one place in C:\ directory for easier use.
4. Add new path in system variable. System properties >Advance system settings >System variables > click Edit under Path > add C:\Python27\ and C:\apache-ant-1.9.6\bin(Note: where you extract the zip file).
5. Add new System Variable called JAVA_HOME and give it the path to where you installed the JDK.
6. Next is setup environment variable, open command prompt > type cd->drag and drop extracted cocos2d-x folder to cmd >type setup.py.
The environment variable need to enter the path of NDK_ROOT, just drag and drop android-ndk-rxxx folder to command prompt. Same as the android-sdk and apache-ant.
Restart command prompt or computer.
Next is to create new cocos2d-x game project.
0 comments:
Post a Comment