Login  Register

Re: Building JARs with native libs inside

Posted by Martin on Sep 16, 2021; 8:02am
URL: https://forum.jogamp.org/Building-JARs-with-native-libs-inside-tp4041279p4041282.html

Thank you for asking.

I am working with VTK, a powerful open source visualization framework using JOGL for Java rendering. VTK has a great data model for holding and processing geometries of any kind. It is for Jzy3D a good help for pre-processing geometries and building charts.

I use Maven a lot and am willing to pack VTK for Java with its native libraries for each platform bundled in a jar as JOGL does. I want to use VTK Java from any application using Maven easily and JOGL native packaging seems like a good solution.

I basically have one folder of native libs per platform. I wonder where are existing Jogamp scripts to pack them in a Jar, and then to auto-select the appropriate native according to the executing computer. Do you have hints on this? I found nar-maven-plugin and native-lib-loader doing similar things but none is doing the entire work.

As we are discussing native : have you read about JEP-412? Do you think this will be compatible with GlueGen?