gnucash/packaging/win32
Christian Stimming 0744164742 Add gwenhywfar/aqbanking for win32 online banking. Not yet activated because we are waiting for upstream releases.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15389 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-15 17:36:01 +00:00
..
create_cross_mingw.sh Add script for building a cross-compile mingw toolchain on Linux. 2006-09-14 15:33:42 +00:00
custom.sh Add gwenhywfar/aqbanking for win32 online banking. Not yet activated because we are waiting for upstream releases. 2007-01-15 17:36:01 +00:00
dist.sh Make GnuCash work on Windows again. 2007-01-07 21:33:26 +00:00
functions install.sh: Ease registration of environment variables. Fix dist.sh to 2006-12-21 19:19:09 +00:00
gnucash.iss.in Make GnuCash work on Windows again. 2007-01-07 21:33:26 +00:00
goffice-0.3.0-patch.diff Repost goffice-0.3.0-patch.diff, with gtk-doc.m4 included. 2006-10-11 17:09:32 +00:00
goffice-0.3.2-patch.diff Some win32 package updates: 2006-11-01 22:43:00 +00:00
install.sh Add gwenhywfar/aqbanking for win32 online banking. Not yet activated because we are waiting for upstream releases. 2007-01-15 17:36:01 +00:00
pi.sh Add pi.sh, a postinstall script of mingw. 2006-09-01 21:33:01 +00:00
README Fully explain a cross-compile build of gnucash/mingw32 on Linux. 2006-09-18 16:11:18 +00:00
reset.sh Fix typo in reset.sh. 2006-10-21 18:31:05 +00:00

These scripts try to download and install a Windows/mingw32 build
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.

* Download MSYS (but *only* msys, no mingw and no msysdtk)
from http://www.mingw.org/download.shtml -> Current -> MSYS -> (bin, *.exe)
to $DOWNLOAD_DIR

* Install MSYS (no postinstall)
to $MSYS_DIR

* Download wget
from http://www.mingw.org/download.shtml -> Current -> mingwPORT -> (bin, wget-*)
to $DOWNLOAD_DIR

* Adjust installer.sh and/or custom.sh. Especially in the latter you
  can comment out those build steps that have been completed already
  and/or should not be performed now. If you want verbose output of
  any script step, change the first line in install.sh and add the
  "-x" switch.

Start/Enter any MSYS shell. Let the automated build begin by:

  $INSTALLER_DIR/install.sh

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:

1. Edit the file create_cross_mingw.sh and set the PREFIX= variable to
   the preferred prefix of the mingw32 gcc/binutils on your
   Linux. (It is strongly recommended to choose a different prefix
   than your normal compiler toolchain in order to distinguish
   your native vs. cross compiler more easily.) Then run the
   script create_cross_mingw.sh - it will
   download, compile, and install a mingw32 toolchain.

2. Edit the file custom.sh: Make a globale search-and-replace of
   '\\' into '/' so that all directories are specified in unix
   conventions. Set the variable cross_compile to "yes". Then
   adjust the directories in custom.sh according to your
   preferred installation, especially $GLOBAL_DIR.

3. Download the binary windows packages for "guile" and "g-wrap"
   from http://www.tu-harburg.de/~et2cs/gnc/ and unpack them into
   the directories $GUILE_DIR and $GWRAP_DIR as given in
   custom.sh. (This is done because the build system for guile and
   g-wrap doesn't support cross-compiling.)

4. Call install.sh which will read the directory settings from
   custom.sh. It should download, compile, and install everything
   automatically. Eventually the windows gnucash is installed into
   $GNUCASH_DIR. 

5. The content of $GNUCASH_DIR (as well as all the other binary
   packages) should then be copied to a windows machine. The paths
   in $GNUCASH_DIR/bin/gnucash and/or $GNUCASH_DIR/bin/gnucash.bat
   need to be adjusted for the installation location on the
   windows machine.

Good luck!