GnuCash-1.4.7 fails to compile on FreeBSD 4.1.1-RELEASE

Dave Peticolas dave@krondo.com
Tue, 10 Oct 2000 18:14:35 -0700


Steve Davidson writes:
> Dave Peticolas wrote:
> 
> > Steve Davidson writes:
> > > ./configure      ...everything works
> > > make
> > > [...]
> > > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -Wall -I/usr/local/includ
> e -c
> > > DateUtils.c -o DateUtils.o >/dev/null 2>&1
> > > mv -f .libs/DateUtils.lo DateUtils.lo
> > > /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
> -I..
> > > -g -O2 -Wall  -I/usr/local/include -c F
> > > ileIO.c
> > > rm -f .libs/FileIO.lo
> > > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -Wall -I/usr/local/includ
> e -c
> > > FileIO.c  -fPIC -DPIC -o .libs/FileIO.lo
> > > FileIO.c:89: glib.h: No such file or directory
> > > *** Error code 1
> >
> > Is glib.h installed on your system and, if so, where?
> >
> > dave
> 
> Yes.
> /usr/local/include/glib12/glib.h

Oh, yes, I remember this now. On FreeBSD, glib is installed
a bit differently. I think you can fix this using

./configure --with-glib-config=/usr/local/bin/glib12-config

You can also check the current version of gnucash in the ports
tree to see how it's done there.

dave