[ad_1]
Hello,
I simply began utilizing cocos2d-x. And I’m having hassle to construct my first mission.
When I attempt to construct in Home windows with x64 goal , VS 2022 I get:
Construct began…
1>—— Construct began: Challenge: SYNC_RESOURCE-MyGame, Configuration: Debug x64 ——
2>—— Construct began: Challenge: cocos2d, Configuration: Debug x64 ——
1>Copying assets for MyGame …
1> copying to C:/sport/MyCompany/MyGame/win32-build/bin/MyGame/Debug/Sources
2>UIEditBoxImpl-win32.cpp
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(64,70): error C2065: ‘GWL_WNDPROC’: undeclared identifier
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(101,42): error C2065: ‘GWL_WNDPROC’: undeclared identifier
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(124,40): warning C4312: ‘sort solid’: conversion from ‘int’ to ‘HMENU’ of higher measurement
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(128,42): error C2065: ‘GWL_USERDATA’: undeclared identifier
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(129,66): error C2065: ‘GWL_WNDPROC’: undeclared identifier
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(246,34): warning C4267: ‘initializing’: conversion from ‘size_t’ to ‘int’, attainable lack of knowledge
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(280,22): warning C4244: ‘argument’: conversion from ‘const float’ to ‘int’, attainable lack of knowledge
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(279,22): warning C4244: ‘argument’: conversion from ‘const float’ to ‘int’, attainable lack of knowledge
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(278,24): warning C4244: ‘argument’: conversion from ‘const float’ to ‘int’, attainable lack of knowledge
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(277,24): warning C4244: ‘argument’: conversion from ‘const float’ to ‘int’, attainable lack of knowledge
2>Performed constructing mission “cocos2d.vcxproj” – FAILED.
3>—— Construct began: Challenge: MyGame, Configuration: Debug x64 ——
3>LINK : deadly error LNK1104: can not open file ‘libDebugcocos2d.lib’
3>Performed constructing mission “MyGame.vcxproj” – FAILED.
========== Construct: 1 succeeded, 2 failed, 13 up-to-date, 0 skipped ==========
if I set Win32 I get:
Construct began…
1>—— Construct began: Challenge: cocos2d, Configuration: Debug Win32 ——
1>Debugcocos2d.obj : deadly error LNK1112: module machine sort ‘x86’ conflicts with goal machine sort ‘x64’
1>Performed constructing mission “cocos2d.vcxproj” – FAILED.
========== Construct: 0 succeeded, 1 failed, 12 up-to-date, 0 skipped ==========
Thanks!
Cocos2d-x doesn’t assist x64 builds, however for those who do want that, then attempt the fork of Cocos2d-x v4 that’s on this repo, which does assist it.
[ad_2]