gnucash/packaging/win32
2014-04-01 12:16:54 -07:00
..
aqbanking-4.2.4-r2132.patch Win32 build: rename patch files to consistently end in .patch 2013-01-19 18:27:51 +00:00
bootstrap_win_dev.vbs Win32 build: add attribution for a code snippet in bootstrap 2013-01-22 10:14:35 +00:00
build_package.sh Rename _git files to plain, fix links. 2014-04-01 12:16:54 -07:00
build_tags.sh Rename _git files to plain, fix links. 2014-04-01 12:16:54 -07:00
ChineseSimp-12-5.1.11.isl Bug #617797: Set eol-style to CRLF for win32 files. 2010-06-03 19:58:28 +00:00
ChineseTrad-2-5.1.11.isl Add Traditional Chinese translation for win32 package system. 2011-03-01 19:44:05 +00:00
create_cross_mingw.sh Improve the cross-compilation process. 2010-05-04 23:40:29 +00:00
crossbuild_webkit.sh Remove remaining gconf code bits 2013-10-07 14:28:44 +00:00
custom.sh.sample Win32 build: Remove support for aqbanking < 5.x because 5.x has been released since 2010 by now. 2014-01-12 19:48:49 +00:00
daily_build.bat Rename _git files to plain, fix links. 2014-04-01 12:16:54 -07:00
daily_build.sh Rename _git files to plain, fix links. 2014-04-01 12:16:54 -07:00
defaults.sh Win32: Update gwenhyhwfar/aqbanking again, but slightly more cautious (gwen-4.11.0 does not compile on win/mingw right now) 2014-03-31 22:44:02 +02:00
dist-impl.sh Win32 build: Remove support for aqbanking < 5.x because 5.x has been released since 2010 by now. 2014-01-12 19:48:49 +00:00
dist.sh Win32 build: remove libgnome related parts from the build scripts 2012-09-10 19:22:12 +00:00
exetype.pl Use UNIX line delimiters in packaging/win32/exetype.pl. 2007-05-23 17:21:20 +00:00
functions.sh Improve message printed on screen 2011-03-23 17:28:24 +00:00
getperl.vbs Fix up and update strawberry perl URIs 2013-12-20 22:53:03 +00:00
gnc-path-check Bug #670355 - Automated install of Perl with Finance-Quote 2012-05-06 21:19:24 +00:00
gnucash.iss.in Win32 build: Remove support for aqbanking < 5.x because 5.x has been released since 2010 by now. 2014-01-12 19:48:49 +00:00
Greek-4-5.1.11.isl Bug #617797: Set eol-style to CRLF for win32 files. 2010-06-03 19:58:28 +00:00
guile-1.8.8.patch Fix windows build: 2011-03-23 17:48:57 +00:00
icu-crossmingw.patch Bug #617435 - webkitgtk+ cross build script, created by Yasuaki Taniguchi 2010-05-04 09:45:50 +00:00
install-fq-mods.cmd Fix up and update strawberry perl URIs 2013-12-20 22:53:03 +00:00
install-impl.sh Ensure that the autoconf and automake checked are the ones we install 2014-03-28 22:53:42 -07:00
install.sh Minor changes to indicate svn is not the only/primary vcs used. 2012-10-31 21:38:49 +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
Latvian-1-5.1.11.isl Updated Latvian translation for the Windows installer, patch by Valdis Vītoliņš 2010-09-03 10:10:46 +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
libxslt-1.1.22.Makefile.in.patch Update win32 components: 2011-04-12 23:52:51 +00:00
make_install.sh Set some more line-ending style properties. 2010-03-24 19:28:20 +00:00
Makefile.am Win32 build: rename patch files to consistently end in .patch 2013-01-19 18:27:51 +00:00
opensp-1.5.2.patch Win32 build: rename patch files to consistently end in .patch 2013-01-19 18:27:51 +00:00
pi.sh Add pi.sh, a postinstall script of mingw. 2006-09-01 21:33:01 +00:00
README Win32 build: Remove support for aqbanking < 5.x because 5.x has been released since 2010 by now. 2014-01-12 19:48:49 +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 Minor changes to indicate svn is not the only/primary vcs used. 2012-10-31 21:38:49 +00:00
webkit-1.2.7-configure.patch Update win32 components: 2011-04-12 23:52:51 +00:00
webkit-1.2.7-datadir.patch Update win32 components: 2011-04-12 23:52:51 +00:00
webkit-1.2.7-gccpath.patch Update win32 components: 2011-04-12 23:52:51 +00:00
webkit-1.2.7-makefile.patch Update win32 components: 2011-04-12 23:52:51 +00:00
webkit-1.2.7-mingw32.patch Update win32 components: 2011-04-12 23:52:51 +00:00
webkit-1.2.7-nosvg.patch Update win32 components: 2011-04-12 23:52:51 +00:00
webkit-1.2.7-time.patch Win32: Tweak cross compiling script for webkit so that is seems to almost compile. 2011-03-13 00:02:27 +00:00
webkit-1.2.7-vasprintf.patch Win32: Tweak cross compiling script for webkit so that is seems to almost compile. 2011-03-13 00:02:27 +00:00
webkitenumtypes.cpp Update win32 components: 2011-04-12 23:52:51 +00:00
webkitenumtypes.h Update win32 components: 2011-04-12 23:52:51 +00:00
weekly_build.sh Rename _git files to plain, fix links. 2014-04-01 12:16:54 -07:00

