This is the part 3 of
series "Setup Cocos2d-x 3.9". You need to complete the previous parts
before working on this part. Take a look part 1 and part 2 first:
First of all, you need to set up the environment path to let
Cocos2d-x understand the location of SDK, NDK, Apache Ant and Python.
Step 1: Open Command Promt
by using press "Windows + R", then type "cmd" to open
Command Prompt.
Step 2: Locate to path:
"C:\Android\cocos2d-x-3.9\" with command:
cd C:\Android\cocos2d-x-3.9\![]() |
Fig 1. Locate to path: "C:\Android\cocos2d-x-3.9\". |
Step 3: Type setup.py
Step 4: When it asks for the path of NDK, copy the path of NDK and paste
to Command Prompt.
![]() |
Fig 2. Set ndk path. |
Step 5: When it asks for the path of SDK, copy the path of SDK and paste
to Command Prompt.
![]() |
Fig 3. Set sdk path. |
Step 6: When it asks for the path of Apache Ant, copy the path
of Ant and paste to Command Prompt.
![]() |
Fig 4. Set ant path. |
Step 7: Open
"Environment Variables" and add path of Python to variable
"Path"
![]() |
Fig 5. Add Python path to Environment Variable. |
All steps above are help to set up the environment path for
Cocos2d-x. In the next tutorial, I will show you how to create Cocos2d-x
projects with Cocos Console.
If you have any
questions or concerns, please post your comment here, I will take a look and
response ASAP.
No comments :
Post a Comment