Archive: Error while building NSIS


Error while building NSIS
I am getting the following error while building NSIS. I have limited knowledge of scons and python. Please help me out.

IndexError: string index out of range:
File "D:\nsis-2.27-src\SConstruct", line 1:
EnsurePythonVersion(1,6)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Script\SConscr
line 581:
env = self.factory()
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Script\SConscr
line 561:
default_env = SCons.Defaults.DefaultEnvironment()
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Defaults.py",

_default_env = apply(SCons.Environment.Environment, args, kw)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Environment.py
784:
apply_tools(self, tools, toolpath)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Environment.py
101:
env.Tool(tool)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Environment.py
1338:
tool(self)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Tool\__init__.
e 175:
apply(self.generate, ( env, ) + args, kw)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Tool\default.p
40:
for t in SCons.Tool.tool_list(env['PLATFORM'], env):
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Tool\__init__.
e 548:
env)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Tool\__init__.
e 437:
return filter (ToolExists, tools)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Tool\__init__.
e 436:
return Tool(tool).exists(env)
File "C:\Python25\Lib\site-packages\scons-0.97.0d20070809\SCons\Tool\wix.py",

if path[0] == '"' and path[-1:]=='"':


Don't use the beta version of scons. Use scons 0.97.


I am getting this error now

Using Microsoft tools configuration
*** Couldn't find a good version of libcp.lib

I have added the PlatformSDK and MSSDK to the path variable. I also tried running it from the Visual Studio .Net 2003 command prompt, But no luck :(


Run scons --config=force and if it still happens attach config.log of a clean build.


Thanks for the help kichik. i had problem with the setting of environment variables and i installed scons 0.97 and removed the beta version. Now everything is working just perfect :)


I just have one stupid question. When you sent me a zip file of makensis the size was 464kb but when i build it it is around 382kb. Are you building it with some flags? Could you give me the list of it.

Thanks for the help.


I'm building with nothing but the default but I use Visual C++ 6.0 SP5 with Processor Pack and Platform SDK of February 2003. VC2003 might have some more optimizations or you have a dependency on msvcr71.dll.