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

vinvinodk vinothkumar.s at jasmin-infotech.com
Wed Aug 7 15:28:55 UTC 2013


Hi All

I have to use only .so library file for my project. I have compiled my c#
code and it works fine but when i try to invoke the api of that .so file, it
causes DllNotfound exception. After reading all the available answers on
net, i followed below things, but it not works :( Guide in proper direction
since i m a beginner in mono and mac.

----------------------------------------------------------------
I created config file as myapp.exe.config and it has

<configuration>
  <dllmap dll="mylibrary" target="libmylibrary.so" />
</configuration>

And after going to the location of my exe, i gave below commands

LD_LIBRARY_PATH=`pwd`

mono myapp.exe

----------------------------------------------------------------

Am i on the right way of setting the environment variable on mac. Don't know
how to resolve this..!

Thanks

- Vinod




--
View this message in context: http://mono.1490590.n4.nabble.com/Invoke-an-api-using-so-library-tp4660467.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list