|
|
#1 | |||
|
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 301
|
Building NSIS for various compiler (VC6,VC7,VC8...)
I am really having a hard time having SCons build NSIS source for various compilers on my machine where VC6, VC7 (VC++ Toolkit 2003), VC8 (VC++ Express 2005) are installed.
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: Quote:
Quote:
Quote:
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:How to force SCons into using a specific compiler? I already tried forcing values like:Is the only solution to not have compilers in the standard installation path in order for SCons not to find those compilers? My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|||
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,776
|
I used to be able to compile with VC6 and SCons 0.98 just fine, now with the need for a updated SCons (Why??) it no longer compiles without problems.
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 301
|
I use Python 2.6 and SCons 1.3.0 ...
My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,776
|
I'm using VC6 SP5+PP and PlatformSDK2003Feb, IIRC the new scons screws up the include directory order for me so I had to override the include and lib dirs in my scons command
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2009
Posts: 33
|
The following patch should allow you to select a specific Microsoft compiler.
See also www.scons.org/wiki/MsvsMultipleVersions PHP Code:
For example to select "Microsoft Visual C++ 2008 Express Edition": PHP Code:
PHP Code:
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,776
|
f0rt, I have been telling you for weeks now, VC6 SP5+PP and PlatformSDK2003Feb is the "default" setup and it is currently broken, so can you please fix it, or revert to older scons? I can't remember if it was you or Wizou that made 1.x a requirement, but something broke when that change was made, either with scons itself or our build script
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#7 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,776
|
If I change from scons 1.3 to 1.2, my VC6 setup builds, so I guess my problem is with scons itself. So, somebody (f0rt?) should file a bug with scons about platform sdk detection (I know they have done some changes there)
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 301
|
mmmh using f0rt changes, I was able to compile under VC6
and then moving from scons 1.3.0 to 1.2.0, I was able to compile under MSToolkit VC2003, but no longer under VC6 ! grrrr! (at least, it teaches us that if Nightly builds are made under MSToolkit 2003, they should use SCons 1.2.0) My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|