ochafik/nativelibs4java — Issue #260: native library name vs. gerated names
Author: schallee
Created: 2012-02-14 00:05:35+00:00
State: open

For native libraries that have a dash or a dot with the JNA runtime, jnaerator produces invalid/uncompilable code. Encoding of versions in the name of a library is quite common in the unix world and allows multiple versions of libraries to be installed concurrently. I'm seeing no way for jnaeratored code to reference a specific version or any library with a dash in the name without post processing the output to modify the call to NativeLibrary.getInstance().

The command line options wiki page references setting "library.Xxx (Java property) or XXX_LIBRARY (env. variable) : path to the binary of library Xxx. " however I have been unable to get either to work. This would be a bit of a hack for my need if they did work because I would have to specify the full path instead of just the name.

I'm using the maven plugin and have tried both 0.9.9 and 0.9.10-SNAPSHOT.

If I'm missing something I'd appreciate being pointed the right way. Thanks!