2005-11-06 07:59:07 -06:00
|
|
|
/** \page osxbuild Building GnuCash on OSX
|
|
|
|
|
2006-01-29 17:01:30 -06:00
|
|
|
\section dependency Automake dependency
|
|
|
|
|
|
|
|
automake1.4 is NOT compatible with gnucash on OSX. If fink replaces
|
|
|
|
a later automake during an update of other packages, you will need
|
|
|
|
to replace with a later version. Fink will then remove automake1.4
|
|
|
|
in favour of the later version. GnuCash has been tested on OSX with
|
|
|
|
automake1.9
|
|
|
|
|
|
|
|
\section building Build advice
|
|
|
|
|
|
|
|
'make uninstall' may not be sufficient - when rebuilding in the same
|
|
|
|
source tree, remove the installation directory with 'rm -rf'.
|
|
|
|
|
2005-11-06 07:59:07 -06:00
|
|
|
\section osxprepare Preparation
|
|
|
|
|
|
|
|
There are notable problems building gnucash with the default
|
|
|
|
auto tools installed in OSX and even installing the GNU versions
|
|
|
|
via fink may not be sufficient - OSX may still call the BSD version
|
|
|
|
in preference to the newly installed GNU version.
|
|
|
|
|
|
|
|
To avoid these problems, you are advised to change your PATH variable
|
|
|
|
in ~/.bashrc to put the Fink binaries ahead of the main OSX binaries
|
2005-11-20 12:53:20 -06:00
|
|
|
in your path or export a new PATH in the script that calls autogen.sh.
|
2005-11-06 07:59:07 -06:00
|
|
|
Instead of:
|
2005-11-06 08:23:03 -06:00
|
|
|
\verbatim
|
2005-11-06 07:59:07 -06:00
|
|
|
PATH=/usr/bin/:/sbin/:/usr/sbin/:/bin:/opt/local/bin:/sw/bin
|
2005-11-06 08:23:03 -06:00
|
|
|
/endverbatim
|
2005-11-06 07:59:07 -06:00
|
|
|
use:
|
2005-11-06 08:23:03 -06:00
|
|
|
/verbatim
|
2005-11-06 07:59:07 -06:00
|
|
|
PATH=/sw/bin:/usr/bin/:/sbin/:/usr/sbin/:/bin:/opt/local/bin
|
2005-11-06 08:23:03 -06:00
|
|
|
/endverbatim
|
2005-11-06 07:59:07 -06:00
|
|
|
|
2005-11-20 12:53:20 -06:00
|
|
|
Then, when calling ./autogen.sh and ./configure, it is necessary
|
2005-11-06 07:59:07 -06:00
|
|
|
to direct OSX to the correct Guile installation environment using:
|
|
|
|
|
2005-11-06 08:23:03 -06:00
|
|
|
\verbatim
|
2005-11-06 07:59:07 -06:00
|
|
|
#!/bin/bash
|
|
|
|
guile16-build env LIBRARY_PATH=/sw/lib CPATH=/sw/include \
|
|
|
|
./autogen.sh
|
|
|
|
guile16-build env LIBRARY_PATH=/sw/lib CPATH=/sw/include \
|
|
|
|
./configure <your configure options>
|
2005-11-06 08:23:03 -06:00
|
|
|
guile16-build env LIBRARY_PATH=/sw/lib CPATH=/sw/include \
|
|
|
|
make
|
|
|
|
\endverbatim
|
|
|
|
|
|
|
|
If (when) you do a 'make distclean', this whole process will have to
|
|
|
|
be done again.
|
2005-11-06 07:59:07 -06:00
|
|
|
|
2005-11-20 12:53:20 -06:00
|
|
|
If you have to change automake or autoconf versions, make sure you
|
|
|
|
remove the autom4te.cache/ directory before running autogen.sh again.
|
|
|
|
|
2005-11-06 07:59:07 -06:00
|
|
|
\section osxtools OSX tools
|
|
|
|
|
|
|
|
GnuCash recommends <b>only>/b> the most recent versions of each of the
|
|
|
|
GNU auto tools available via Fink. As of November 2005, these were:
|
|
|
|
|
|
|
|
\verbatim
|
|
|
|
10.3 10.4
|
|
|
|
autoconf2.5 2.59-6 2.59-6
|
|
|
|
automake1.9 1.9.5-1 1.9.6-1
|
|
|
|
libtool14 1.5.18-1 1.5.20-1
|
|
|
|
\endverbatim
|
|
|
|
|
|
|
|
Currently, these versions are only available in the unstable (CVS) version
|
|
|
|
of Fink.
|
|
|
|
|
|
|
|
http://pdb.finkproject.org/index.php
|
|
|
|
|
|
|
|
*/
|
|
|
|
|