[Pkg-mono-devel] gtk-sharp errors

Daniel Zapata zapata@uol.com.br
Wed, 04 Feb 2004 19:53:59 -0200


Alex,

I've had the same problems.

My system is running Kurumin Linux (a brazilian Knoppix redistribution).

To correct this problem I have changed my /etc/mono/config file.

I've changed 'libgtk-x11-2.0.so' to 'libgtk-x11-2.0.so.0'

Here is how my /etc/mono/config file look like

<configuration>
   <dllmap dll="cygwin1.dll" target="libc.so.6" />
   <dllmap dll="libc" target="libc.so.6" />
   <dllmap dll="libxslt.dll" target="libxslt.so.1" />
   <dllmap dll="libmySQL.dll" target="libmysqlclient.so" />
   <dllmap dll="odbc32.dll" target="libodbc.so" />
   <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0" />
   <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/>
   <dllmap dll="libgthread-2.0-0.dll" target="libgthread-2.0.so.0" />
   <dllmap dll="libpango-1.0-0.dll" target="libpango-1.0.so.0" />
   <dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.so.0" />
   <dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-x11-2.0.so.0" />
   <dllmap dll="libgdk_pixbuf-2.0-0.dll" target="libgdk_pixbuf-2.0.so.0"
/>
   <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0" />
   <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0" />
   <dllmap dll="libglade-2.0-0.dll" target="libglade-2.0.so.0" />
   <dllmap dll="oci" target="clntsh" />
   <dllmap dll="gtkhtml-3.0" target="libgtkhtml-3.0.so.2" />
   <dllmap dll="db2cli" target="libdb2_36.so"/>
   <dllmap dll="gstreamer" target="libgstreamer-0.6.so" />
</configuration>

Hope that helps

See ya.

Daniel Zapata


> 
> 
> Hi,
> I have pinned the unstable mono/gtk-sharp packages 
> from blade/testing so that they will install on my
> tesing machine.
> 
> I have test compiled Monodoc and a simple 
> helloworld in gtk-sharp and both compile fine...
> but when I try to run the applications they error. 
> 
> Here is the output from the helloworld in gtk-sharp
> from the monohandbook:
> 
> 
> ./hellogtk.exe
>  
> ** (./hellogtk.exe:17281): WARNING **: Failed to load
> library ./libgtk-x11-2.0.so (libgtk-x11-2.0.so):
> ./libgtk-x11-2.0.so: cannot open shared object file:
> No such file or directory
>  
> ** (./hellogtk.exe:17281): WARNING **: Failed to load
> library ./libgtk-x11-2.0.so (libgtk-x11-2.0.so):
> ./libgtk-x11-2.0.so: cannot open shared object file:
> No such file or directory
>  
> Unhandled Exception: System.MissingMethodException: A
> missing method exception has occurred.
> in <0x00042> (wrapper managed-to-native)
> Gtk.Application:gtk_init (int,intptr)
> in <0x0002a> Gtk.Application:Init ()
> in <0x00011> .Hello:Main ()
> 
> //I tried running them through mono to see if there
> is any different but i get the same errors, eg:
> 
> $ mono hellogtk.exe
>  
> ** (hellogtk.exe:17290): WARNING **: Failed to load
> library ./libgtk-x11-2.0.so (libgtk-x11-2.0.so):
> ./libgtk-x11-2.0.so: cannot open shared object file:
> No such file or directory
>  
> ** (hellogtk.exe:17290): WARNING **: Failed to load
> library ./libgtk-x11-2.0.so (libgtk-x11-2.0.so):
> ./libgtk-x11-2.0.so: cannot open shared object file:
> No such file or directory
>  
> Unhandled Exception: System.MissingMethodException: A
> missing method exception has occurred.
> in <0x00042> (wrapper managed-to-native)
> Gtk.Application:gtk_init (int,intptr)
> in <0x0002a> Gtk.Application:Init ()
> in <0x00011> .Hello:Main ()
> 
> 
> //It is only the gtk-sharp packages that has trouble,
> so far I have had no problems compiling and running
> plain c# apps using the blade/testing mono package.
> 
> Is this simply a problem because most of my system
> is sarge and the gtk-sharp packages are for sid?
> 
> Alex
> 
>