[Setup] Fastest setup for cocos2d-x on windows with qt-creator debugging

I configure that but face a problem after compilation there is issue of reference not found.
please check logs

13:02:27: Running steps for project Cocos2dx…
13:02:27: Starting: “C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe” arpittest
[ 13%] Built target cocostudio
[ 24%] Built target box2d
[ 31%] Built target chipmunk_static
[ 31%] Built target unzip
[ 31%] Built target tinyxml2
[ 32%] Built target xxhash
[ 33%] Built target audio
[ 82%] Built target cocos2d
[ 87%] Built target extensions
[ 93%] Built target cocosbuilder
[100%] Built target spine
Linking CXX executable …\bin\arpittest\arpittest.exe
Warning: resolving _glewInit by linking to _glewInit@0
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
Warning: resolving _glewGetErrorString by linking to _glewGetErrorString@4
Warning: resolving _glewIsSupported by linking to _glewIsSupported@4
…\lib\libcocos2d.a(CCConsole.cpp.obj): In function mydprintf': D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:129: undefined reference to_imp__send@16’
…\lib\libcocos2d.a(CCConsole.cpp.obj): In function sendPrompt': D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:135: undefined reference to_imp__send@16’
…\lib\libcocos2d.a(CCConsole.cpp.obj): In function printSceneGraph': D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:142: undefined reference to_imp__send@16’
…\lib\libcocos2d.a(CCConsole.cpp.obj): In function printSceneGraphBoot': D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:154: undefined reference to_imp__send@16’
…\lib\libcocos2d.a(CCConsole.cpp.obj): In function inet_ntop': D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:199: undefined reference to_imp__WSAAddressToStringA@20’
…\lib\libcocos2d.a(CCConsole.cpp.obj): In function ZN7cocos2d7Console11listenOnTCPEi': D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:334: undefined reference to_imp__WSAStartup@8’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:341: undefined reference to _imp__getaddrinfo@16' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:342: undefined reference togai_strerrorW’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:349: undefined reference to _imp__socket@12' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:353: undefined reference to_imp__setsockopt@20’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:354: undefined reference to _imp__bind@12' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:359: undefined reference to_imp__closesocket@4’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:367: undefined reference to _imp__freeaddrinfo@4' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:371: undefined reference to_imp__listen@8’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:377: undefined reference to _imp__ntohs@4' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:384: undefined reference to_imp__ntohs@4’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:390: undefined reference to _imp__freeaddrinfo@4' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console11commandHelpEiRKSs’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:427: undefined reference to _imp__send@16' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console11commandExitEiRKSs’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:446: undefined reference to _imp__closesocket@4' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console15commandDirectorEiRKSs’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:607: undefined reference to _imp__send@16' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console12commandTouchEiRKSs’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:648: undefined reference to _imp__send@16' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:678: undefined reference to_imp__send@16’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:774: undefined reference to _imp__send@16' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console13commandUploadEi’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:792: undefined reference to _imp__recv@16' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:799: undefined reference to_imp__send@16’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:830: undefined reference to _imp__send@16' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console9readBytesEiPcjPb’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:865: undefined reference to _imp__recv@16' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console12parseCommandEi’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:894: undefined reference to _imp__recv@16' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:904: undefined reference to_imp__send@16’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:922: undefined reference to _imp__send@16' tests\arpittest\CMakeFiles\arpittest.dir\build.make:149: recipe for target 'bin/arpittest/arpittest.exe' failed D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:935: undefined reference to_imp__send@16’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:957: undefined reference to _imp__send@16' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console8readlineEiPcj’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:975: undefined reference to _imp__recv@16' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console9addClientEv’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1001: undefined reference to _imp__accept@12' ..\..\lib\libcocos2d.a(CCConsole.cpp.obj): In functionZN7cocos2d7Console4loopEv’:
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1046: undefined reference to _imp__select@20' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1062: undefined reference to__WSAFDIsSet@8’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1071: undefined reference to __WSAFDIsSet@8' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1080: undefined reference to_imp__ioctlsocket@12’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1112: undefined reference to _imp__send@16' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1124: undefined reference to_imp__closesocket@4’
D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1131: undefined reference to _imp__closesocket@4' D:/cocos2d-x/cocos2d-x-3.2/cocos/base/CCConsole.cpp:1132: undefined reference to_imp__WSACleanup@0’
collect2.exe: error: ld returned 1 exit status
CMakeFiles\Makefile2:640: recipe for target ‘tests/arpittest/CMakeFiles/arpittest.dir/all’ failed
CMakeFiles\Makefile2:652: recipe for target ‘tests/arpittest/CMakeFiles/arpittest.dir/rule’ failed
Makefile:252: recipe for target ‘arpittest’ failed
mingw32-make[3]: *** [bin/arpittest/arpittest.exe] Error 1
mingw32-make[2]: *** [tests/arpittest/CMakeFiles/arpittest.dir/all] Error 2
mingw32-make[1]: *** [tests/arpittest/CMakeFiles/arpittest.dir/rule] Error 2
mingw32-make: *** [arpittest] Error 2
13:02:37: The process “C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe” exited with code 2.
Error while building/deploying project Cocos2dx (kit: Desktop Qt 5.3 MinGW 32bit)
When executing step “Make”
13:02:37: Elapsed time: 00:10.

