[Mono-list] Running under MonoDevelop not finding p/invoke dylib

Ulrich Hertlein u.hertlein at gmail.com
Wed Aug 29 06:41:38 UTC 2012


Hi guys,

My application p/invokes 'A.dylib' that requires 'B.dylib'.  Both are
part of the project and are copied to the 'Resources' directory in the
application bundle as part of the build.

When running this from MonoDevelop (version 3.0.3.5) I always get a
DllNotFound exception for 'A.dylib'.  Unfortunately this doesn't tell
me whether the error is that it really cannot find 'A.dylib' or that
it fails to find 'B.dylib' (which is referenced from 'A').

By setting the DYLD_LIBRARY_PATH to the 'Resources' directory I can at
least make it work from the command line, but that's not really a
solution.

Any hints?  Are there any MONO_DEBUG settings that might help in this case?

Cheers,
/uli


More information about the Mono-list mailing list