On Aug 12, 2009, at 15:48, Andy Gimblett wrote:
> Hi there,
> I yesterday installed gtk2hs under OS X (details below), and have been
> trying some simple examples. If I build executables (using ghc --
> make), everything works fine; however, if I load them into ghci and
> call main from there, I get a white rectangle, and have to kill the
> ghc process externally. Screenshot:
> If I run the same example under Linux (Xubuntu), all is well under
> ghci - it works fine.
> (This is one of the packing examples from the tutorial - under Linux
> it looks like this:
> Obviously there are system/installation differences between the OS X
> and Linux versions - but really the point is that OS X isn't working
> as I'd hope. Mainly I wondered if this problem is known already...
> (and a fix?)
I don't know how far the native Gtk+ port on Mac OS has progressed
but there are certainly not many people using it with Gtk2Hs. Since I
have never tried myself, I cannot comment on why it hangs. You could
try to run ghci from within gdb and see where it hangs (I never tried
> Any ideas?
> This was all quite satisfactory except that I don't get opengl; I can
> probably live without that for now - unless it's causing this
> problem! I want to avoid macports if at all possible. :-)
OpenGL seems to have a lot of problems lately (as in: with the latest
Gtk2Hs and latest Gtk+ versions). I don't know who the culprit is.
Sorry to be of so little help,