r14850 - gnucash/trunk/packaging/win32 - Initial hints on how to start a cross-compile

Christian Stimming cstim at cvs.gnucash.org
Fri Sep 15 15:29:26 EDT 2006


Author: cstim
Date: 2006-09-15 15:29:25 -0400 (Fri, 15 Sep 2006)
New Revision: 14850
Trac: http://svn.gnucash.org/trac/changeset/14850

Modified:
   gnucash/trunk/packaging/win32/README
   gnucash/trunk/packaging/win32/install.sh
Log:
Initial hints on how to start a cross-compile

Modified: gnucash/trunk/packaging/win32/README
===================================================================
--- gnucash/trunk/packaging/win32/README	2006-09-15 13:41:43 UTC (rev 14849)
+++ gnucash/trunk/packaging/win32/README	2006-09-15 19:29:25 UTC (rev 14850)
@@ -1,6 +1,9 @@
 These scripts try to download and install a Windows/mingw32 build
-environment for GnuCash.
+environment for GnuCash on Windows. 
 
+For cross-compiling the windows executable on Linux, see the lower
+section of this file.
+
 Before you start with the automated build, you have to complete these
 steps manually. The directory variables are set in custom.sh.
 
@@ -28,3 +31,23 @@
 Good luck!
 
 More information is collected on http://wiki.gnucash.org/wiki/Windows
+
+--------------------------
+
+Cross-compiling a Windows/mingw32 executable of GnuCash on a Linux
+host system.
+
+These steps need to be performed:
+
+* Edit the file create_cross_mingw.sh and set the PREFIX= variable to
+  the preferred prefix of the mingw32 gcc/binutils on your Linux. 
+
+* Then run the script create_cross_mingw.sh - it will download,
+  compile, and install a mingw32 toolchain.
+
+* Run "dos2unix custom.sh install.sh" and in custom.sh, make a
+  search&replace of '\\' into '/'.
+
+* Edit custom.sh to set your preferred directory paths.
+
+(... to be continued ...)

Modified: gnucash/trunk/packaging/win32/install.sh
===================================================================
--- gnucash/trunk/packaging/win32/install.sh	2006-09-15 13:41:43 UTC (rev 14849)
+++ gnucash/trunk/packaging/win32/install.sh	2006-09-15 19:29:25 UTC (rev 14850)
@@ -84,6 +84,7 @@
 
 function prepare() {
     mkdir -p $TMP_DIR
+    mkdir -p $DOWNLOAD_DIR
     for _ENV in $ENV_VARS; do
 	eval "${_ENV}_BASE"'=$'"${_ENV}"
 	eval "${_ENV}_ADDS="
@@ -126,7 +127,7 @@
 function inst_wget() {
     setup Wget
     _WGET_UDIR=`unix_path $WGET_DIR`
-    if quiet $_WGET_UDIR/wget --version
+    if quiet $_WGET_UDIR/wget --version || quiet wget --version
     then
         echo "already installed.  skipping."
     else
@@ -179,7 +180,7 @@
 function inst_unzip() {
     setup Unzip
     _UNZIP_UDIR=`unix_path $UNZIP_DIR`
-    if quiet $_UNZIP_UDIR/bin/unzip --help
+    if quiet $_UNZIP_UDIR/bin/unzip --help || quiet unzip --help
     then
         echo "unzip already installed.  skipping."
     else



More information about the gnucash-changes mailing list