.so file not found in /usr/lib

Daniel Hughes <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <CAC5vxh1oWuR0WdkPGuiCi1s4-PjYUq6zST=8x-KLJ1AxviDYSQ@mail.gmail.com>
I have a library that I am trying to pinvoke to (libsword.so) that is
located in /usr/lib

This page:
http://www.mono-project.com/docs/advanced/pinvoke/
tells me that /usr/lib is on the search path.

However when I run my app I get a DllNotFoundException


If I run with: MONO_LOG_LEVEL=debug mono CSSword.Tests.exe

Then I get the following in the output:

Mono: DllImport attempting to load: 'libsword'.
Mono: DllImport error loading library
'/home/daniel/Work/sword/bindings/csharp/tests/bin/Debug/libsword':
'/home/daniel/Work/sword/bindings/csharp/tests/bin/Debug/libsword:
cannot open shared object file: No such file or directory'.
Mono: DllImport error loading library
'/home/daniel/Work/sword/bindings/csharp/tests/bin/Debug/libsword.so':
'/home/daniel/Work/sword/bindings/csharp/tests/bin/Debug/libsword.so:
cannot open shared object file: No such file or directory'.
Mono: DllImport error loading library 'libsword': 'libsword: cannot
open shared object file: No such file or directory'.
Mono: DllImport error loading library 'libsword.so':
'libicui18n.so.48: cannot open shared object file: No such file or
directory'.
Mono: DllImport error loading library 'libsword': 'libsword: cannot
open shared object file: No such file or directory'.
Mono: DllImport unable to load library 'libsword: cannot open shared
object file: No such file or directory'.
Mono: DllImport attempting to load: 'libsword'.
Mono: DllImport error loading library
'/home/daniel/Work/sword/bindings/csharp/tests/bin/Debug/libsword':
'/home/daniel/Work/sword/bindings/csharp/tests/bin/Debug/libsword:
cannot open shared object file: No such file or directory'.
Mono: DllImport error loading library
'/home/daniel/Work/sword/bindings/csharp/tests/bin/Debug/libsword.so':
'/home/daniel/Work/sword/bindings/csharp/tests/bin/Debug/libsword.so:
cannot open shared object file: No such file or directory'.
Mono: DllImport error loading library 'libsword': 'libsword: cannot
open shared object file: No such file or directory'.
Mono: DllImport error loading library 'libsword.so':
'libicui18n.so.48: cannot open shared object file: No such file or
directory'.
Mono: DllImport error loading library 'libsword': 'libsword: cannot
open shared object file: No such file or directory'.
Mono: DllImport unable to load library 'libsword: cannot open shared
object file: No such file or directory'.

Why is mono not finding the file in /usr/lib

Cheers,
Daniel Hughes
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.