From: Anders <and...@us...> - 2012-11-08 22:28:47
|
The building NSIS page links to http://prdownloads.sourceforge.net/libpng/zlib124-dll.zip but for some reason that file was deleted from SF at some point. The .lib in zlib125-dll.zip seems to crash when using Visual Studio! What I have been doing is to grab the .lib from zlib123-dll.zip and the .dll from zlib125-dll.zip ( http://sourceforge.net/projects/libpng/files/zlib/ ) and that works both for MinGW and VC2003 IIRC. On Thu, Nov 8, 2012 at 9:50 PM, Oleksandr Gavenko <gav...@gm...> wrote: > I built NSIS trunk by: > > set PATH=c:\opt\python27;c:\opt\python27\Scripts;c:\opt\MinGW\msys\1.0\bin;c:\opt\MinGW\bin;%PATH% > set ZLIB_W32=c:\opt\zlib > > scons SKIPUTILS="NSIS Menu" > scons PREFIX="C:\opt\NSIS" install > > $ cd c:\opt\nsis > $ makensis.exe Examples\example1.nsi > ... > $ Examples\example1.exe > ... > > But one step took a long time. That was zlib library. I got zlib from well > known Gnuwin32 project unpuck them and build failed at configuration step. As > I was new to SCons I spend a lot of time on finding a way to debug issue. > > My problem come from 2 thing: > > * where do zlib live? > * how to install zlib (file names, directory layout)? > > After all I found reference about zlib at: > > http://nsis.sourceforge.net/Docs/AppendixG.html > > but these pages initially frustrate me: > > http://nsis.sourceforge.net/Development_Files > http://nsis.sourceforge.net/Building_NSIS_from_SVN > http://nsis.sourceforge.net/Special_Builds > > In order to build I prepare fix: > > Index: SConstruct > =================================================================== > --- SConstruct (revision 6273) > +++ SConstruct (working copy) > @@ -461,7 +461,7 @@ > ) > )) > # Search for import library of zlib for VisualC or mingw > - for importlib in ['zdll.lib', 'libzdll.a']: > + for importlib in ['zdll.lib', 'libzdll.a', 'libz.dll.a']: > defenv['ZLIB_W32_LIB'] = os.path.dirname(str( > defenv.FindFile(importlib, > [ > > Note that "libz.dll.a" name also used in Cygwin... > > Also I have attempt to cross-compile NSIS in Debian and in Cygwin. But seems > Sconstruct must be fixed to do so. > > -- > Best regards! > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > Nsis-devel mailing list > Nsi...@li... > https://lists.sourceforge.net/lists/listinfo/nsis-devel |