I am trying to load a sharedobject library via JNA
the file is called libLIBNAME.so my code looks like this:
Native.loadLibrary("LIBNAME", SomeInterface.class);
but everytime i execute it, i get
Unable to load library 'LIBNAME': dlopen(libLIBNAME.dylib, 9): image not found
how do i tell JNA to load xxx.so instead of xxx.dylib?
I have also tried wrapping the .so-file inside a .dylib by just passing the arguments, but apparently with no luck
setting a symlink from libLIBNAME.so to libLIBNAME.dylib results in:
Unable to load library 'LIBNAME': dlopen(/path..../libLIBNAME.dylib, 9): no suitable image found. Did find: /path..../libLIBNAME.dylib: unknown file type, first eight bytes: 0x62 0x6F 0x6F 0x6B 0x00 0x00 0x00 0x00
any ideas?