Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

about https://github.com/bytedeco/javacpp/wiki/Basic-Architecture#the-builder

18 views
Skip to first unread message

Jack He CN

unread,
Nov 29, 2021, 9:00:22 PM11/29/21
to javacpp
I try to understand this builder phase like this:
1) (optional) run the cppbuild.sh to build the .so out
2) run the parser on the given InfoMap and header files to output the JNI (.java) files
3) run the generator on JNI code above to output C++ files
4) run the c++ compiler on the above JNI C++ code
Is this correct?

one more thing, "Outputs native libraries containing JNI wrappers, optionally archived in a JAR file", here, "JNI wrappers" means the JNI wrappers generated by the above step 4), correct?

Samuel Audet

unread,
Nov 29, 2021, 9:22:29 PM11/29/21
to javacpp...@googlegroups.com
On 11/30/21 11:00, 'Jack He CN' via javacpp wrote:
> I try to understand this builder phase like this:
> 1) (optional) run the cppbuild.sh to build the .so out
> 2) run the parser on the given InfoMap and header files to output the
> JNI (.java) files
> 3) run the generator on JNI code above to output C++ files
> 4) run the c++ compiler on the above JNI C++ code
> Is this correct?

You're just copy/pasting text from the page, so yes it's correct. Is
there anything in particular that you don't understand?

> one more thing, "Outputs native libraries containing JNI wrappers,
> optionally archived in a JAR file", here, "JNI wrappers" means the JNI
> wrappers generated by the above step 4), correct?

Yes, of course. All of the JNI code is generated. It's still possible to
mix it with manually written JNI code though, if that's your question?

Jack He CN

unread,
Nov 30, 2021, 1:41:18 AM11/30/21
to javacpp
the exact thing I want to get familiar is: 
do we have any sort of simple example to show all the generated files of each stage/phase/step? I want to know the detailed workflow of JavaCPP.

Samuel Audet

unread,
Nov 30, 2021, 2:32:20 AM11/30/21
to javacpp
Sure, this is what the simple example here is for:

--
You received this message because you are subscribed to the Google Groups "javacpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javacpp-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/javacpp-project/4d727d32-8ec6-4425-b26c-ec3af85f8f06n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages