Jnaerator only generating 2 of the 5 header files that are being included

112 views
Skip to first unread message

Yann Bertaud

unread,
Sep 8, 2015, 1:23:21 PM9/8/15
to NativeLibs4Java
I am using jnaerator-0.12-shaded.jar to generate java class files.

I am passing multiple dlls and multiple .h files (5 of them) using a batch file

set foo=c:\build\release\win64
java
-Xmx1g -jar jnaerator-0.12-shaded.jar %foo%\bin\foo1.dll %foo%\bin\foo2.dll %foo%\bin\foo3.dll %foo%\inc\*.h -mode StandaloneJar -jar c:\temp\allheaders.jar


unfortunately, I am getting the following message 4 times

C:\build\release\win64\inc contains files from different libraries, so there won't be any default library for its files (symbols defined in files from that library that were included but not explicitly listed will not be JNAerated)


looking in the generated jar files, I see the 3 dlls being included in lib.win64 package and only 2 of the classes of the 5 header files.

What could I be doing wrong? I have also tried the following:

java -jar jnaerator-0.12-shaded.jar  -library ClmLicenseMgrCore %foo%\ClmLicenseMgrCore.h -library Class1 %foo%\header1.h -library Class2 %foo%\header2.h -library Class3 %foo%\header3.h -mode StandaloneJar -jar c:\temp\allheaders.jar
only header2
.h is converted to class file. I also see same message as above for the other 2 header files.


What am I missing?
Reply all
Reply to author
Forward
0 new messages