Archive: nsis 2.27 under linux - Library.nsh problems


nsis 2.27 under linux - Library.nsh problems
Hi all,
I use nsis under linux (Ubuntu 7.04) and up till now I have built my own nsis by following the INSTALL recommendations, i.e:
build makensis with:

scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all
and then droping it into a nsis zip release. All went well until I tried this with nsis 2.27.
In my project I need to use Library.nsh for InstallLib etc.
This is where it all comes appart because Library.nsh used to only attempt to run LibraryLocal.exe (line 149 in Library.nsh 2.27) if running under windows, now in 2.27 (I am guessing since 2.26), LibraryLocal is run even in non WIN32 versions of makensis (line 153). This means that just dropping a linux compiled makensis into a nsis zip release cannot work any more when using Library.nsh.

So now either I succeed in building a full version of nsis under linux or Library.nsh needs to allow one to call InstallLib even when LibraryLocal etc have not been built.

Could I get some pointers on how to compile a full version of nsis under linux ? should Library.nsh be patched ?

Sam.

You should simply install LibraryLocal as well. It now works on Linux as well. Use the following to build just LibraryLocal:

scons Library/LibraryLocal
It should then be put in the PATH so Library.nsh can find it.

Make that:

scons LibraryLocal
And to install, use:
scons NSIS_CONFIG_CONST_DATA_PATH=no PREFIX=/path/to/extracted/zip
/path/to/extracted/zip/LibraryLocal
I've updated the documentation to match.
scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all
NSIS_CONFIG_CONST_DATA_PATH=no PREFIX=/path/to/extracted/zip
install-compiler

scons NSIS_CONFIG_CONST_DATA_PATH=no PREFIX=/path/to/extracted/zip
/path/to/extracted/zip/LibraryLocal

Thanks kichik,
Indeed that works great. Thanks.
Sam.