Archive: Error initalizing CEXEBuild: error setting default stub


Error initalizing CEXEBuild: error setting default stub
Hi All,
I am trying to compile the NSIS script in Windows XP. I installed NSIS 2.45.
I want to compile a NSIS script from the command line. The script compiles fine when I ran a.nsi->Right Click-> Compile NSIS script.

But it doesnot compile when I ran as following:
makensis.exe a.nsi
(Note:I Copied makensis.exe from C:\Program Files\NSIS to the directory where the a.nsi is located)

The following Error occurs:

Error: opening stub "c:\pan\Stubs\zlib"
Error initalizing CEXEBuild: error setting default stub

Can anybody help me in this regard to fix this problem?

Regards
Pradeep


I got the following link as the solution to problem I faced.

http://nsis.sourceforge.net/Docs/AppendixG.html

Snippet from the link
---------------------
To build NSIS Python and SCons must be installed. Currently, the supported version of SCons is version 0.96.93. Any version of Python above 1.6 is supported.

[Pradeep] : I could not able to find SCons 0.96.93 from the scon website. When I tried to download the higher version it seems the builing of NSIS fails. Is it necessary only exact SCons 0.96.93 version is required?

To build, open a console, change the working directory to the root directory of NSIS and type scons. That's it. For example:

C:\>cd dev\nsis
C:\dev\nsis>scons

[Pradeep]: I did not understand what the NSIS root directory is. I tried to go to the c:\program files\NSIS where NSIS is installed and tried scons and the following error occured:

'scons' is not recognized as an internal or external command,operable program or batch file.


Can anybody help me in this regard? Am I missing anything?


you need to copy the stubs folder from the nsis install, makensis is not a stand alone exe