Sunday, August 7, 2022
HomeGame DevelopmentFirst Mission Construct Points Home windows - cocos2d-x

First Mission Construct Points Home windows – cocos2d-x


Hello,

I simply began utilizing cocos2d-x. And I’m having hassle to construct my first challenge.

When I attempt to construct in Home windows with x64 goal , VS 2022 I get:
Construct began…
1>—— Construct began: Mission: SYNC_RESOURCE-MyGame, Configuration: Debug x64 ——
2>—— Construct began: Mission: cocos2d, Configuration: Debug x64 ——
1>Copying assets for MyGame …
1> copying to C:/recreation/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: ‘kind forged’: 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>Accomplished constructing challenge “cocos2d.vcxproj” – FAILED.
3>—— Construct began: Mission: MyGame, Configuration: Debug x64 ——
3>LINK : deadly error LNK1104: can’t open file ‘libDebugcocos2d.lib’
3>Accomplished constructing challenge “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: Mission: cocos2d, Configuration: Debug Win32 ——
1>Debugcocos2d.obj : deadly error LNK1112: module machine kind ‘x86’ conflicts with goal machine kind ‘x64’
1>Accomplished constructing challenge “cocos2d.vcxproj” – FAILED.
========== Construct: 0 succeeded, 1 failed, 12 up-to-date, 0 skipped ==========

Thanks!


Cocos2d-x doesn’t help x64 builds, however for those who do want that, then attempt the fork of Cocos2d-x v4 that’s on this repo, which does help it.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments