This is part 2 of
series "Set-up Cocos2d-x 3.9". You need to finish the first part
to download all pre-requisite tools before installing them. Here is the link of
first part:
http://yumiki-techee.blogspot.com/2015/12/setup-cocos2d-x-39-part-1-download-pre.html
I did set-up a fresh Windows 10 so that we can get started from scratch. Here are the steps to set-up Cocos2d-x environment:
1) I put alls downloaded re-requisite files to "C:\Installation", please keep in mind that you need to rename the folder without "Space" character as Python will be not able to understand that character. It will may cause you can not create or build the Cocos project.
http://yumiki-techee.blogspot.com/2015/12/setup-cocos2d-x-39-part-1-download-pre.html
I did set-up a fresh Windows 10 so that we can get started from scratch. Here are the steps to set-up Cocos2d-x environment:
1) I put alls downloaded re-requisite files to "C:\Installation", please keep in mind that you need to rename the folder without "Space" character as Python will be not able to understand that character. It will may cause you can not create or build the Cocos project.
![]() |
Fig 1. Installation folder. |
2) Create a folder "Android" located in "C:\" and
copy NDK r10d into it.
![]() |
Fig 2. Place ndk-r10d to C:\Android. |
3) Double to extract it. After the extraction is done, delete the
installation file.
![]() |
Fig 3. Extract ndk. |
4) Extract Apache Ant and Cocos2d-x into folder "C:\Android"
![]() |
Fig 4. Extract Apache Ant and Cocos2d-x. |
5) Install Python 2.7.9. Leave the default destination location to
"C:\Python27\". Click next until it is finished.
![]() |
Fig 5. Install Python. |
6) Double-click on
Android Studio installation file to install it. It requires downloading Java SDK
if you does not have Java installed. Remember downloading the Java 64-bit.
![]() |
Fig 6. Install Java if you don't have that. |
7) After installing
Java, close the Android Studio installation and run it again. Then in the
"sdk" and "Android Studio" install path, change the path
to:
Android Studio Installation
Location:
"C:\Android\Android Studio"Android SDK
Installation Location:
"C:\Android\sdk"
![]() |
Fig 7. Change the Android Studio location. |
8) Click
"Next" and "Install", then wait until it's done.
So we have installed
all pre-requisite to build the Cocos2d-x games. In the next part, we will
continue to set-up Cocos2d-x 3.9.
If
you have any questions or concerns, please post your comment here, I will take
a look and response ASAP.
Yumiki.
No comments :
Post a Comment