Skip to content
⌘ NSIS Forum Archive

Headers for compiling NSIS

10 posts

parasoul#

Headers for compiling NSIS

Hello,
I am trying to compile NSIS but I'm having problems locating the correct header files, as they are not included in the source I downloaded and I can't find them on the net.

Cannot open include file: 'nsis-version.h': No such file or directory
Cannot open include file: 'nsis-sconf.h': No such file or directory

those are the two I know are missing thus far. did I miss a step in downloading the NSIS SDK? And if so, where can I go to get it?

Thanks!
parasoul#
I also downloaded the svn, and looked in most all versions of it and still can't find the header files...

anyone?
Anders#
You need a somewhat recent Microsoft Platform/Windows SDK (2003 or newer probably), the zlib header files, scons (+python) and the nsis source, then run scons to compile. Those header files are probably generated on the fly by scons during the build...
parasoul#
Ah, I see. Thank you.

How do I open a SCons script? it's a FILE type, and it's not clear how to actually get SCons to execute it
Afrow UK#
SCons is a batch file in your Python Scripts folder. You run that with the NSIS folder path as an argument.

Stu
parasoul#
Ah okay. I figured out some. I'm having problems specifying the zlib directory. I downloaded zlib from http://people.apache.org/~wrowe/zlib...-win32-x86.zip

I put it into folder c:\zlib

I ran scons the following way:
c:\Python25\Scripts>scons --directory "C:\Users\Steven\Documents\NSIS" ZLIB_W32=
C:\zlib
and still it returns:
scons: Reading SConscript files ...
Mkdir("build\release\config")
Delete("nsis-14-Feb-2011.cvs")
Delete(".instdist")
Delete(".test")
Using Microsoft tools configuration
Checking for memset requirement... yes
Checking for C library gdi32... yes
Checking for C library user32... yes
Checking for C library pthread... no
Checking for C library iconv... no
Checking for C library version... yes
Checking for C library zdll... no
Checking for C library z... no
zlib (win32) is missing!
parasoul#
nevermind, I set it as an enviornmental variable and it worked that way. lets see if it will compile now.
parasoul#
despite my following the instructions for allowing the nsis menu to build (installing wxwidgets & setting env variable & running wx.bat), scons is still returning:
err(["build\release\NSIS Menu\NSIS"], ["Contrib\NSIS Menu\nsismenu\nsismenu.cpp"
, "Contrib\NSIS Menu\nsismenu\nslinks.cpp"])
*** error: WXWIN must be set to build NSIS Menu!
scons: *** [build\release\NSIS Menu\NSIS] Error 1
scons: building terminated because of errors.
is there a build that excludes the menu? or is there a way to skip the processing of the menu?

ThankS!
Anders#
You can use scons -h (or -H) to get a list of settings

I use something like: scons SKIPUTILS="NSIS Menu" PREFIX=c:\newnsis install
parasoul#
hehe I took a less technical approach by deleting the SConscript file in \NSIS Menu\

all is well now. thanks for all the help ^.^