[Mono-list] gtk-sharp on macos

Javier Diaz javierdiazm@yahoo.com.mx
Tue, 07 Dec 2004 15:05:01 -0600


Hello guys

I've just compiled and installed gtk-sharp-1.0.4 on my macos system, I 
also have Mono 1.0.4

$ pkg-config --libs gtk-sharp
-r:/Library/Frameworks/Mono.framework/Versions/1.0.4/lib/mono/gtk-sharp/glib-sharp.dll 
-r:/Library/Frameworks/Mono.framework/Versions/1.0.4/lib/mono/gtk-sharp/pango-sharp.dll 
-r:/Library/Frameworks/Mono.framework/Versions/1.0.4/lib/mono/gtk-sharp/atk-sharp.dll 
-r:/Library/Frameworks/Mono.framework/Versions/1.0.4/lib/mono/gtk-sharp/gdk-sharp.dll 
-r:/Library/Frameworks/Mono.framework/Versions/1.0.4/lib/mono/gtk-sharp/gtk-sharp.dll 


the programs compile fine, but mono, can't ecxecute them....

$ ./make.sh
Checking for package gtk-sharp...yes
Checking for package glade-sharp...yes
mkdir -p ./build/bin
mcs  -target:exe -out:"CalcGladeApp.exe" 
-resource:./gui.glade,gui.glade -pkg:gtk-sharp -pkg:glade-sharp 
./Main.cs ./AssemblyInfo.cs \
&& cp "CalcGladeApp.exe" ./build/bin/.
Compilation succeeded

$ mono bin/Debug/CalcGladeApp.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 <0x0007c> GladeApp:.ctor (string[])
in <0x0003c> GladeApp:Main (string[])

$ echo $DYLIB_LIBRARY_PATH
:/Library/Frameworks/Mono.framework/Versions/1.0.4/lib:/Users/javierdiaz/usr/lib:/sw/lib

is it ok that mono looks for libgtk-win32-2.0-0.dll ?
Any ideas ?