Error building gnucash with macports to a custom location

reubano reubano at
Sat Feb 25 15:53:04 EST 2012

MacOSX 10.7.2
MacPorts 2.0.3

My first macports installation (/opt/local) contains gtk2 +no_x11+quartz
which is incompatible with gnome (which gnucash requires). So I built a 2nd
macports install at /opt/x11. I was able to install all of the required
ports but get errors when trying to build gnucash. 

> cd /Users/reubano/Downloads/gnucash-2.4.10 
> export CPPFLAGS="-I/opt/x11/include"
> export LDFLAGS="-L/opt/x11/lib"
> export DYLD_FALLBACK_LIBRARY_PATH="/opt/x11/lib"
> ./configure -C --prefix=/opt/x11 --enable-python-bindings

Even with specifying /opt/x11, it seems like the build ignores it and looks
in /opt/local instead

> configure: loading cache config.cache
> checking for a BSD-compatible install... /opt/local/bin/ginstall -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p

> -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include/libart-2.0
> -I/opt/local/include/gconf/2 -I/opt/local/include/gnome-keyring-1
> -I/opt/local/include/libgnome-2.0 -I/opt/local/include/libbonoboui-2.0
> -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gtk-2.0
> -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/gnome-vfs-2.0
> -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/orbit-2.0
> -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include
> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
> -I/opt/local/include -I/opt/local/include/libbonobo-2.0
> -I/opt/local/include/bonobo-activation-2.0 -I/opt/local/include/libxml2
> -I/opt/local/include/pango-1.0 -I/opt/local/include/gail-1.0
> -I/opt/local/include/freetype2 -I/opt/local/include/atk-1.0
> -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo
> -I/opt/local/include/pixman-1 -I/opt/local/include/libpng14  
> checking GNOME_LIBS... -framework Cocoa -L/opt/local/lib -lgnomeui-2 -lSM
> -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt
> -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2 -lgtk-quartz-2.0
> -lgdk-quartz-2.0 -latk-1.0 -lpangocairo-1.0 -lgio-2.0 -lgdk_pixbuf-2.0
> -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lfontconfig -lcairo -lgconf-2
> -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl  
> checking for untested GNOME versions (libgnome >= 2.19.0)... yes
> checking for gdk-pixbuf-2.0... yes
> -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng14
> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
> -I/opt/local/include  
> checking GDK_PIXBUF_LIBS... -L/opt/local/lib -lgdk_pixbuf-2.0
> -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl  
> checking for libglade-2.0 >= 2.4... yes
> checking GLADE_CFLAGS... -D_REENTRANT -I/opt/local/include/libglade-2.0
> -I/opt/local/include/gtk-2.0 -I/opt/local/include/libxml2
> -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0
> -I/opt/local/include/cairo -I/opt/local/include/gdk-pixbuf-2.0
> -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0
> -I/opt/local/lib/glib-2.0/include -I/opt/local/include
> -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
> -I/opt/local/include/libpng14  
> checking GLADE_LIBS... -framework Cocoa -L/opt/local/lib -lglade-2.0
> -lgtk-quartz-2.0 -lxml2 -lgdk-quartz-2.0 -latk-1.0 -lpangocairo-1.0
> -lgio-2.0 -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype
> -lfontconfig -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
> -lintl  
> checking for libgoffice-0.8 >= 0.7.0... no
> checking for libgoffice-0.6 >= 0.6.0... no
> checking for libgoffice-0.5 >= 0.5.1... no
> configure: error: Cannot find libgoffice.>= 0.5.1

This happened with guile the first time and I fixed it by installing guile
and slib-guile into /opt/local. Any idea how to fix this?

View this message in context:
Sent from the GnuCash - Dev mailing list archive at

More information about the gnucash-devel mailing list