Re: Lablgtk2 and gtk-osx

Jacques Garrigue <[email protected]> Fri, 25 Sep 2009 01:05:35 +0100 (BST)
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
From: Aaron Bohannon <[email protected]>

> Well, this is nice to know, but unfortunately the character display is
> too buggy to make lablgtk2 usable with gtk-quartz on 10.6.  (See
> attached images.)  I gather that this has something to do with pango,
> and we have to wait until they update their code.

I'm actually using unison with this kind of display, but I agree this
is not nice...
To make things clear, the problem is not Snow Leopard itself, but the
fact pango-quartz relied on a deprecated cairo-atsui API. ATSUI is not
available as a 64bit library, so the pango people had to wrap a
workaround in a hurry, and this is pretty bad. Looks like there are
also other problems in the devel branch of pango-quartz (wrong colors
on buttons...), so this is ok if you just want to check that programs
work, but for the real thing we will have to wait until they redo the
font work properly in the release branch.

The alternative is to compile everything by hand in 32bit mode. This
should work, but apparently is a bit painful. In particular ocaml
requires lots of flags. According to Xavier Clerc, you need:

  ./configure -cc "gcc -m32" -as "as -arch i386" -aspp "gcc -m32 -c"

Jacques