Cocos2d-x 3.6 app doesn't run on Windows 10

I have a game that was built using Cocos2d-x 3.6 on my Mac.
This game runs on iOS, Android and Mac.
I thought I’d have a go at creating a Windows version, so copied it over to my laptop running Windows 10 Home Edition…

Unzipped Cocos2d-x 3.6 onto the PC, ran setup.py from the command prompt.
Copied my project folder from Mac to PC.
I compiled the project using Visual Studio Professional 2012 (error with arc4random, but replaced this).
Note, I used the solution file in the proj.win32 folder (not the proj.win8.1-universal folder), is this correct?

When I attempt to run/debug the executable from within VS, I just get the spinning cursor and nothing ever happens, have to go to the task manager and quit VS.
If I run the executable from an explorer window, I just get the spinning cursor again.

I’ve copied the executable (plus resource & dll files) to a Windows 8.1 machine, I get the following message when attempting to run it:
“The application was unable to start correctly (0x000007b). Click OK to close the application.”

This is what I’m using:
Cocos2d-x 3.6
Windows 10
Visual Studio Professional 2012 (Update 5)
Python 2.7.10
Apache Ant 1.9.5

In addition to this, I have attempted to build cpp-tests, using build/cocos2d-win32.vc2012.sln
I got a build error:
>…\Classes\SpritePolygonTest\SpritePolygonTest.cpp(230): error C2143: syntax error : missing ‘)’ before ‘{’
1>…\Classes\SpritePolygonTest\SpritePolygonTest.cpp(230): error C2275: ‘cocos2d::Color4F’ : illegal use of this type as an expression
1> c:\projects\cocos2d-x\cocos\base/ccTypes.h(126) : see declaration of ‘cocos2d::Color4F’
1>…\Classes\SpritePolygonTest\SpritePolygonTest.cpp(230): error C2143: syntax error : missing ‘;’ before ‘{’
1>…\Classes\SpritePolygonTest\SpritePolygonTest.cpp(230): error C2143: syntax error : missing ‘;’ before ‘}’
1>…\Classes\SpritePolygonTest\SpritePolygonTest.cpp(230): error C2059: syntax error : ‘)’

After commenting out debugForNormalSprite->drawPoints(positions, 4, 8, Color4F{0.0,1.0,1.0,1.0}); in SpritePolygonTest.cpp, I run the executable - same as my own project - spinning cursor!!!

Any ideas?

I don’t think v3.6 works on Windows 10. The v3.6 readme doesn’t mention Windows 10: https://github.com/cocos2d/cocos2d-x/tree/cocos2d-x-3.6

But v3.7+ does.

Thanks, I was coming to the same conclusion.

I just installed Visual Studio 2015 Community, and there’s just a load of linker errors, which built fine with VS 2012.

I’ve now installed Cocos2d-x 3.9 and have created a fresh project to then add my source files into, I’ll see how that goes…

Incidentally, why is there now a separate proj.win10 folder? I want my game in Microsofts app store which is available for both Windows 8 and Windows 10 :-/
I’m also planning a Windows Phone version (I guess I need to use the proj.win8.1-universal for that?).

Maybe the proj.win10 is to support the Microsoft Universal app stuff. I am not entirely sure about why there are so many projects, but I can look into it.

Thanks.

Ok, to recap, I’ve installed VS 2015 Community, got rid of my Cocos2d-x 3.6 and replaced it with 3.9 :smile:
Created a fresh project (let’s try to walk before I can run!!)…

Opened the solution in proj.win32, it compiles :smile:
But I get the same spinning cursor when I attempt to run/debug the executable :frowning:

Tried opening the solution in proj.win10, a few errors which it said could be fixed by retargetting - yes it fixed them.
But I have one remaining error:
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2048,5): error MSB3774: Could not find SDK “WindowsMobile, Version=10.0.10240.0”

I give up :smiley:

To think I expected it to take a few minutes to copy my project from Mac to PC, launch VS, compile and run :smiley:

Good news, the proj8.1-universal solution builds and runs fine :smile:

No idea why the proj.win32 version doesn’t though!