Archive: building NSIS with VS C++ 2005


building NSIS with VS C++ 2005
Hi, I'm trying to compile NSIS as to print to stdout in my installer, but I'm having a spot of trouble.

On a VM with WinXP I installed:
Python 2.5.2
Scons 0.96.93
Visual C++ 2005 Express
And the Platform SDK for WinXP SP2

When I run scons in the nsis directory I get the following error:

...
scons: done reading SConscript files.
scons: Building targets ...
cl /nologo /GS- /O1 /W3 /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /c
Contrib\AdvSplash\advsplash.c /Fobuild\release\AdvSplash\advsplash.obj
advsplash.c
Contrib\AdvSplash\advsplash.c(4) : fatal error C1083: Cannot open include file:
'windows.h': No such file or directory
scons: *** [build\release\AdvSplash\advsplash.obj] Error 2
scons: building terminated because of errors.


The config.log isn't too much more helpful, the first error is:



file C:\nsis-2.38-src\SCons\Config\ms,line 184:
Configure(confdir = .sconf_temp)
scons: Configure: ".sconf_temp\conftest_1.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp\conftest_1.c <-
| |
| |#include <windows.h>
| |int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, int nCmdShow) {
| | ULARGE_INTEGER *i = 0;
| | return (int)(i->QuadPart >> 10);
| |}
| |
|
scons: Configure: Building ".sconf_temp\conftest_1.obj" failed in a previous run and all its sources are up to date.
scons: Configure: The original builder output was:
|cl /nologo /GS- /O1 /W3 /FAcs /Fa.sconf_temp\conftest_1.obj.lst /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /c .sconf_temp\conftest_1.c /Fo.sconf_temp\conftest_1.obj
|


Any ideas what I'm missing or what I should investigate?
Thanks!

Do you by any chance have MSVS 2008 installed as well?


Nope, I tried this on a fresh VM machine