I'm having a problem using JNAerator on Mac OS X (Mavericks) using JNAerator 0.13 snapshot.
I'm running JNAerator this way:
'java -jar jnaerator/target/jnaerator-0.13-SNAPSHOT-shaded.jar -runtime JNA libFoo.dylib foo.h -mode StandaloneJar'
And I get a out.jar file where my 'dylib' is packaged in 'lib/darwin_universal' but when I run my Java code the runtime looks for the library in 'darwin':
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'Foo': Native library (darwin/libFoo.dylib) not found
If I put my lib in a folder called 'darwin' and update the 'out.jar' thusly:
'jar uf out.jar darwin/libFoo.dylib'
it works.
Is there some configuration I have missed that fixes this?
Hi,
First, thanks for your efforts in JNAerator!
I'm having a problem using JNAerator on Mac OS X (Mavericks) using JNAerator 0.13 snapshot.
I'm running JNAerator this way:
'java -jar jnaerator/target/jnaerator-0.13-SNAPSHOT-shaded.jar -runtime JNA libFoo.dylib foo.h -mode StandaloneJar'
And I get a out.jar file where my 'dylib' is packaged in 'lib/darwin_universal' but when I run my Java code the runtime looks for the library in 'darwin':
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'Foo': Native library (darwin/libFoo.dylib) not found
If I put my lib in a folder called 'darwin' and update the 'out.jar' thusly:
'jar uf out.jar darwin/libFoo.dylib'
it works.
Is there some configuration I have missed that fixes this?