[Mono-list] gtk-sharp on macos

Jamil Geor jamil_geor@yahoo.co.nz
Thu, 09 Dec 2004 01:30:08 +1300


Hi,
	I had this problem too, but then I updated my /etc/mono/config file
with some extra dll maps like this:

<dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/>
<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/>
<dllmap dll="libglade-2.0-0.dll" target="libglade-2.0.so.0"/>
<dllmap dll="libgdk_pixbuf-2.0-0.dll" target="libgdk_pixbuf-2.0.so.0"/>
<dllmap dll="libpango-1.0-0.dll" target="libpango-1.0.so.0"/>
<dllmap dll="gtkhtml-3.0" target="libgtkhtml-3.1.so"/>

It seems to work fine now.  Hope this helps.

Jamil

On Tue, 2004-12-07 at 15:05 -0600, Javier Diaz wrote:
> 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 ?
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list