[Gtk-sharp-list] Compiling on Mac OS X
Jason Cone
jcone@sbcglobal.net
Mon, 22 Mar 2004 07:46:07 -0600
That was, indeed, the problem; thank you, Robert. I managed to get
GTK# compiled and installed, and with a bit of tweaking in the
etc/mono/config file (changing target libraries from .so to .dylib) and
setting the DYLD_LIBRARY_PATH environmental variable, got the gtk hello
world running on my Mac. Very cool. Thanks, again.
JWC
On Mar 21, 2004, at 8:26 PM, Robert Shade wrote:
> I've seen this if the JIT is used to run the complier instead of the
> interpreter. (JIT doesn't yet have full support for exceptions) Look
> at
> /usr/local/bin/mcs and make sure it is using mint instead of mono.
>
> rob
>
>> I've compiled and installed Mono 0.31 on my Mac (OS X 10.3.3) and now
>> I'm trying to compile GTK#. I checked out the source code from CVS,
>> used Fink to install some of dependencies (e.g. gtk+2 and gtk+2-dev),
>> found out I needed to make sure my mono.pc file was in
>> /sw/lib/pkgconfig, and successfully ran autogen.sh. However, when I
>> run make I'm getting an error (here's the tail of the output):
>>
>> Making all in gtk
>> Making all in .
>> /usr/local/bin/mcs --unsafe /out:gtk-sharp.dll /target:library
>> /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll
>> /r:../atk/atk-sharp.dll /r:../gdk/gdk-sharp.dll ./Application.cs
>> ./ITreeNode.cs ./NodeStore.cs ./ThreadNotify.cs ./TreeNodeAttribute.cs
>> ./TreeNode.cs ./TreeNodeValueAttribute.cs generated/*.cs
>>
>> Unhandled Exception: System.NullReferenceException: Object reference
>> not set to an instance of an object
>> make[3]: *** [gtk-sharp.dll] Error 1
>> make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>>
>> Unfortunately, that's not much information for me to go on, and I'm
>> not
>> sure what the problem is. Can anyone point me in the right direction?