Initial cmake setup - Problem on startup

Hi everyone,

i recently tried to write my own cmake files to setup cocos2dx projects and everything builds and links fine (well, at least neither the compiler nor the linker complain), but when I try to run my “Hello Cocos2d” game, I get the following error:

ERROR: 0:1: ‘’ : Keyword ’precision’ is supported in GLSL 1.3
ERROR: compilation errors. No code generated.

ERROR: 0:1: ‘’ : Keyword ’precision’ is supported in GLSL 1.3
ERROR: compilation errors. No code generated.

Debug Error!

Program: …ocos2d-x-2.1.5\projects\MyCMTest\Windows\Debug\test_win32.exe

R6010

  • abort() has been called

(Press Retry to debug the application)

I already replaced all the other .dll and .lib files, so it should really just be libcocos2d.dll that causes the problem.

Please find attached my generated libcocos2d.vcxproj.

Does anyone has a clue what the problem could be?


libcocos2d.vcxproj.zip (5.5 KB)

Found it. Wrong Preprocessor definitions.

hi ,seamus.
Recently,I also want to use cmake to generate win32 project and x code project,I have found that the 3.0alpha already support to generate linux makefiles. Can you give me some advice?