[Haskell-cafe] Snow Leopard, gtk2hs
Arne Dehli Halvorsen
arne.d.h at gmail.com
Tue Oct 6 14:41:15 EDT 2009
This may be a little off-topic, but if someone could help me, I'd be
grateful.I am trying to get to a working gtk2hs environment in MacOSX Snow
I have a Macbook Pro 2.1 with Snow Leopard.
While I had Leopard, I had the Haskell Platform installed, and it worked
I also had the MacPorts edition of gtk, and compiled gtk2hs by hand.
After I got Snow Leopard, I installed the Haskell Platform. I have made the
necessary changes to make it compile (flags to ghc), and it compiles normal
I installed the standalone version of the GTK+ platform, and then tried to
compile gtk2hs from /gtk2hs .
./configure works, but make results in this:
adhmac:gtk2hs arne$ make
rm -rf gtk/Graphics/UI/Gtk/Types.o gtk/Graphics/UI/Gtk/Types_split/; mkdir
/usr/bin/ghc +RTS -RTS -split-objs -c gtk/Graphics/UI/Gtk/Types.hs -o
gtk/Graphics/UI/Gtk/Types.o -O -XForeignFunctionInterface -fglasgow-exts
-igtk -package-conf package.conf.inplace -hide-all-packages -ignore-package
gtk -package base-188.8.131.52 -package mtl-184.108.40.206 -package containers-0.2.0.1
-package array-0.2.0.0 -package glib-0.10.1 -package cairo-0.10.1
-package-name gtk-0.10.1 '-#include<gtk/hsgtk.h>'
invalid character '_' in mnemonic
FATAL:Symbol L_gtk_misc_get_type$stub already defined.
make: *** [gtk/Graphics/UI/Gtk/Types.o] Error 1
make: *** [all] Error 2
I also have gtk installed via macports recently, but I am not sure whether
this makes a difference.
I don't think there is any point currently in trying to go MacPorts all the
way, and install ghc+gtk2hs via MacPorts.
Does anyone have a recipe for getting ghc + gtk2hs + gtk working on MacOSX
Arne D Halvorsen
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe