Building GnuCash without X11

Charles Day cedayiv at gmail.com
Fri Nov 7 13:12:04 PST 2008


On Tue, Nov 4, 2008 at 10:34 AM, Olaf Foellinger <olaf at foellinger.de> wrote:

> Hi,
>
> * Charles Day <cedayiv at gmail.com> [04.11.08 09:20]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
>
> :). Besides, I'm on 10.4
>
> >    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.
>
> Very good, that's been my intention, too.
>
> >    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
>
> Two prerequisites are missing:
>
> - delete the line "depends_run port:evince" in the gnucash portfile
>  (that deletes many complicated gnome dependencies, too)
>

Thanks, that was the problem. I saw that the line was in the portfile but I
hadn't commented it out.

- in aqbanking portfile replace the line
>        --with-frontends="cbanking g2banking qbanking"
>  with
>        --with-frontends="g2banking"
> - for the installation of libgtkhtml3 i had to apply the patch
>  https://trac.macports.org/ticket/16989


This part worked OK for me without the patch, maybe because of 10.5.5.


> <https://trac.macports.org/ticket/16989>
> - during the installatin of slib-guile16 sometimes I had to call
>        $ ${prefix}/share/guile/site
>  manually.
>

I ran into that too, thanks.


>
> >    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."
>
> Not necessary, hbci is working and needed here in Germany.
>

Agreed, I will try building with aqbanking & gwen but just wanted to test
with less dependencies initially.


>
> >    --->  Configuring gnome-desktop
>
> That has not been built here so I assume it's a evince dependency.
>

Yes, it was only there for evince, so commenting out evince fixed that.


>
> If you have any further questions I'm glad to answer. Gnucash does run
> here from the command line.
>

I do have a problem once the install is finished. When I start gnucash it
complains about being unable to load settings. It seems that gconf can't
start:

charless-macbook-pro:~ cedayiv$ gconftool-2 --spawn
Failed to spawn the configuration server (gconfd): Failed to contact
configuration server; some possible causes are that you need to enable
TCP/IP networking for ORBit, or you have stale NFS locks due to a system
crash. See http://www.gnome.org/projects/gconf/ for information. (Details -
 1: Failed to get connection to session: dbus-launch failed to autolaunch
D-Bus session: Autolaunch requested, but X11 support not compiled in.
Cannot continue.

Any ideas?


>
> Gruß Olaf
>

Cheers,
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20081107/115b3afc/attachment.html>


More information about the macports-users mailing list