If I run SCons without any changes, it compiles perfectly with VC8. Now I'd like to run it with other compilers.
I tried a lot of various thing and option switches, or even tried to tweak SConstruct, but I get various type of errors, most of the time before it even starts compiling!
Here are some examples of the errors I get:
AttributeError: SConsEnvironment instance has no attribute 'Program':
File "D:\Prog\extern\NSIS\SCons\Config\ms", line 67:
if not conf.TryLink(libcptest % 'no change', '.cpp'):
File "C:\Programs\Python26\Lib\site-packages\scons-1.3.0\SCons\SConf.py", line 618:
return self.TryBuild(self.env.Program, text, extension )
Checking for C library zdll... no
Checking for C library z... no
zlib (win32) is missing!
scons: done reading SConscript files.So my question is:
scons: Building targets ...
scons: *** [build\release\AdvSplash\AdvSplash.dll] AttributeError : 'NoneType' object has no attribute '__dict__'
How to make this work?! Was someone able to achieve that on a single machine?
What is the set of environment variables needed for each compiler?
I have already:
MSDevDir=C:\Program Files\Microsoft Visual Studio\Common\MSDev98
VCToolkitInstallDir=C:\Program Files\Microsoft Visual C++ Toolkit 2003\
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
ZLIB_W32=D:\Prog\extern\zlib
How to force SCons into using a specific compiler?MSDevDir=C:\Program Files\Microsoft Visual Studio\Common\MSDev98
VCToolkitInstallDir=C:\Program Files\Microsoft Visual C++ Toolkit 2003\
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
ZLIB_W32=D:\Prog\extern\zlib
I already tried forcing values like:
defenv['MSVS_VERSION'] = "6.0"
defenv["MSVS"] = {"VERSION": "6.0"}
defenv["MSVC_VERSION"] = "6.0"
in SConstruct, without success... checking the effect with a print defenv.Dump()
Is the only solution to not have compilers in the standard installation path in order for SCons not to find those compilers?defenv['MSVS_VERSION'] = "6.0"
defenv["MSVS"] = {"VERSION": "6.0"}
defenv["MSVC_VERSION"] = "6.0"
in SConstruct, without success... checking the effect with a print defenv.Dump()