From 5ea297c4cad810ef56c1f034bde9936401852e18 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 3 Mar 2007 13:21:55 +0000 Subject: [PATCH] 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 --- Docs/src/build.but | 6 ++++-- INSTALL | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Docs/src/build.but b/Docs/src/build.but index bb04c2e2..a6a74503 100644 --- a/Docs/src/build.but +++ b/Docs/src/build.but @@ -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: diff --git a/INSTALL b/INSTALL index 2a9aee32..0dd0ce56 100644 --- a/INSTALL +++ b/INSTALL @@ -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