[Mono-osx] Invoke an api using .so library

Ulrich Hertlein u.hertlein at gmail.com
Wed Aug 14 15:57:27 UTC 2013

A few things:
- .dylib is the usual extension for dynamic libraries on OS X so why fight
the tools?

You could also check that the rpath in the library is correct; especially
if you are relying on external libraries, but that is another can of worms.
Other than that it's a straight drop-in from Linux/Windows to OS X, no
special magic required.


On Thu, Aug 8, 2013 at 3:14 PM, mickeyf <mickey at thesweetoasis.com> wrote:

> I see that you are working with OSX - I only know linux and Windows, but
> from Jonathan Pryor's article :
> http://www.mono-project.com/Interop_with_Native_Libraries
> It appears that OSX has its own considerations and may be more particular
> about where a library is located and what it is called.
> I don't know if the bug mentioned about GLib in OSX has been fixed, but if
> not, it looks like you may need to leave off the ".so" extension when
> mapping in the config file.
> I would also double check all those many search paths that may be used.
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Invoke-an-api-using-so-library-tp4660467p4660478.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20130814/6c42a7b7/attachment.html>

More information about the Mono-osx mailing list