[Bf-committers] CMake+MSVC workarounds for recent /WX and MT changes

Steve Obbayi steve at sobbayi.com
Wed Nov 3 06:58:03 CET 2010


I had to explicitly cast the ints to unsigned ints to get it to compile
as well. I believe other compilers have been it implicitly. If so then
this should be fine. I will also look into the multithreading a little 
more and give my comments on it.

Steve Obbayi
Software Developer

----- Original Message -----
From: "Dalai Felinto" <dfelinto at gmail.com>
To: "bf-blender developers" <bf-committers at blender.org>
Sent: Tuesday, November 2, 2010 6:56:18 PM GMT -05:00 US/Canada Eastern
Subject: [Bf-committers] CMake+MSVC workarounds for recent /WX and MT changes

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
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:

I guess I could change it in CMakeLists.txt - e.g.::
+SET(PLATFORM_LINKFLAGS "/NODEFAULTLIB:libc.lib msvcrt.lib libcd.lib
libcmtd.lib msvcrtd.lib")

Does anyone know if this is the way to go?


Bf-committers mailing list
Bf-committers at blender.org

More information about the Bf-committers mailing list