@sharma_arpit C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe
This is not the make that you should be using.
This probably means that you are using the wrong compiler on qt-creator.

You probably are using the official installer of qt-creator which does not have out patches to find
msys2/mingw32/bin/gcc make etc.

Please read the tutorial again
You can not drop in and out different mingw compilers from different sources as they may have different exception models

also the qt-creator you should be running will be in msys2/mingw32/bin/qt-creator.exe

Now I configure again with Msys2

follow the steps from Cocos with qt

here and compile still found error

Hope you Help me for this
11:20:43: Running steps for project Cocos2dx…
11:20:43: Starting: “C:\msys64\mingw64\bin\mingw32-make.exe”
[ 7%] Built target chipmunk_static
[ 18%] Built target box2d
[ 18%] Built target unzip
[ 18%] Built target tinyxml2
[ 19%] Built target xxhash
[ 20%] Built target audio
[ 69%] Built target cocos2d
[ 74%] Built target extensions
[ 81%] Built target spine
[ 87%] Built target cocosbuilder
[100%] Built target cocostudio
Linking CXX executable …\bin\arpittest\arpittest.exe
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\sqlite3\libraries\mingw32/libsqlite3.a when searching for -lsqlite3
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\sqlite3\libraries\mingw32\libsqlite3.a when searching for -lsqlite3
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\curl\prebuilt\mingw32/libcurl.a when searching for -lcurl
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\curl\prebuilt\mingw32\libcurl.a when searching for -lcurl
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\curl\prebuilt\mingw32/libcurl.a when searching for -lcurl
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot find -lcurl
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\websockets\prebuilt\mingw32/libwebsockets.a when searching for -lwebsockets
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\websockets\prebuilt\mingw32/libwebsockets.dll when searching for -lwebsockets
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\websockets\prebuilt\mingw32\libwebsockets.a when searching for -lwebsockets
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\websockets\prebuilt\mingw32/libwebsockets.a when searching for -lwebsockets
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\websockets\prebuilt\mingw32/libwebsockets.dll when searching for -lwebsockets
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebsockets
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\jpeg\prebuilt\mingw32/libjpeg.a when searching for -ljpeg
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\jpeg\prebuilt\mingw32\libjpeg.a when searching for -ljpeg
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\png\prebuilt\mingw32/libpng.a when searching for -lpng
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\png\prebuilt\mingw32\libpng.a when searching for -lpng
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\webp\prebuilt\mingw32/libwebp.a when searching for -lwebp
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\webp\prebuilt\mingw32\libwebp.a when searching for -lwebp
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\tiff\prebuilt\mingw32/libtiff.a when searching for -ltiff
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\tiff\prebuilt\mingw32\libtiff.a when searching for -ltiff
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\glfw3\prebuilt\mingw32/libglfw3.a when searching for -lglfw3
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\glfw3\prebuilt\mingw32\libglfw3.a when searching for -lglfw3
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\glfw3\prebuilt\mingw32/libglfw3.a when searching for -lglfw3
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot find -lglfw3
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\win32-specific\gles\prebuilt\mingw32/libglew32.a when searching for -lglew32
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\win32-specific\gles\prebuilt\mingw32\libglew32.a when searching for -lglew32
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\win32-specific\gles\prebuilt\mingw32/libglew32.a when searching for -lglew32
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot find -lglew32
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\win32-specific\icon\prebuilt/iconv.dll when searching for -liconv
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\freetype2\prebuilt\mingw32/libfreetype.a when searching for -lfreetype
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\freetype2\prebuilt\mingw32\libfreetype.a when searching for -lfreetype
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\bzip2\prebuilt\mingw32/libbz2.dll.a when searching for -lbz2
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\bzip2\prebuilt\mingw32/libbz2.a when searching for -lbz2
tests\arpittest\CMakeFiles\arpittest.dir\build.make:149: recipe for target ‘bin/arpittest/arpittest.exe’ failed
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:\cocos2d-x\cocos2d-x-3.2\external\bzip2\prebuilt\mingw32\libbz2.a when searching for -lbz2
collect2.exe: error: ld returned 1 exit status
CMakeFiles\Makefile2:640: recipe for target ‘tests/arpittest/CMakeFiles/arpittest.dir/all’ failed
Makefile:75: recipe for target ‘all’ failed
mingw32-make[2]: *** [bin/arpittest/arpittest.exe] Error 1
mingw32-make1: *** [tests/arpittest/CMakeFiles/arpittest.dir/all] Error 2
mingw32-make: *** [all] Error 2
11:21:06: The process “C:\msys64\mingw64\bin\mingw32-make.exe” exited with code 2.
Error while building/deploying project Cocos2dx (kit: Desktop Qt 5.3 MinGW-w64 64bit (MSYS2))
When executing step “Make”
11:21:06: Elapsed time: 00:23.

