gnucash/packaging/win32
Andreas Köhler a80da3764d Win32: Always try to install Date-Manip and as fallback DateManip.
It seems that the PPM repositories for ActivePerl v5.6 and v5.8 have been
changed so that DateManip cannot be found anymore.  Keep it for second try
nonetheless.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17504 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-13 14:45:41 +00:00
..
create_cross_mingw.sh Integrate create_cross_mingw.sh into install.sh. Minor cleanups. 2007-05-23 17:21:14 +00:00
defaults.sh Add support to build trunk with libdbi and dbi backend on win32/mingw 2008-08-17 16:38:31 +00:00
dist.sh Additional win32 packaging changes for installation (including libdbi). 2008-08-20 12:09:10 +00:00
exetype.pl Use UNIX line delimiters in packaging/win32/exetype.pl. 2007-05-23 17:21:20 +00:00
functions.sh Win32: Minor change for emacs compat. 2008-08-02 12:04:06 +00:00
gnucash.iss.in Additional win32 packaging changes for installation (including libdbi). 2008-08-20 12:09:10 +00:00
goffice-0.4.3-patch.diff Win32: Update package versions. 2007-12-15 17:34:26 +00:00
Greek-4-5.1.11.isl Add Greek translation for Setup messages by Nikos Charonitakis. 2007-07-09 19:23:46 +00:00
install-fq-mods.bat Win32: Always try to install Date-Manip and as fallback DateManip. 2008-09-13 14:45:41 +00:00
install.sh Win32 build: Fix a typo to get trunk working on win32/mingw again. 2008-08-26 17:09:03 +00:00
libdbi-0.8.3.patch Add support to build trunk with libdbi and dbi backend on win32/mingw 2008-08-17 16:38:31 +00:00
libdbi-drivers-dbd_sqlite3.c.patch Add support to build trunk with libdbi and dbi backend on win32/mingw 2008-08-17 16:38:31 +00:00
libdbi-drivers-Makefile.in.patch Add support to build trunk with libdbi and dbi backend on win32/mingw 2008-08-17 16:38:31 +00:00
libgda-3.1.2-patch2.diff Merge gda-dev2 branch into trunk. 2008-08-01 16:02:07 +00:00
libgda-3.1.2-patch.diff Merge gda-dev2 branch into trunk. 2008-08-01 16:02:07 +00:00
libofx-0.8.3-patch.diff On Win32, add get_dtd_installation_directory to LibOFX. Fix #406286. 2007-02-11 17:30:54 +00:00
make_install.sh Win32: Provide make_install.sh with some vars, make it more robust. 2008-02-06 23:38:37 +00:00
Makefile.am Merge gda-dev2 branch into trunk. 2008-08-01 16:02:07 +00:00
opensp-1.5.2-patch.diff Add compiling and installation of opensp, libofx and enable ofx support of gnucash 2007-02-06 16:19:23 +00:00
pi.sh Add pi.sh, a postinstall script of mingw. 2006-09-01 21:33:01 +00:00
README Append `.sh' to packaging/win32/{functions,defaults}. 2007-04-26 21:58:07 +00:00
redirect.c Add win32/redirect.c, a tool spawning itself in a parent bin\ directory. 2007-07-08 13:08:49 +00:00
reset.sh Additional win32 packaging changes for installation (including libdbi). 2008-08-20 12:09:10 +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 `defaults.sh' and optionally
`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

* Look at defaults.sh and create a file named custom.sh to specify adapted directory
  variables.  If you want verbose output of any script
  step, add "set -x" to that file.

* Either, download Qt from http://www.trolltech.com/developer/downloads/qt/windows,
  install it and set QTDIR in custom.sh, like "QTDIR=/c/Qt/4.2.3"; or skip building
  the AqBanking Setup Wizard by specifying "AQBANKING_WITH_QT=no".

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

  $INSTALLER_DIR/install.sh

Good luck!

To generate a self-installing setup.exe file that contains
*everything*, run the following command after install.sh has
completed:

  $INSTALLER_DIR/dist.sh

More information is collected on http://wiki.gnucash.org/wiki/Windows


--------------------------

Cross-compiling a Windows/mingw32 executable of GnuCash on a Linux
host system. (Note: This used to work unchangedly in Sept'2006 but
probably not any longer.)

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 defaults.sh: Make a global 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 defaults.sh according to your
   preferred installation, especially $GLOBAL_DIR.

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

4. Call install.sh, which will read the directory settings from
   defaults.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!