Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNAerator packages lib in "lib/darwin_universal" but at runtime it looks in "darwin" #95

Open
lejon opened this issue Jun 29, 2015 · 1 comment

Comments

@lejon
Copy link

lejon commented Jun 29, 2015

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?

@MFAshby
Copy link

MFAshby commented Jan 12, 2018

I've just found and submitted a very similar issue, #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants