Starting with Cocos2d-x. How to create a multiplatform project in vs 2012.

Hi!,

I’m really new to cocos2d-x. Have been reading docs, etc… and my main problem is the initial setup. I have seen googling there was a wiki before that showed exactly what I am asking but don’t know if this info is deprecated.

Could anyone explain the very firsts steps with cocos2d-x and visual studio in order to create a project for ios and android?. I’m loading the vs2012 project directly in vs12 and building from there.

Thanks in advance.

I modeled my setup after the project here: 2DX_ROOT\samples\Cpp\TestCpp
So, in my project I have these folders:

‘proj.android’
‘proj.ios’
‘proj.win32’

One of them I maintain with Visual Studio (proj.win32)

One of them contains Eclipse and .mk files (proj.android)

One of them contains an xcode project I use with my Macbook (proj.ios)

Once I got those three working I moved on and got these going as well:

‘proj.blackberry’
‘proj.linux’
‘proj.mac’

I’m using create_project.py that comes with cocos2d-x for that job. Check tools folder.

Michael Gringauz wrote:

I’m using create_project.py that comes with cocos2d-x for that job. Check tools folder.

Great suggestion for new projects.

Thanks a lot for all suggestions. Gonna have a look at them.

Hello, sorry for this inconvenience, but I got some problems with visual studio 2012 express, i cant not build the cocos2d-x. i opened cocos2d-win32.vc2012.sln and build, but i got a lot error in compile process:
1 IntelliSense: cannot open source file “GL/glu.h”
2 IntelliSense: identifier “MCIDEVICEID” is undefined
vv
Any help would be appreciated,
Thanks in advance

Im having the same problem when i try to build for win32
1 IntelliSense: cannot open source file “GL/glu.h”
im using windows 8 64 bit

any help would be great
thx

hi i am having a the same problem… did u guys fix it at all…???