[Gtk-sharp-list] GTK# samples under MacOS X
Erik Dasque
edasque@ximian.com
Wed, 14 Jul 2004 12:13:27 -0400
Please consult http://www.mono-project.com for GTK# setup info on MacOS
X
Erik
On Jul 14, 2004, at 2:11 AM, Matthew Graham wrote:
>
> Hi,
>
> I am trying to get the GTK# 1.0 HelloWorld.cs sample working.
>
> My system is Mac OS 10.3.4, Apple X11, Mono 1.0, GTK# 1.0 built against
> Fink gtk+2 (with Apple X11) and located in /usr/local/lib.
>
> To compile gtk-sharp-1.0/sample/HelloWorld.cs, I need to do:
> setenv MONO_PATH /usr/local/lib/mono
> mcs -r:gtk-sharp -r:gdk:sharp HelloWorld.cs
>
> I try mono HelloWorld.exe and get:
>
> Unhandled Exception: System.DllNotFoundException:
> libgtk-win32-2.0-0.dll
> in <0x000dc> (wrapper managed-to-native) Gtk.Application:gtk_init
> (int&,intptr&)
> in <0x0004c> Gtk.Application:Init ()
> in <0x00020> GtkSamples.HelloWorld:Main (string[])
>
> If I then setenv DYLD_LIBRARY_PATH to /sw/lib (where Fink put
> libgtk-X11-2.0-0.dll), I get:
> mono HelloWorld.exe
> dyld: mono version mismatch for library: /sw/lib/libgthread-2.0.0.dylib
> (compatibility version of user: 401.0.0 greater than library's version:
> 201.0.0)
> Trace/BPT trap
>
> I then try setenv DYLD_LIBRARY_PATH to
> /Library/Frameworks/Mono.framework/Libraries:/sw/lib as the former is
> where the Mono version of libgthread lives. This gives:
> mono HelloWorld.exe
> Unhandled Exception: System.DllNotFoundException:
> libgtk-win32-2.0-0.dll
> in <0x000dc> (wrapper managed-to-native) Gtk.Application:gtk_init
> (int&,intptr&)
> in <0x0004c> Gtk.Application:Init ()
> in <0x00020> GtkSamples.HelloWorld:Main (string[])
>
> So we go in circles.
>
> What should the correct values of the environment variables be to get
> this
> to work?
>
> Cheers,
>
> Dr Matthew Graham
> Center for Advanced Computing Research
> Caltech
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list