[Mono-list] ldconfig can find library but Mono can't

Steve Ricketts velocedge at hotmail.com
Mon May 17 10:13:32 EDT 2010


I'm trying to run a program in Mono and keep getting DllImport errors.  I
ran:

MONO_LOG_LEVEL=debug mono test.exe

And got the following errors on load.  What I don't understand is why
ldconfig can see these libraries but Mono is unable to find them.  

These are just a few of examples... there are many more:

Mono-INFO: Found as 'g_value_set_pointer'.
Mono-INFO: DllImport attempting to load: 'libgobject-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libgobject-2.0.so.0.so'.
Mono-INFO: DllImport error loading library: 'libgobject-2.0.so.0.so: cannot
open shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libgobject-2.0.so.0.so'.
Mono-INFO: DllImport error loading library './libgobject-2.0.so.0.so: cannot
open shared object file: No such file or directory'.

linux-nsxk:/home/stever/src/Video/clsVideo/test/bin/Debug # ldconfig -p |
grep libgobject
	libgobject-2.0.so.0 (libc6,x86-64) => /usr/lib64/libgobject-2.0.so.0
	libgobject-2.0.so.0 (libc6) => /usr/lib/libgobject-2.0.so.0
	libgobject-2.0.so (libc6,x86-64) => /usr/lib64/libgobject-2.0.so


Mono-INFO: DllImport error loading library: 'libgdiplus.dll.so: cannot open
shared object file: No such file or directory'.
Mono-INFO: DllImport error loading library: 'libX11.so.6.so: cannot open
shared object file: No such file or directory'.
Mono-INFO: DllImport error loading library: 'libgtk-x11-2.0.so.0.so: cannot
open shared object file: No such file or directory'.
Mono-INFO: DllImport error loading library: 'libgdi32.so: cannot open shared
object file: No such file or directory'
Mono-INFO: DllImport error loading library 'gdi32: cannot open shared object
file: No such file or directory'
Mono-INFO: DllImport error loading library 'libuser32: cannot open shared
object file: No such file or directory'
Mono-INFO: DllImport error loading library './libMonoSupportW.so.so: cannot
open shared object file: No such file or directory'.
Mono-INFO: DllImport error loading library: 'libvlc.so: cannot open shared
object file: No such file or directory'

linux-nsxk:/home/stever/src/Video/clsVideo/test/bin/Debug # ldconfig -p |
grep libvlc
	libvlccore.so.2 (libc6,x86-64) => /usr/lib64/libvlccore.so.2
	libvlc.so.2 (libc6,x86-64) => /usr/lib64/libvlc.so.2

I tried creating a DLLmap for the last one (libvlc.so) but it didn't seem to
make any difference.

<dllmap dll="libvlc.dll" target="/usr/lib64/libvlc.so.2"/>

Obviously, with so many "missing" I've got something way messed up, but I
have no idea what.  Can anyone tell me why Mono thinks so many files are
missing?
-- 
View this message in context: http://mono.1490590.n4.nabble.com/ldconfig-can-find-library-but-Mono-can-t-tp2219704p2219704.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list