[Bf-committers] MSVC 7.1 compilation : lot of errors since the
15th of April
bjornmose at gmx.net
Fri Apr 27 00:42:40 CEST 2007
jmsoler at free.fr schrieb:
> Selon bjornmose <bjornmose at gmx.net>:
>> jmsoler at free.fr schrieb:
>>> Selon Johnny Matthews <johnny.matthews at gmail.com>:
>>>> Revert blender/tools/blender.py to its previous version for MSVC/Scons
>>>> and it made my build happy. It has to do with CCFLAGS and CXXFLAGS.
>>>> This is voodoo magic to me, but this made it work :)
>>> You are right that has worked perfectly. Thanks.
>> Well after all SCONS was my favorite check if bf-blender compiles fine ..
>> However i have my own taste on what was worth to throw a warning,
>> so i have my own set of user-config.py to build release/debug/strict ..
>> using some BAT scripts to invoke the one of the flavors i am in the mood for
>> a user-config.py that runs fine is -->
>> LCGDIR = '#../lib/windows'
>> [snap all]
>> note .. i did append REL_CCFLAGS here to have the /MT (multithreading)
>> option set here .. which is 99% likely to cause linking errors on windoofs
>> others changes are to calm down output to see severe warnings .. not
>> that the other ones should be ignored .. humm .. well
>> ahh .. if someone could fix that quicktime fixed path thing ..
>> better shut up now
> Whow! It compiles happily.
> Mucho gracias.
> Bf-committers mailing list
> Bf-committers at projects.blender.org
did some homework ..
to boil it down to that
CC = 'cl.exe'
CXX = 'cl.exe'
#i'm not quite pleased by the default settings so i do my own
#CCFLAGS = ['/nologo', '/Og', '/Ot', '/Ob1', '/Op', '/G6','/EHsc', '/J',
'/W3', '/Gd', '/MT']
CCFLAGS = ['/nologo', '/EHsc', '/J', '/W3', '/Gd', '/MT']
CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DUSE_OPENAL',
REL_CFLAGS = ['-O2', '-DNDEBUG']
REL_CCFLAGS = ['-O2', '-DNDEBUG']
# warning selection /wdxxxxx = disable /woxxxxx = once
# i have a empty at start to build it up al gusto by commenting lines
CC_WARN = 
C_WARN = 
C_WARN += ['/wd4244'] #conversion from type1 to type2, possible loss of data
C_WARN += ['/wd4305'] #trunctatio from type1 to type2, possible loss of data
C_WARN += ['/wo4800'] #forcing value to bool (performance warning)
C_WARN += ['-D_CRT_SECURE_NO_DEPRECATE'] #old unsave string operations
C_WARN += ['/wo4996'] #old hypot
#use warning set for C++ too
CC_WARN = C_WARN
#since CXXFLAGS are replaced by REL_CCFLAGS in /tools/blender.py we need
to add a complete set of flags here
REL_CCFLAGS += CCFLAGS
#from reading /tools/blender.py i'd guess debug builds need to set
LLIBS = 'ws2_32 dxguid vfw32 winmm kernel32 user32 gdi32 comdlg32
advapi32 shell32 ole32 oleaut32 uuid'
More information about the Bf-committers