Cocos2d-x v2.x - Setup Environment
[windows]
pre-require program and sdk
1. download java 6 and install
2. download python and install
3. download apache ant .zip file
- here: http://ant.apache.org/bindownload.cgi
- extract to C:\apache-ant-1.9.2
- here: http://ant.apache.org/bindownload.cgi
- extract to C:\apache-ant-1.9.2
4. download android ndk
- here: http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86.zip
- extract to C:\android-ndk-r9d
5. download android sdk
- here: http://developer.android.com/sdk/index.html
- extract to C:\adt-bundle-windows-x86-20140702
6. set environment variable- go to start > control panel > system > advanced system settings
- click tab Advanced > Evironment variables
- see System variables, choose add / new (if you don't have it)
- type as below one by one and click "ok"
variable name: ANDROID_SDK_ROOT
variable value: C:\adt-bundle-windows-x86-20140702\sdk
variable name: ANT_ROOT
variable value: C:\apache-ant-1.9.2\bin
variable name: ANT_HOME
variable value: C:\apache-ant-1.9.2
variable name: NDK_ROOT
variable value: C:\android-ndk-r9d
variable name: JAVA_HOME
variable value: C:\Program Files (x86)\Java\jre6
Now, you're already to develop.
[Let's Create Your First Project]
http://gamedevtodied.blogspot.com/2014/09/cocos2d-x-v2x-create-c-lua-and.html
I actually added your blog to my favorites and will look forward for more updates. Great Job, Keep it up.
ReplyDeleteCocos2d-x game development
Thank you John, hope my solution can help everyone.
DeleteThanks
ReplyDelete