Difference between revisions of "Building on Windows"

From GnuCash
Jump to: navigation, search
(Strip out all of the old history and provide succinct directions to read and follow README.)
m (devrc.sh is picky about which directory it gets called from)
Line 5: Line 5:
 
to build the program.
 
to build the program.
  
You'll find a shell file, <code>devrc.sh</code> in <code>gnucash-on-windows.git</code>. '''Sourcing''', not running, this file  
+
You'll find a shell file, <code>devrc.sh</code> in <code>gnucash-on-windows.git</code>. '''Sourcing''', not running, this file
   . gnucash-on-windows.git/devrc.sh
+
   cd gnucash-on-windows.git
 +
  . devrc.sh
 
will set the necessary environment variables so that you can re-run the build script as usual in <code>gnucash/build</code> and run GnuCash from <code>gnucash/inst/bin</code>.
 
will set the necessary environment variables so that you can re-run the build script as usual in <code>gnucash/build</code> and run GnuCash from <code>gnucash/inst/bin</code>.

Revision as of 20:53, 18 April 2017

Development on Microsoft Windows isn't really encouraged. The build environment isn't really conducive to development and many of the unit tests don't work. However, if you must...

First read the README for the Windows Build Environment. You'll need to download and run bootstrap_win_dev.vbs, then adjust gnucash-on-windows.git/custom.sh to build what you want the way you want, and run

 gnucash-on-windows.sh/install.sh

to build the program.

You'll find a shell file, devrc.sh in gnucash-on-windows.git. Sourcing, not running, this file

 cd gnucash-on-windows.git
 . devrc.sh

will set the necessary environment variables so that you can re-run the build script as usual in gnucash/build and run GnuCash from gnucash/inst/bin.