[Bf-committers] CMake+MSVC workarounds for recent /WX and MT changes
Dalai Felinto
dfelinto at gmail.com
Tue Nov 2 23:56:18 CET 2010
Hello there,
there are two set of problems stopping blender for building on MSVC +CMake.
I have they working (locally) with some tweaks, but it would be nice to find
what is the right way to do it.
1) The first one is regarding warnings (WX):
Blender will crash for some of the warnings in smoke, custom_data and ffmpeg
projects. The kind of error we get is:
- trunk\source\blender\blenkernel\intern\smoke.c(148) : error C2220:
warning treated as error - no 'object' file generated
The fix I'm applying locally is:
http://www.pasteall.org/16439/diff (basically casting ints to unsigned int -
as commented in previous email)
2) Multithreading is crashing things here. I noticed recent commits for
scons (and attempt ones for CMake) regarding this, but for me it's still
broken.
Following the instructions from here
http://msdn.microsoft.com/en-us/library/Aa267384 I managed to build again
going to the "blender" project and changing the ignored libraries from
libc.lib to:
libc.lib;msvcrt.lib;libcd.lib;libcmtd.lib;msvcrtd.lib
I guess I could change it in CMakeLists.txt - e.g.::
-SET(PLATFORM_LINKFLAGS "/NODEFAULTLIB:libc.lib ")
+SET(PLATFORM_LINKFLAGS "/NODEFAULTLIB:libc.lib msvcrt.lib libcd.lib
libcmtd.lib msvcrtd.lib")
Does anyone know if this is the way to go?
Regards,
Dalai
www.dalaifelinto.com
More information about the Bf-committers
mailing list