These scripts try to download and install a Windows/mingw32 build
environment for GnuCash on Windows.

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.

These scripts support two ways to build a Windows/mingw32 version of GnuCash:
- directly on a Windows PC
- via cross-compilation on Linux

1. Build GnuCash directly on a Windows PC
-----------------------------------------

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: when installing software as asked below, avoid using paths
      with spaces. Some parts of the build system don't cope well
      with spaces. So don't install in c:\Program Files. The build
      system by default assumes c:\soft as base directory
      called $GLOBAL_DIR from now on).
      
* Download and install git for windows from http://git-scm.com/downloads.
  This will install some git related items in the Windows Explorer
  context menus (you can access them via right-click in any directory)
  
* Choose a spot where you want to store a copy of the GnuCash repository.
  The default path is $GLOBAL_DIR\gnucash\repos.
  Reminder: avoid pathnames with spaces in it.

* Create all directories in the path except the last one. For the example,
  make sure $GLOBAL_DIR\gnucash exists
  
* Open a Windows explorer and go to $GLOBAL_DIR\gnucash (or your chosen location)

* Right-click. In the popup select git bash. This will open a command prompt.

* Enter: git clone git://github.com/Gnucash/gnucash.git repos
  The last part should be what you chose the call the directory to store the
  copy of the GnuCash repository.

* 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 version 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 mingwPORT'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

* Via Windows Explorer go to <your-repos-dir>\packaging\win32

* Look at defaults.sh and create a file named custom.sh to specify adapted directory
  variables.
  
  - If you used a path to your GnuCash repository other than the default
    $GLOBAL_DIR\gnucash\repos, you should at least specify REPOS_DIR in here.
  - Also if you want the build system to reuse git you have just installed,
    you can specify the path to git's installation location via GIT_DIR
  - If you want verbose output of any script step, add "set -x" to that file.

* (No Qt is needed. In earlier versions of libaqbanking, qt was needed
  for the aqbanking setup wizard, but in aqbanking-5.x this is no
  longer the case.)

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
  
  
  Note: if you didn't download and install Qt earlier, this command will fail
        regardless of whether you disabled AQ_BANKING_WITH_QT or not. This is
        a bug in the configuration script for the installer builder (issc).

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


2. Cross-compile GnuCash/win32 on a linux PC
--------------------------------------------

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. 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. Particularly for cross-compiling,
   set these variables:
   * cross_compile: should be set to yes
   * GLOBAL_DIR: the base directory for all other directory definitions,
     unless you explicitly override it for some directories.
   * MINGW_DIR: set this to your preferred prefix of the mingw32 gcc/binutils
     on your Linux installation.
     (It is strongly recommended to choose a prefix different
      from your normal compiler tool chain in order to distinguish
      your native vs. cross compiler more easily.) 

2. Then run the script create_cross_mingw.sh - it will
   download, compile, and install a mingw32 tool chain.

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

Good luck!