Home > other >  Cocos2d - x 3.17.1 new projects and built-in test compile errors
Cocos2d - x 3.17.1 new projects and built-in test compile errors

Time:09-18

Cocos2dx3. 17.1 is on the official website to download, according to the online tutorial with python2.7 setup first, and then enter the command to generate a new project, use vs2013 compilation, there are 7 warning, 11 error, as follows:

Warning 1 warning C4244: "initialization" : from "double transformation" to "float", may lose data D: \ testgame \ MyCppGame, cocos2d, external, recast \ DetourCrowd \ DetourObstacleAvoidance CPP 334 1 librecast
Warning 2 warning C4018: "& lt;" : a signed/unsigned does not match the d: \ testgame \ mycppgame \ cocos2d, cocos, editor - support, spine \ skeletonbinary c 310 1 libSpine
Warning 3 warning C4018: "& lt;" : a signed/unsigned does not match the d: \ testgame \ mycppgame \ cocos2d, cocos, editor - support, spine \ skeletonbinary c 372 1 libSpine
Warning 4 warning C4018: "& lt;" : a signed/unsigned does not match the d: \ testgame \ mycppgame \ cocos2d, cocos, editor - support, spine \ skeletonbinary c 484 1 libSpine
Warning 5 warning C4018: "& lt;" : a signed/unsigned does not match the d: \ testgame \ mycppgame \ cocos2d, cocos, editor - support, spine \ skeletonbinary c 649 1 libSpine
Warning 6 warning C4018: "& lt;" : a signed/unsigned does not match the d: \ testgame \ mycppgame \ cocos2d, cocos, editor - support, spine \ skeletonbinary c 652 1 libSpine
Warning 7 warning C4018: "& gt;=": a signed/unsigned does not match the d: \ testgame \ mycppgame \ cocos2d, cocos, editor - support, spine \ skeletonjson c 97 1 libSpine
Error error 8 C1017: invalid integer constant expression (.. \ AttachmentVertices CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 libSpine
Error error of 9 C1017: invalid integer constant expression (.. \ Cocos2dAttachmentLoader CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 libSpine
Error error 10 C1017: invalid integer constant expression (.. \ SkeletonBatch CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 libSpine
Integer constants expression of error and error C1017: invalid (.. \ SkeletonAnimation. CPP) d: \ testgame \ mycppgame \ cocos2d, cocos, platform, desktop \ ccglviewimpl - desktop. H 99 1 libSpine
Error 12 error C1017: invalid integer constant expression (.. \ SkeletonRenderer CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 libSpine
Integer constants expression of error and error C1017: invalid (.. \ SkeletonTwoColorBatch CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 libSpine
Integer constants expression of error and error C1017: invalid (.. \ spine - cocos2dx CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 libSpine
Error error 15 C1017: invalid integer constant expression d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ CCGLViewImpl - desktop. H 99 1 libcocos2d
Error and the error C1017: invalid integer constant expression (main. CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 mycppgame
Integer constants expression of error and error C1017: invalid (.. \ Classes \ HelloWorldScene CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 mycppgame
Integer constants expression of error and error C1017: invalid (.. \ Classes \ AppDelegate CPP) d: \ testgame \ mycppgame \ cocos2d \ cocos \ platform \ desktop \ ccglviewimpl - desktop. H 99 1 mycppgame

Got a few back also not line, compile build folder own project is also a bunch of mistakes, the official code has a problem?
In the website to download 2.2.6 version, there is no problem, then the 3.17.1 version is the inside of the code itself is there a problem?

CodePudding user response:

Cocos since 3.17 does not support use vs2013, you change the tool, vs2015, vs2017
  • Related