[Haskell-cafe] Snow Leopard, gtk2hs

Arne Dehli Halvorsen arne.d.h at gmail.com
Sun Oct 11 07:12:25 EDT 2009


On Sun, Oct 11, 2009 at 3:29 AM, Judah Jacobson <judah.jacobson at gmail.com>wrote:

> On Tue, Oct 6, 2009 at 11:41 AM, Arne Dehli Halvorsen
> <arne.d.h at gmail.com> wrote:
> > Does anyone have a recipe for getting ghc + gtk2hs + gtk working on
> MacOSX
> > Snow Leopard?
> > Best regards,
> > Arne D Halvorsen
>
> I was able to get gtk2hs working with ghc-6.10.3 (after patching the
> /usr/bin scripts with -m32) by following the steps from
>
> http://www.haskell.org/haskellwiki/Gtk2Hs#Using_the_GTK.2B_OS_X_Framework
>
> with one change:  call configure for gtk2hs as
>
> ./configure --disable-split-objs --disable-gio
>

Thanks, that seems to have done the trick under ghc 6.10.4 - almost.

Current output:
adhmac:demo arne$ cd buttonbox
adhmac:buttonbox arne$ make
ghc --make ButtonBox.hs -o buttonbox
[1 of 1] Compiling Main             ( ButtonBox.hs, ButtonBox.o )
Linking buttonbox ...
ld: warning: duplicate dylib /opt/local/lib/libiconv.2.dylib
ld: warning: duplicate dylib /opt/local/lib/libz.1.dylib
adhmac:buttonbox arne$ ls
ButtonBox.hi ButtonBox.hs ButtonBox.o Makefile buttonbox
adhmac:buttonbox arne$ ./buttonbox

(buttonbox:42418): Pango-WARNING **: failed to create cairo scaled font,
expect ugly output. the offending font is 'Lucida Grande 12'

The buttons have boxes instead of letters, due to the font problem. So
close...

Arne D Halvorsen


>
> Hope that helps,
> -Judah
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091011/4817a8b1/attachment.html


More information about the Haskell-Cafe mailing list