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

First Undertaking Construct Points Home windows – cocos2d-x


Hello,

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

When I attempt to construct in Home windows with x64 goal , VS 2022 I get:
Construct began…
1>—— Construct began: Undertaking: SYNC_RESOURCE-MyGame, Configuration: Debug x64 ——
2>—— Construct began: Undertaking: cocos2d, Configuration: Debug x64 ——
1>Copying sources 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 solid’: conversion from ‘int’ to ‘HMENU’ of better 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’, potential lack of knowledge
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(280,22): warning C4244: ‘argument’: conversion from ‘const float’ to ‘int’, potential lack of knowledge
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(279,22): warning C4244: ‘argument’: conversion from ‘const float’ to ‘int’, potential lack of knowledge
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(278,24): warning C4244: ‘argument’: conversion from ‘const float’ to ‘int’, potential lack of knowledge
2>C:gameMyCompanyMyGamecocos2dcocosuiUIEditBoxUIEditBoxImpl-win32.cpp(277,24): warning C4244: ‘argument’: conversion from ‘const float’ to ‘int’, potential lack of knowledge
2>Accomplished constructing venture “cocos2d.vcxproj” – FAILED.
3>—— Construct began: Undertaking: MyGame, Configuration: Debug x64 ——
3>LINK : deadly error LNK1104: can not open file ‘libDebugcocos2d.lib’
3>Accomplished constructing venture “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: Undertaking: cocos2d, Configuration: Debug Win32 ——
1>Debugcocos2d.obj : deadly error LNK1112: module machine kind ‘x86’ conflicts with goal machine kind ‘x64’
1>Accomplished constructing venture “cocos2d.vcxproj” – FAILED.
========== Construct: 0 succeeded, 1 failed, 12 up-to-date, 0 skipped ==========

Thanks!


Cocos2d-x doesn’t assist x64 builds, however in the event you do want that, then attempt the fork of Cocos2d-x v4 that’s on this repo, which does assist it.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments