Archive: NSIS source code's problems


NSIS source code's problems
I download NSIS source code 2.22 version. And Install python and Scons. My software environment is WinXP and VC8.0

I want to build a windows program. How can I do?


question 2:

I key in "scons -U makensis" to the command line. And build targets Success! but makensis.exe is a command line program.

I run makensis.exe, print error information:

Error: opening stub "D:\project\nsis-2.22-src\build\release\makensis\Stubs\zlib"

Error initalizing CEXEBuild: error setting default stub

what is the stub?


question 3:

I look the source code.(build.cpp line:3344)

FILE *tmpfile = fopen(file.c_str(), "rb");

file.c_str() is a directory(D:\project\nsis-2.22-src\build\release\makensis\Stubs\zlib), not a file name.

I need help...


zlib is the filename (no exstension)


Also installing VC8.0 ServicePack1 might be of help.

You write that us use XP - XP+SP2 i assume? if not install SP2 also.

And you forgot to menton which Scons version you are using.
Make sure you use the CORRECT Scons version, which is not said to be always the latest version...


I key in "scons -U makensis" to the command line. And build targets Success! but makensis.exe is a command line program.
this is your problem.

the stubs arent build with that command.

try using:
scons MSTOOLKIT=yes dist

Quote:


thank you very much!

Originally posted by Comm@nder21
this is your problem.

the stubs arent build with that command.

try using:
scons MSTOOLKIT=yes dist


I have a new question.

I want to DEBUG the source code.

What TOOLs may I use? VC8.0? or others?


What do you consider "debug" the sourcecode?


Compile using DEBUG=yes and debug using a tool that supports PDB files. VC8.0 supports PDB and so does windbg.