JNAerator generates a jar - but how do I use it?

222 views
Skip to first unread message

Adrian McMenamin

unread,
Jun 6, 2016, 12:19:25 PM6/6/16
to NativeLibs4Java
If I run JNAerator using the header for my library, the process gobbles processor time and never seems to finish - after first issuing warnings:

adrian$ java -Xmx128m -jar ~/JNAerator/jnaerator/target/jnaerator-0.13-SNAPSHOT-shaded.jar /Users/adrian/DRAMSim2/DRAMSim.h -mode StandaloneJar

Warning: no -library option for file 'DRAMSim.h', using "DRAMSim".

Auto-configuring parser...

Parsing native headers...

/usr/include/sys/cdefs.h:74:25: warning: #warning "Unsupported compiler detected"

/usr/include/_types/_wctype_t.h:30:19: warning: No newline before end of file


So, I have also tried the -ScanSymbols option:


java -Xmx128m -jar ~/JNAerator/jnaerator/target/jnaerator-0.13-SNAPSHOT-shaded.jar -scanSymbols  -mode StandaloneJar

Auto-configuring parser...

Parsing native headers...

Normalizing parsed code...

Generating libraries...

Compiling JNAerated files...


[....]


Copying runtime classes...

Generating out.jar

#

# SUCCESS: JNAeration completed !

# Output mode is 'StandaloneJar(JAR with bindings and runtime dependencies)

#

# => '/Users/adrian/groovy/simul/src/simul/./out.jar'


And out.jar has a great many .class files but no .java


Using -noComp -noJar as suggested in the wiki generates no output at all ...


drian$ java -Xmx128m -jar ~/JNAerator/jnaerator/target/jnaerator-0.13-SNAPSHOT-shaded.jar -scanSymbols  -noComp -noJar

WARNING: option (?i)-noComp is deprecated and might be removed in future versions.

WARNING: option (?i)-noJar is deprecated and might be removed in future versions.

WARNING: legacy options (?i)-noJar and (?i)-noComp used, defaulting -mode to Directory

Auto-configuring parser...

Parsing native headers...

Normalizing parsed code...

Generating libraries...

#

# SUCCESS: JNAeration completed !

# Output mode is 'Directory(Bindings sources in simple file hierarchy)

#

# => '/Users/adrian/groovy/simul/src/simul/.'




What am I doing wrong? Or is this a hopeless case?


This is on Mac OSX


Adrian

Reply all
Reply to author
Forward
0 new messages