Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 9th January 2007, 08:08   #1
eccctwangjun
Junior Member
 
Join Date: Jan 2007
Posts: 5
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?
eccctwangjun is offline   Reply With Quote
Old 9th January 2007, 08:30   #2
eccctwangjun
Junior Member
 
Join Date: Jan 2007
Posts: 5
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?
eccctwangjun is offline   Reply With Quote
Old 9th January 2007, 08:44   #3
eccctwangjun
Junior Member
 
Join Date: Jan 2007
Posts: 5
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...
eccctwangjun is offline   Reply With Quote
Old 9th January 2007, 15:32   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,811
zlib is the filename (no exstension)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 10th January 2007, 12:10   #5
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
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...

"Just do it"
onad is offline   Reply With Quote
Old 10th January 2007, 17:17   #6
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
Quote:
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
Comm@nder21 is offline   Reply With Quote
Old 15th January 2007, 02:40   #7
eccctwangjun
Junior Member
 
Join Date: Jan 2007
Posts: 5
Quote:
Originally posted by Comm@nder21
this is your problem.

the stubs arent build with that command.

try using:
scons MSTOOLKIT=yes dist

thank you very much!
eccctwangjun is offline   Reply With Quote
Old 16th January 2007, 01:59   #8
eccctwangjun
Junior Member
 
Join Date: Jan 2007
Posts: 5
I have a new question.

I want to DEBUG the source code.

What TOOLs may I use? VC8.0? or others?
eccctwangjun is offline   Reply With Quote
Old 16th January 2007, 09:06   #9
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
What do you consider "debug" the sourcecode?

"Just do it"
onad is offline   Reply With Quote
Old 16th January 2007, 17:40   #10
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
Compile using DEBUG=yes and debug using a tool that supports PDB files. VC8.0 supports PDB and so does windbg.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump