[Gtk-sharp-list] gtk-sharp os x, library not found

Pierre Andrews pierre.andrews@epfl.ch
Mon, 5 Jan 2004 22:42:02 +0100


Hi,

I've been working these last days on compiling mono 0.29 and gtk-sharp 
on apple os x.

After installing/compiling all the dependencies, I managed to compile 
both. However, when I run the sample button.exe application of 
gtk-sharp (with mint), I get the error:

** (button.exe:1459): WARNING **: Failed to load library 
./libgtk-x11-2.0.so (libgtk-x11-2.0.so): dlcompat: file 
"./libgtk-x11-2.0.so" not found

As with os X, the libraries have the extension dylib, I modified in 
mono data/config.in to be:
<configuration>
	<dllmap dll="cygwin1.dll" target="@LIBC@" />
	<dllmap dll="libc" target="@LIBC@" />
	<dllmap dll="libxslt.dll" target="libxslt.dylib" />
	<dllmap dll="libmySQL.dll" target="libmysqlclient.dylib" />
	<dllmap dll="odbc32.dll" target="libodbc.dylib" />
	<dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.dylib" />
	<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.dylib" />
	<dllmap dll="libgthread-2.0-0.dll" target="libgthread-2.0.dylib" />
	<dllmap dll="libpango-1.0-0.dll" target="libpango-1.0.dylib" />
	<dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.dylib" />
	<dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-x11-2.0.dylib" />
	<dllmap dll="libgdk_pixbuf-2.0-0.dll" target="libgdk_pixbuf-2.0.dylib" 
/>
	<dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.dylib" />
	<dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.dylib" />
	<dllmap dll="libglade-2.0-0.dll" target="libglade-2.0.dylib" />
	<dllmap dll="oci" target="clntsh" />
	<dllmap dll="gtkhtml-3.0" target="libgtkhtml-3.0.dylib.2" />
	<dllmap dll="db2cli" target="libdb2_36.dylib"/>
</configuration>

and the variable SHARED_EXT in mono/mini/aot.c to ".dylib"

after recompilation, the libraries seems to be searched with the right 
extension, so I get the error:

** (button.exe:1459): WARNING **: Failed to load library 
./libgtk-x11-2.0.dylib (libgtk-x11-2.0.dylib): dlcompat: file 
"./libgtk-x11-2.0.dylib" not found

I you have followed everything, you see that I still have the same 
error. even if MONO_PATH is set to my libraries path: 
/sw/lib/:/usr/lib:/usr/local/lib
(libgtk-x11-2.0.dylib being in /sw/lib)

Do you have any advice on what could lead to this error?

Thank you

Pierre Andrews

--
Andrews Pierre
pierre.andrews@epfl.ch
Swiss Federal Institute of Technology (EPFL)
http://6v8.gamboni.org