gnucash/packaging/win32
Christian Stimming b53205e903 Set some more line-ending style properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18961 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-24 19:28:20 +00:00
..
aqbanking-3.8.3-patch.diff Fix the patch name. Oops. 2009-06-13 21:25:31 +00:00
aqbanking-4.1.6-patch.diff Win32 build: Add patch for gwenhywfar-3.11.0 so that this compiles correctly. 2009-09-23 08:31:49 +00:00
build_package.sh Let the trap happen. 2009-07-07 02:45:46 +00:00
build_tags.sh More updates the build-tags scripts: 2009-06-13 19:42:23 +00:00
create_cross_mingw.sh Integrate create_cross_mingw.sh into install.sh. Minor cleanups. 2007-05-23 17:21:14 +00:00
daily_build.bat Add the batch file for the win32 daily build. 2009-06-14 23:08:31 +00:00
daily_build.sh Refactor daily_build.sh into build_package.sh 2009-06-13 04:31:35 +00:00
defaults.sh Win32: Add download of cmake, disabled by default. 2010-03-04 17:47:51 +00:00
dist.sh Bug #610348: Add compiling our own binary of libbonoboui because the ftp.gnome.org binary still depends on the obsolete libxml2.dll. 2010-02-23 20:10:31 +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 Fix Windows installer doc to have perl >= 5.8 instead of 5.10 2010-03-17 10:54:35 +00:00
goffice-0.7.2-patch.diff [Win32] Update a whole bunch of packages. 2009-01-11 15:37: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
gwenhywfar-3.6.0-patch.diff [Win32] Update online banking libraries. 2009-01-13 02:14:00 +00:00
gwenhywfar-3.11.0-patch.diff Win32 build: Add patch for gwenhywfar-3.11.0 so that this compiles correctly. 2009-09-23 08:31:49 +00:00
gwenhywfar-3.11.1-patch.diff Win32 build: gwenhywfar needs another patch 2009-09-24 20:45:21 +00:00
install-fq-mods.cmd Set some more line-ending style properties. 2010-03-24 19:28:20 +00:00
install.sh Add src/calculation and src/app-utils to cmake build system. 2010-03-14 21:01:32 +00:00
Japanese-5-5.1.11.isl Bug #609402 Add Japanese resource to Windows (inno) setup 2010-02-09 13:14:32 +00:00
libbonoboui-2.24.2.patch Bug #610348: Add compiling our own binary of libbonoboui because the ftp.gnome.org binary still depends on the obsolete libxml2.dll. 2010-02-23 20:10:31 +00:00
libdbi-0.8.3.patch Remove more executable bits from data files 2010-02-03 19:19:35 +00:00
libdbi-dbd_helper.c.patch Remove more executable bits from data files 2010-02-03 19:19:35 +00:00
libdbi-drivers-dbd_mysql.c.patch Set the desired line-ending style to the correct value on the server side. 2010-03-24 19:18:08 +00:00
libdbi-drivers-dbd_pgsql.c.patch Build pgsql libdbi driver 2009-06-29 21:10:21 +00:00
libdbi-drivers-dbd_sqlite3.c.patch Set the desired line-ending style to the correct value on the server side. 2010-03-24 19:18:08 +00:00
libdbi-drivers-Makefile.in.patch Remove more executable bits from data files 2010-02-03 19:19:35 +00:00
libmysql.def Add .def file to allow libmysql.dll to be built. 2009-06-25 03:58:12 +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
libofx-0.9.2-patch.diff Minor version update for online banking packages. 2009-09-22 20:33:59 +00:00
make_install.sh Set some more line-ending style properties. 2010-03-24 19:28:20 +00:00
Makefile.am Bug #609402 Add Japanese resource to Windows (inno) setup 2010-02-09 13:14:32 +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 Set some more line-ending style properties. 2010-03-24 19:28:20 +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 Win32: Add initial support for compiling against AqBanking v3. 2008-09-30 21:50:11 +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'.

Note: The mingw homepage is http://www.mingw.org. You can read more
      about mingw over there. The packages to download are all
      on sourceforge however, so the direct links are given here.

* Download MSYS from
  https://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11/MSYS-1.0.11.exe/download
  to $DOWNLOAD_DIR
  Note: there may be a more recent version available when you read this, use
        whatever verion that is available. BUT: be sure to use MSYS-xyz.exe
        (ie the MSYS installer) and not the *bin.tar.lzma. I got confused
        the first time I tried, because directory msys-1.0.12 existed on
        sourceforge, but it didn't have the windows installer. You should
        use the installer, not try to unpack the -bin.tar.lzma files. So
        choose whatever version that has got an installer.

* Install MSYS into $MSYS_DIR.

* Download minwPORT's wget from
  https://sourceforge.net/projects/mingw/files/mingwPORT/Current%20Releases/wget-1.9.1-mingwPORT.tar.bz2/download
  to $DOWNLOAD_DIR
  Note: the version number may have changed when you try this. Use whatever version
        that is available

* 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.cmd
   need to be adjusted for the installation location on the
   windows machine.

Good luck!