Hi to everyone, i’am Ale and i’am new in Cocos2d-x.
After i build my project for win32 with the command: cocos deploy -p win32 -m release
I receive an error message that says that is impossible to complete the operation.
When i try to run an example project in Visual Studio 2017 i receive an error message that says: 'WinSock32 not found'
Usually it is good practice to specify the version of the engine that you are using.
Can you build the project in debug mode?
I am using cocos2d-x 3.15.1, Win 10 and Visual Studio 2017. And I am able to build a win32 project.
Open the project in Visual Studio, then retarget the solution (right click on the solution -> Retarget solution) and build it.
You may need to download some packages, see the Error list if there is one.
If you see an error with a mention of msvcr110.dll, then you need to download Microsoft Visual C++ Redistributable 2012.
I find it strange that this msvcr110.dll is required, I use Visual Studio 2017 to build the project, not Visual Studio 2012.
Could you take a look at this, please?
So you just create a new project using the cocos console, then open it in Visual Studio 2017 and build it?
Do you use win32 project?
Do you use Retarget solution? (In fact, Visual Studio does not allow me to build the project if I do not do Retarget solution.)
I create a new project, I open it in Visual Studio and get this. Is this normal?
you need use vs2017 to recompile any third party which are prebuilt with old msvc less than vs2015.
I did this work.
Why somebody win7 is ok, because some softwares will install old msvc redists on his system. IF you use a pure win7 or win 10 with vs2017 installed, this issue will always present.
Since @halx99 kindly explained what the problem is, then
Is it possible to download-deps.py will download the third party package, which compiled with a newer Visual Studio?
Since Visual Studio 2017 is the actual version now, it seems reasonable.
It is a huge work. And currently cocos2d-x supports VS2013, VS2015, every VS version needs its own version of 3rd party library, and may even include debug and release version. So i think cocos2d-x should just supports one VS version. May be we should create a new topic to discuss it.
I think cocos2d-x team should only focus on one VS version. Only provide one version 3rd parties, only test one VS version. We don’t want to put more energy on VS version compatibility issues. I planed support only VS2015 since cocos2d-x supported it for a long time, and we don’t have to rebuild all 3rd party libraries.