Thanks in advance

And when use your suggested project found another error
11:50:38: Running steps for project MyGame…
11:50:38: Starting: “C:\msys64\mingw64\bin\mingw32-make.exe”
Scanning dependencies of target MyGame
[ 33%] Building CXX object CMakeFiles/MyGame.dir/proj.win32/main.cpp.obj
In file included from D:\cocos2d-x\cpp-template-default-master\cpp-template-default-master\proj.win32\main.cpp:1:0:
D:\cocos2d-x\cpp-template-default-master\cpp-template-default-master\proj.win32\main.h:11:20: fatal error: CCStdC.h: No such file or directory
#include “CCStdC.h”
^
compilation terminated.
CMakeFiles\MyGame.dir\build.make:53: recipe for target ‘CMakeFiles/MyGame.dir/proj.win32/main.cpp.obj’ failed
mingw32-make[2]: *** [CMakeFiles/MyGame.dir/proj.win32/main.cpp.obj] Error 1
CMakeFiles\Makefile2:59: recipe for target ‘CMakeFiles/MyGame.dir/all’ failed
mingw32-make[1]: *** [CMakeFiles/MyGame.dir/all] Error 2
Makefile:75: recipe for target ‘all’ failed
mingw32-make: *** [all] Error 2
11:50:39: The process “C:\msys64\mingw64\bin\mingw32-make.exe” exited with code 2.
Error while building/deploying project MyGame (kit: Desktop Qt 5.3 MinGW-w64 64bit (MSYS2))
When executing step “Make”
11:50:39: Elapsed time: 00:01.

So what I do now

@sharma_arpit
Okay well your error here is that
mingw64 = x86_64 compiler
mingw32 = i686 compiler
So you are trying to link a 64bit library into a 32bit program.

