Install Cocos-2dx on Windows

I think that I, like many other developers who want to use Cocos2dx. I'm on a windows machine, I have eclipse as a development environment. I do not mind switching to a visual studio, but I do not want to be half in a visual studio and half in an eclipse. I believe that the lack of tool support somewhat overshadows the goals of cross-platform goals. What are my options? I mean, if I don't have good options, I can just go with libgdx for Android and cocos2d for iPhone.

+4
source share
2 answers

You can completely switch to the visual studio, there is a project called VS Android, from which you can run android and add cocos2d-x to this project or vice versa

The first time it will be difficult for you, but as soon as you set up one demo project, you can reuse it with many.

First set up the cocos2d-x project in visual studio, then just add these settings to the VS Android demo project, which you can find in the next steps.

or you can do the opposite

you can use visual studoio for Android using "VS Android"

Here are the steps to configure it (i) Download the SDK and other dependencies:

1) Download the SDK http://developer.android.com/sdk/index.html

2) Download the NDK http://developer.android.com/tools/sdk/ndk/index.html 3) Download Cygwin <a2>

4) Download the JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html

5) Download VS 2010. This version is very important because VS Android is not compatible with any other version of VS http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express-iso

6) Download VS Android http://code.google.com/p/vs-android/

7) Apache Ant download http://ant.apache.org/bindownload.cgi

8) Set environment variables: [To set environment variables, do the following: MyComputer-> Right-click-> Properties-> Advanced-> Environment Variables. ] a) ANDROID_NDK_ROOT =: \ android-ndk-r8-windows \ android-ndk-r8 b) ANT_HOME =: \ apache-ant -1.8.4-bin \ apache-ant -1.8.4 c) JAVA_HOME = \ Java \ jdk1.7.0_05 d) _JAVA_OPTIONS = -Xms256m -Xmx512m

9) Download here an example http://code.google.com/p/vs-android/downloads/detail?name=vs-android_samples.zip

Note : You will not have problems if you follow the appropriate steps, but for a while he will get trial and error. I will try to help you as much as I can, because I set it up like this.

Advantage : Debugging is amazing in VS. I am a VS user. I hate eclipse because its buggies

The inconvenience is difficult to set up, but as soon as you get it .. you get it for life .. Even if the version of cocos2d-x is updated, it doesn’t matter, you just need to copy the paste of the cocos2d-x files of the project to the new project

+6
source

You can see my post about this too:

https://rezghob.com/installing-cocos2d-x-windows/

0
source

All Articles