On Sun, Oct 11, 2009 at 3:29 AM, Judah Jacobson <span dir="ltr">&lt;<a href="mailto:judah.jacobson@gmail.com">judah.jacobson@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Oct 6, 2009 at 11:41 AM, Arne Dehli Halvorsen<br>
&lt;<a href="mailto:arne.d.h@gmail.com">arne.d.h@gmail.com</a>&gt; wrote:<br></div><div class="im">
&gt; Does anyone have a recipe for getting ghc + gtk2hs + gtk working on MacOSX<br>
&gt; Snow Leopard?<br>
&gt; Best regards,<br>
&gt; Arne D Halvorsen<br>
<br>
</div>I was able to get gtk2hs working with ghc-6.10.3 (after patching the<br>
/usr/bin scripts with -m32) by following the steps from<br>
<br>
<a href="http://www.haskell.org/haskellwiki/Gtk2Hs#Using_the_GTK.2B_OS_X_Framework" target="_blank">http://www.haskell.org/haskellwiki/Gtk2Hs#Using_the_GTK.2B_OS_X_Framework</a><br>
<br>
with one change:  call configure for gtk2hs as<br>
<br>
./configure --disable-split-objs --disable-gio<br></blockquote><div><br></div><div>Thanks, that seems to have done the trick under ghc 6.10.4 - almost.</div><div><br></div><div>Current output:</div><div>adhmac:demo arne$ cd buttonbox</div>
<div>adhmac:buttonbox arne$ make</div><div>ghc --make ButtonBox.hs -o buttonbox </div><div>[1 of 1] Compiling Main             ( ButtonBox.hs, ButtonBox.o )</div><div>Linking buttonbox ...</div><div>ld: warning: duplicate dylib /opt/local/lib/libiconv.2.dylib</div>
<div>ld: warning: duplicate dylib /opt/local/lib/libz.1.dylib</div><div>adhmac:buttonbox arne$ ls</div><div>ButtonBox.hi<span class="Apple-tab-span" style="white-space:pre">        </span>ButtonBox.hs<span class="Apple-tab-span" style="white-space:pre">        </span>ButtonBox.o<span class="Apple-tab-span" style="white-space:pre">        </span>Makefile<span class="Apple-tab-span" style="white-space:pre">        </span>buttonbox</div>
<div>adhmac:buttonbox arne$ ./buttonbox</div><div><br></div><div>(buttonbox:42418): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is &#39;Lucida Grande 12&#39;</div><div><br>
</div><div>The buttons have boxes instead of letters, due to the font problem. So close...</div><div><br></div><div>Arne D Halvorsen</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Hope that helps,<br>
<font color="#888888">-Judah<br>
</font></blockquote></div><br>