[Mono-list] Mono error :Sysem.DllNotFoundException:libgobject-2.0-0.dll

Mike Cleaver mike at moga.to
Wed Aug 20 04:06:22 EDT 2008


Are you running OSX?

If so check the config file in the etc/mono folder,

There is a configuration section that contains 'dllmap' elements, to  
get gtk/gdk sharp working I add these (for osx only):

<dllmap dll="libglib-2.0-0.dll" target="/Library/Frameworks/ 
Mono.framework/Versions/Current/lib/libglib-2.0.0.dylib" os="osx" />
<dllmap dll="libgdk-win32-2.0-0.dll" target="/Library/Frameworks/ 
Mono.framework/Versions/Current/lib/libgdk-quartz-2.0.0.dylib"  
os="osx" />
<dllmap dll="libgdk_pixbuf-2.0-0.dll" target="/Library/Frameworks/ 
Mono.framework/Versions/Current/lib/libgdk_pixbuf-2.0.0.dylib"  
os="osx" />
<dllmap dll="glibsharpglue-2" target="/Library/Frameworks/ 
Mono.framework/Versions/Current/lib/libglibsharpglue-2.so" os="osx" />
<dllmap dll="libgobject-2.0-0.dll" target="/Library/Frameworks/ 
Mono.framework/Versions/Current/lib/libgobject-2.0.0.dylib" os="osx" />

There may be more that are required that I missed since I only added  
them to get some specific functionality.

If you are getting this error on a different platform, are you sure  
you have installed gtk-sharp?

Cheers,
Mike

On 20/08/2008, at 2:21 PM, svalbard colaco wrote:

