more on building and installing without cross-compiler on posix

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4969 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-03-03 13:21:55 +00:00
parent 6355acfa03
commit 5ea297c4ca
2 changed files with 9 additions and 5 deletions

View file

@ -75,9 +75,11 @@ As of NSIS 2.01, the compiler, makensis, also compiles on POSIX platforms. POSIX
If no cross-compiler is available, use the following:
\c scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all NSIS_CONFIG_CONST_DATA_PATH=no
\c scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all
\c NSIS_CONFIG_CONST_DATA_PATH=no PREFIX=/path/to/extracted/zip
\c install-compiler
This should only build makensis. Once makensis is built, drop it in a downloaded precompiled package such as the \R{build_nightly}{nightly build} or a \W{http://sourceforge.net/project/showfiles.php?group_id=22049}{zipped release version} (nsis-x.xx.zip). Note that the in order for this to work, the precompiled package must be compiled using the exact same sources as makensis. In particular, \c{Source\\exehead\\config.h}, the options passed to scons and \c{Source\\exehead\\fileform.h} must be identical.
This should only build makensis and install it to the directory where a precompiled package, such as the \R{nightly_build}{nightly build} or a \W{http://sourceforge.net/project/showfiles.php?group_id=22049}{zipped release version} (nsis-x.xx.zip) is extracted. Note that the in order for this to work, the precompiled package must be compiled using the exact same sources as makensis. In particular, \c{Source\\exehead\\config.h}, the options passed to scons and \c{Source\\exehead\\fileform.h} must be identical. Nightly builds and zipped release versions are built with the default options.
Currently, the System plug-in \W{http://forums.winamp.com/showthread.php?s=&threadid=227304}{can't be built} using a cross-compiler, but only with MSVC. When building with a cross compiler, always use at least the following flags:

View file

@ -46,10 +46,12 @@ This is a trimmed version of Appendix "Building NSIS" of the documentation.
* If a cross compiler is not available on POSIX, use:
scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all
NSIS_CONFIG_CONST_DATA_PATH=no PREFIX=/path/to/extracted/zip
install-compiler
This should only build makensis. Once you have makensis, you can
drop it in a downloaded precompiled package such as the nightly
build.
This should only build makensis and install it to the directory where
a precompiled package, such as the nightly build or a zipped release
version (nsis-x.xx.zip) is extracted.
* Options for POSIX installs