[OBORONA-SPAM] [Mono-list] gtk# apps don't run
Vadim B. Guzev
Vadim B. Guzev" <vguzev@yandex.ru
Wed, 7 Jul 2004 12:22:40 +0400
Hello Igor,
Tuesday, July 6, 2004, 7:37:52 PM, you wrote:
IA> Hi,
IA> I have a clean install on Fedora Core 2 from mono-project.org,
IA> nevertheless I get things like
IA> Unhandled Exception: System.DllNotFoundException: libgtk-win32-2.0-0.dll
IA> in <0x00053> (wrapper managed-to-native) Gtk.Application:gtk_init
IA> (int&,intptr&)in <0x00038> Gtk.Application:Init ()
IA> in <0x00019> GladeSamples.GladeTest:.ctor (string[])
IA> in <0x00020> GladeSamples.GladeTest:Main (string[])
IA> Is is repairable?
You should probably add some dll mappings to your Mono configuration file (it
can be found in {Mono-installationpath}/etc/mono/config).
I had the same problem a while ago and I had to change my config to the
following (you can have a different versions on your system):
<configuration>
<dllmap dll="cygwin1.dll" target="libc.so.6" />
<dllmap dll="libc" target="libc.so.6" />
<dllmap dll="libintl" target="libc.so.6" />
<dllmap dll="libxslt.dll" target="libxslt.so" />
<dllmap dll="libmySQL.dll" target="libmysqlclient.so" />
<dllmap dll="odbc32.dll" target="libodbc.so" />
<dllmap dll="oci" target="clntsh" />
<dllmap dll="db2cli" target="libdb2_36.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="libatk-1.0-0.dll" target="libatk-1.0.so.0"/>
<dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/>
<dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-x11-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"/>
</configuration>
Also, you must add to your LD_LIBRARY_PATH environment variable the
following path (change it in your .bashrc file):
export LD_LIBRARY_PATH=/yourPathToGtk#Instal/lib:$LD_LIBRARY_PATH
Best regards,
Vadim B. Guzev
http://u.pereslavl.ru/~vadim/MCSharp/