[Mono-list] .so file not found in /usr/lib
Daniel Hughes
trampster at gmail.com
Mon Jul 4 23:24:05 UTC 2016
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
More information about the Mono-list
mailing list