fltk definitely has some good points, but I&#39;ve always found it hideously ugly.  Of course the default gtk on osx is ugly too, but some of the available themes are nice.<br><br>However, getting gtk with OpenGL on osx was fairly easy.  Everything worked out of the box except gtkglext (Haskell package).  I&#39;ve submitted some patches for that which hopefully will be applied to the repo soon.<br>
<br>This is what I used:<br><br>git<br>darcs<br>ghc-7.0.3 (self-compiled)<br>cabal-install<br>macports gtk2 +no_x11 +quartz<br>macports gtkglext +no_x11 +quartz<br>gtk2hs from source<br>gtkglext (Haskell) from source<br><br>
<br>I use a self-compiled ghc, but this should work with any ghc.  Mixing ghc and macports can cause problems with libiconv, but the solutions are pretty well-known.  Since I compile ghc, I configure it to use macports&#39;s libiconv so there aren&#39;t any conflicts.<br>
<br><br>&gt; sudo port install gtkglext +no_x11 +quartz<br>(wait a while...)<br>&gt; darcs get --lazy <a href="http://code.haskell.org/gtk2hs">http://code.haskell.org/gtk2hs</a><br>&gt; cd gtk<br>&gt; cabal install gtk2hs-buildtools<br>
&gt; chmod +x bootstrap.sh<br>&gt; ./bootstrap.sh &quot;-fhave-quartz-gtk&quot;<br>(wait a while...)<br>&gt; cd ..<br>&gt; darcs get --lazy <a href="http://code.haskell.org/gtkglext">http://code.haskell.org/gtkglext</a><br>
&gt; cd gtkglext<br>&gt; darcs apply gtkglext.dpatch<br>&gt; cabal install<br><br><br>Until the source tree gets patched, you&#39;ll have to manually apply the patch bundle.<br><br>If you want to avoid macports, it should be possible to use gtk-osx and gtkglext from source instead.  However, I&#39;ve found gtk-osx to be unstable and quite difficult to build in the past, so I&#39;d strongly recommend macports, at least for now.  The source install of gtkglext works just fine and can be used with macports gtk2 (I tested this).  Since this path already uses macports there&#39;s not much benefit though.<br>
<br>Cheers,<br>John L<br><br><div class="gmail_quote">On Wed, May 25, 2011 at 9:07 PM, Evan Laforge <span dir="ltr">&lt;<a href="mailto:qdunkan@gmail.com">qdunkan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
fltk supports OpenGL on windows, X11, and OS X, though I&#39;ve never used<br>
it.  The thing it doesn&#39;t have is a haskell binding, but as I<br>
mentioned I just bind whatever I need when I need it and since I don&#39;t<br>
need much it&#39;s easy.  Dunno if this applies in your case though.<br>
<br>
Maybe it&#39;s my NIH, but I like to start with something too simple and<br>
add what I need rather than start with something that has more than I<br>
need and try to get it working.<br>
<div><div></div><div class="h5"><br>
On Wed, May 25, 2011 at 11:58 AM, Conal Elliott &lt;<a href="mailto:conal@conal.net">conal@conal.net</a>&gt; wrote:<br>
&gt; Thanks, John. Encouraging bit of news. Please do let us know what you learn<br>
&gt; when you try.   - Conal<br>
&gt;<br>
&gt; On Tue, May 24, 2011 at 1:28 AM, John Lato &lt;<a href="mailto:jwlato@gmail.com">jwlato@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; You can use gtkglext to get OpenGL support.  With the official release of<br>
&gt;&gt; gtkglext-1.2.0 there&#39;s a bit of hacking involved (that was probably me<br>
&gt;&gt; you&#39;re referring to), but it looks like the repo head has native Quartz.<br>
&gt;&gt; With any luck, you just need to build gtkglext from the repo, then the<br>
&gt;&gt; gtkglext package.<br>
&gt;&gt;<br>
&gt;&gt; I might have some time to try this later today; I&#39;ll report back if I get<br>
&gt;&gt; results.<br>
&gt;&gt;<br>
&gt;&gt; John Lato<br>
&gt;&gt;<br>
&gt;&gt; On Tue, May 24, 2011 at 6:01 AM, Conal Elliott &lt;<a href="mailto:conal@conal.net">conal@conal.net</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Last I tried, there wasn&#39;t native support for OpenGL with gtk, and I need<br>
&gt;&gt;&gt; OpenGL. Then more recently, I heard of some progress in that area, but<br>
&gt;&gt;&gt; requiring lots of hacking to get it all compiling. Any recent news?  - Conal<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Mon, May 23, 2011 at 2:33 AM, John Lato &lt;<a href="mailto:jwlato@gmail.com">jwlato@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Message: 17<br>
&gt;&gt;&gt;&gt;&gt; Date: Fri, 20 May 2011 15:59:51 -0700<br>
&gt;&gt;&gt;&gt;&gt; From: Evan Laforge &lt;<a href="mailto:qdunkan@gmail.com">qdunkan@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt; Subject: Re: [Haskell-cafe] Status of Haskell + Mac + GUIs &amp; graphics<br>
&gt;&gt;&gt;&gt;&gt; To: Erik Hesselink &lt;<a href="mailto:hesselink@gmail.com">hesselink@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt; Cc: <a href="mailto:haskell-cafe@haskell.org">haskell-cafe@haskell.org</a><br>
&gt;&gt;&gt;&gt;&gt; Message-ID: &lt;BANLkTi=<a href="mailto:74mM6ORtU2e192jtoOT9g49fzTQ@mail.gmail.com">74mM6ORtU2e192jtoOT9g49fzTQ@mail.gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt; Content-Type: text/plain; charset=ISO-8859-1<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; &gt; Note that it is supposed to be possible to build gtk2hs with gtk+osx,<br>
&gt;&gt;&gt;&gt;&gt; &gt; which will not use X11 but use the native OS X GUI. I&#39;ve not been<br>
&gt;&gt;&gt;&gt;&gt; &gt; able<br>
&gt;&gt;&gt;&gt;&gt; &gt; to get this to work, but it&#39;s been a while since I tried. The Haskell<br>
&gt;&gt;&gt;&gt;&gt; &gt; wiki mentions it doesn&#39;t support Glade, but does support Cairo. If<br>
&gt;&gt;&gt;&gt;&gt; &gt; this were to work, gtk2hs would be a serious option as well.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I&#39;ve tried this 3 or 4 times, and failed every time.  It&#39;s crazy<br>
&gt;&gt;&gt;&gt;&gt; complicated.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I used to use this combination regularly.  IME the difficulties are<br>
&gt;&gt;&gt;&gt; primarily with getting a working gtk+osx build.  Once that was accomplished,<br>
&gt;&gt;&gt;&gt; gtk2hs was a straightforward install, provided you build from the src repo<br>
&gt;&gt;&gt;&gt; with the -quartz flag.<br>
&gt;&gt;&gt;&gt; Recently I&#39;ve switched to using macports gtk2 with the quartz, no-x11<br>
&gt;&gt;&gt;&gt; variant, which also uses native cocoa.  This is much more reliable than<br>
&gt;&gt;&gt;&gt; gtk+osx.  I don&#39;t know if it supports Glade though.<br>
&gt;&gt;&gt;&gt; My biggest problem with wx is that there&#39;s no support for building<br>
&gt;&gt;&gt;&gt; 64-bit wx applications on OS X.  If that were fixed I might prefer it.<br>
&gt;&gt;&gt;&gt; John Lato<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; Haskell-Cafe mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>