What I don’t understand is why are you building cocos2d-x?
I have already prebuilt it for you in the 2 packages
mingw-w64-x86_64-cocos2d-x-git and mingw-w64-i686-cocos2d-x-git

So you just clone the template i have on github and open the cmakelists.txt with qt creator and it will work.

i.e. its a prebuilt version of cocos2d-x

Sorry for silly mistakes .
Thank you very much for the tutorial .

How I can do that with cocos2d-x 2.2.1cpp?

@sharma_arpit
You can’t currently do this with 2.2.1
The version is f9d770d from git.
This is near 3.3alpha
Soon I will start doing stable releases such as 3.3 3.4 etc
It could be back ported to 2.2.5 but the focus is on the v3 branch.

Someone will have to backport my cmake scripts for this.
I currently am too busy with other work todo this v2 port.
If someone wants it bad enough in the community I’m sure they will backport it

@Martell Thank you very much! Everything works!

@nicolla Great :smile:
Soon I will be updating to 3.3 when it is release.
@ricardo Is working on getting cocos2d-console working also.

So soon you will be able to just pacman -S cocos-console
and then create a new project by just running cocos new -l cpp

There will be no need to clone my repo :smiley:

great! :slight_smile:

@Martell
Receive the following problem.

I added to the AppDelegate.cpp of a line, selected with comments #####:

#include "AppDelegate.h"
#include "HelloWorldScene.h"

USING_NS_CC;

//############################
using namespace CocosDenshion;
//############################

AppDelegate::AppDelegate() {

}

AppDelegate::~AppDelegate() 
{
}

bool AppDelegate::applicationDidFinishLaunching() {
    // initialize director
    auto director = Director::getInstance();
    auto glview = director->getOpenGLView();
    if(!glview) {
        glview = GLView::create("My Game");
        director->setOpenGLView(glview);
    }

    // turn on display FPS
    director->setDisplayStats(true);

    // set FPS. the default value is 1.0/60 if you don't call this
    director->setAnimationInterval(1.0 / 60);

    // create a scene. it's an autorelease object
    auto scene = HelloWorld::createScene();

    //##############################################################
    // preload all the sound
    SimpleAudioEngine::getInstance()->preloadEffect("sfx_wing.ogg");
    //##############################################################

    // run
    director->runWithScene(scene);

    return true;
}

// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
void AppDelegate::applicationDidEnterBackground() {
    Director::getInstance()->stopAnimation();

    // if you use SimpleAudioEngine, it must be pause
    // SimpleAudioEngine::getInstance()->pauseBackgroundMusic();
}

// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground() {
    Director::getInstance()->startAnimation();

    // if you use SimpleAudioEngine, it must resume here
    // SimpleAudioEngine::getInstance()->resumeBackgroundMusic();
}

After that the linker gives out the following error:

D:/DEVELOPMENT/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../lib/libaudio.a(MciPlayer.cpp.obj):(.text+0x73): undefined reference to `__imp_mciSendCommandA'

What could be the problem?
Thanks in advance!

Hi @nicolla

Sorry I didn’t get back to you sooner, I didn’t get an email notification for this message.

You need to add Winmm to your link libraries.
Currently this is a wip.
The first fully supported version will be 3.3 when it is released.

@Martell
I got this when trying to install step 2
/mingw64/lib/libprotobuf.a exists in both ‘mingw-w64-x86_64-protobuf’ and ‘mingw-w64-x86_64-cocos2d-x-git’
Errors occurred, no packages were upgraded.

Hi @siauw,
That package is quite old at the time protobuf was compiled into the cocos2d-x package
you can pass --force to pacman to make it install over the official protobuf package.
I actually have some free time today as I’m updating packages so I will see if I can build a 3.6 package.

everything is setup now, i can generate codeblocks project, but got this error
c:\mydir\cocos2d\cocos\base\CCConsole.h|114|error: ‘ssize_t’ does not name a type|

any clues?
I tried using mingw gccc 4.8.2 and mingw64 5.1, same error
I created a new topic for this