Building GnuCash without X11

Joel Thibault (MacPorts) pgijnxn02 at sneakemail.com
Mon Nov 3 19:13:51 PST 2008


On 11/3/08, Charles Day cedayiv-at-gmail.com |MacPorts|
<mv4ak9sfu10t at sneakemail.com> wrote:
> Greetings,
>
> I am one of the GnuCash developers, so I read with some excitement Olaf
> Foellinger's report that he was able to build GnuCash without X11. If I can
> repeat his success and test it out, I hope that at some point we might be
> able to begin offering GnuCash for Mac in native form.
>
>
> However, I tried it myself without much luck. Perhaps someone could advise.
>
> I have a brand-new MacBook Pro now (10.5.5), on which I installed MacPorts.
> I started with the following:
> sudo port install dbus +no_x11
> sudo port install cairo +no_x11
> sudo port install pango +no_x11
> sudo port install gtk2 +no_x11
>
> These all worked fine except for a few python stumbles which succeeded on
> the next attempt. Once all that was finished, I tried:
> sudo port install gnucash +without_hbci
>
> The "+without_hbci" was just to remove a few dependencies, for a hopefully
> greater chance of success. However, this failed when it reached the
> desktop-gnome dependency, saying what I understand to mean "I'm trying to
> build desktop-gnome +x11 but I need gtk2 +x11 and you have gtk2 +no_x11
> instead."
>
> --->  Configuring gnome-desktop
> Error: Target org.macports.configure returned: +x11 variant selected, but
> gtk2+quartz is installed
>
> I wasn't sure what to do at this point, so I tried:
> sudo port clean gnome-desktop
> sudo port install gnome-desktop +no_x11
>
> However this failed too:
> /usr/bin/gcc-4.0 -dynamiclib  -o
> .libs/libgnome-desktop-2.7.2.4.dylib
> .libs/gnome-desktop-item.o .libs/gnome-ditem-edit.o .libs/gnome-hint.o
> .libs/gnome-bg.o .libs/display-name.o .libs/gnome-rr.o
> .libs/gnome-rr-config.o .libs/gnome-rr-labeler.o .libs/edid-parse.o
> -L/opt/local/lib -L/usr/X11/lib
> /usr/X11/lib/libX11.6.2.0.dylib
> /usr/X11/lib/libXau.6.0.0.dylib
> /usr/X11/lib/libXdmcp.6.0.0.dylib
> /usr/X11/lib/libXrandr.2.0.0.dylib
> /usr/X11/lib/libXext.6.4.0.dylib
> /usr/X11/lib/libXrender.1.3.0.dylib
> /opt/local/lib/libgnomeui-2.dylib
> /opt/local/lib/libtiff.dylib /opt/local/lib/libjasper.dylib
> /opt/local/lib/libjpeg.dylib
> /opt/local/lib/libORBitCosNaming-2.dylib
> /opt/local/lib/libssl.dylib /opt/local/lib/libcrypto.dylib
> /opt/local/lib/libz.dylib
> /opt/local/lib/libdbus-glib-1.dylib
> /usr/X11/lib/libSM.6.0.0.dylib
> /usr/X11/lib/libICE.6.3.0.dylib
> /opt/local/lib/libgnome-keyring.dylib
> /opt/local/lib/libbonoboui-2.dylib
> /opt/local/lib/libxml2.dylib -lpthread
> /opt/local/lib/libgnomecanvas-2.dylib
> /opt/local/lib/libgnome-2.dylib
> /opt/local/lib/libpopt.dylib
> /opt/local/lib/libgnomevfs-2.dylib
> /opt/local/lib/libesd.dylib
> /opt/local/lib/libbonobo-2.dylib
> /opt/local/lib/libaudiofile.dylib
> /opt/local/lib/libbonobo-activation.dylib
> /opt/local/lib/libgailutil.dylib
> /opt/local/lib/libart_lgpl_2.dylib
> /opt/local/lib/libgtk-quartz-2.0.dylib
> /opt/local/lib/libgdk-quartz-2.0.dylib
> /opt/local/lib/libatk-1.0.dylib
> /opt/local/lib/libgio-2.0.dylib
> /opt/local/lib/libgdk_pixbuf-2.0.dylib
> /opt/local/lib/libpangocairo-1.0.dylib
> /opt/local/lib/libcairo.dylib
> /opt/local/lib/libpangoft2-1.0.dylib
> /opt/local/lib/libpango-1.0.dylib
> /opt/local/lib/libpixman-1.dylib
> /opt/local/lib/libfontconfig.dylib
> /opt/local/lib/libexpat.dylib
> /opt/local/lib/libfreetype.dylib
> /opt/local/lib/libpng12.dylib -lz
> /opt/local/lib/libgconf-2.dylib
> /opt/local/lib/libORBit-2.dylib -lm
> /opt/local/lib/libdbus-1.dylib
> /opt/local/lib/libgmodule-2.0.dylib
> /opt/local/lib/libgthread-2.0.dylib
> /opt/local/lib/libgobject-2.0.dylib
> /opt/local/lib/libglib-2.0.dylib
> /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib  -Wl,-framework
> -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -Wl,-framework
> -Wl,CoreAudio -install_name
> /opt/local/lib/libgnome-desktop-2.7.dylib
> -compatibility_version 10 -current_version 10.4 -Wl,-single_module
> i686-apple-darwin9-gcc-4.0.1:
> /usr/X11/lib/libXrandr.2.0.0.dylib: No such file or
> directory
> make[3]: *** [libgnome-desktop-2.la] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Forgive me if the answer is obvious, but this is my first day using MacPorts
> and in fact I am new to Apple in general.
>
> Cheers,
> Charles
>

I see that it's complaining about Xrandr, and I have had problems
compiling gnome-desktop because it requires a specific version of
Xrandr which I don't have.  Since I have Tiger, I can't upgrade it
either!

https://trac.macports.org/ticket/16720
http://bugzilla.gnome.org/show_bug.cgi?id=554263

Olaf, did you need to do anything to get gnome-desktop to work?

I appreciate the work you're doing here.  I'd love to use a native
version of gnucash :)

Joel


-- 
Joel Thibault [AIM: Jole Tebo]
Software Engineer in Boston


More information about the macports-users mailing list