>
>
> ---------- Forwarded message ----------
> From: svalbard colaco <svalbardcolaco at gmail.com>
> Date: Wed, Aug 20, 2008 at 11:47 AM
> Subject: Mono error :Sysem.DllNotFoundException:libgobject-2.0-0.dll
> To: mono-list at lists.ximian.com
>
>
>
> Hi I have been trying to run f-spot and i get the following error
> System.DllNotFoundException: libgobject-2.0-0.dll
>
>   at (wrapper managed-to-native) Gnome.Program:g_type_init ()
>
>   at Gnome.Program..ctor (System.String app_id, System.String  
> app_version, Gnome.ModuleInfo module, System.String[] argv,  
> System.Object[] props) [0x00000]
>
>
> Unhandled Exception: System.DllNotFoundException: libgtk- 
> win32-2.0-0.dll
>
>
>
>   at (wrapper managed-to-native) Gtk.Application:gtk_init  
> (int&,intptr&)
>   at Gtk.Application.Init () [0x00000]
>   at FSpot.Driver.Main (System.String[] args) [0x00000]
>
>
> I tried debugging using
> MONO_LOG_LEVEL=debug mono f-spot.exe
>
> And the following is the part of the error log
>
> Mono-INFO: DllImport attempting to load: 'libgobject-2.0-0.dll'.
>
>
>
> Mono-INFO: DllImport loading location: 'libgobject-2.0-0.dll'.
> Mono-INFO: DllImport error loading library: 'libgobject-2.0-0.dll:  
> cannot open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading library: './libgobject-2.0-0.dll'.
>
>
>
> Mono-INFO: DllImport error loading library './libgobject-2.0-0.dll:  
> cannot open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading: 'libgobject-2.0-0.dll'.
> Mono-INFO: DllImport error loading library 'libgobject-2.0-0.dll:  
> cannot open shared object file: No such file or directory'.
>
>
>
> Mono-INFO: DllImport loading location: 'libgobject-2.0-0'.
> Mono-INFO: DllImport error loading library: 'libgobject-2.0-0:  
> cannot open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading library: './libgobject-2.0-0'.
>
>
>
> Mono-INFO: DllImport error loading library './libgobject-2.0-0:  
> cannot open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading: 'libgobject-2.0-0'.
> Mono-INFO: DllImport error loading library 'libgobject-2.0-0: cannot  
> open shared object file: No such file or directory'.
>
>
>
>
> (/tmp/mnt/psas/csa/PSA4/usr/lib/f-spot/f-spot.exe:12050): Mono- 
> WARNING **: DllImport unable to load library 'libgobject-2.0-0:  
> cannot open shared object file: No such file or directory'.
> System.DllNotFoundException: libgobject-2.0-0.dll
>
>
>
>   at (wrapper managed-to-native) Gnome.Program:g_type_init ()
>   at Gnome.Program..ctor (System.String app_id, System.String  
> app_version, Gnome.ModuleInfo module, System.String[] argv,  
> System.Object[] props) [0x00000]
>
>
>
>
>
>
> Mono-INFO: DllImport attempting to load: 'libgtk-win32-2.0-0.dll'.
> Mono-INFO: DllImport loading location: 'libgtk-win32-2.0-0.dll'.
> Mono-INFO: DllImport error loading library: 'libgtk-win32-2.0-0.dll:  
> cannot open shared object file: No such file or directory'.
>
>
>
> Mono-INFO: DllImport loading library: './libgtk-win32-2.0-0.dll'.
> Mono-INFO: DllImport error loading library './libgtk- 
> win32-2.0-0.dll: cannot open shared object file: No such file or  
> directory'.
> Mono-INFO: DllImport loading: 'libgtk-win32-2.0-0.dll'.
>
>
>
> Mono-INFO: DllImport error loading library 'libgtk-win32-2.0-0.dll:  
> cannot open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading location: 'libgtk-win32-2.0-0'.
> Mono-INFO: DllImport error loading library: 'libgtk-win32-2.0-0:  
> cannot open shared object file: No such file or directory'.
>
>
>
> Mono-INFO: DllImport loading library: './libgtk-win32-2.0-0'.
> Mono-INFO: DllImport error loading library './libgtk-win32-2.0-0:  
> cannot open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading: 'libgtk-win32-2.0-0'.
>
>
>
> Mono-INFO: DllImport error loading library 'libgtk-win32-2.0-0:  
> cannot open shared object file: No such file or directory'.
>
> (/tmp/mnt/psas/csa/PSA4/usr/lib/f-spot/f-spot.exe:12050): Mono- 
> WARNING **: DllImport unable to load library 'libgtk-win32-2.0-0:  
> cannot open shared object file: No such file or directory'.
>
>
>
> Mono-INFO: DllImport attempting to load: 'libgtk-win32-2.0-0.dll'.
> Mono-INFO: DllImport loading location: 'libgtk-win32-2.0-0.dll'.
> Mono-INFO: DllImport error loading library: 'libgtk-win32-2.0-0.dll:  
> cannot open shared object file: No such file or directory'.
>
>
>
> Mono-INFO: DllImport loading library: './libgtk-win32-2.0-0.dll'.
> Mono-INFO: DllImport error loading library './libgtk- 
> win32-2.0-0.dll: cannot open shared object file: No such file or  
> directory'.
> Mono-INFO: DllImport loading: 'libgtk-win32-2.0-0.dll'.
>
>
>
> Mono-INFO: DllImport error loading library 'libgtk-win32-2.0-0.dll:  
> cannot open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading location: 'libgtk-win32-2.0-0'.
> Mono-INFO: DllImport error loading library: 'libgtk-win32-2.0-0:  
> cannot open shared object file: No such file or directory'.
>
>
>
> Mono-INFO: DllImport loading library: './libgtk-win32-2.0-0'.
> Mono-INFO: DllImport error loading library './libgtk-win32-2.0-0:  
> cannot open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading: 'libgtk-win32-2.0-0'.
>
>
>
> Mono-INFO: DllImport error loading library 'libgtk-win32-2.0-0:  
> cannot open shared object file: No such file or directory'.
>
> (/tmp/mnt/psas/csa/PSA4/usr/lib/f-spot/f-spot.exe:12050): Mono- 
> WARNING **: DllImport unable to load library 'libgtk-win32-2.0-0:  
> cannot open shared object file: No such file or directory'.
>
>
>
>
> Unhandled Exception: System.DllNotFoundException: libgtk- 
> win32-2.0-0.dll
>   at (wrapper managed-to-native) Gtk.Application:gtk_init  
> (int&,intptr&)
>   at Gtk.Application.Init () [0x00000]
>   at FSpot.Driver.Main (System.String[] args) [0x00000]
>
>
>
> Thanks & Regards
> sval.
>
>
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

Mike Cleaver
mike at moga.to



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080820/9a004a4b/attachment.html 


More information about the Mono-list mailing list