Running cocos2d-x project on x64

Anyone succeeded in running a cocos2d-x v4.0 project on x64?

There are a lot of x64 libs missing.
I’ve been trying to get online the x64 version of this lib’s but some are very hard to get.

2>…\cocos2d\external\freetype2\prebuilt\win32\freetype.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\jpeg\prebuilt\win32\libjpeg.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\webp\prebuilt\win32\libwebp.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\websockets\prebuilt\win32\websockets.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\openssl\prebuilt\win32\libssl.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\openssl\prebuilt\win32\libcrypto.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\uv\prebuilt\win32\uv_a.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\curl\prebuilt\win32\libcurl.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\png\prebuilt\win32\libpng.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\win32-specific\icon\prebuilt\libiconv.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\win32-specific\MP3Decoder\prebuilt\libmpg123.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\win32-specific\OpenalSoft\prebuilt\OpenAL32.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’
2>…\cocos2d\external\glfw3\prebuilt\win32\glfw3.lib : warning LNK4272: library machine type ‘x86’ conflicts with target machine type ‘x64’

I believe you would need to use our dependencies repo and build these for x64. I’ve never tried myself but I believe there are other threads from v3 where developers have done this.

1 Like