Login  Register

Re: Getting Java3D up on Apple M1-2 docs etc desired

Posted by peterk on Aug 04, 2023; 11:48pm
URL: https://forum.jogamp.org/Getting-Java3D-up-on-Apple-M1-2-docs-etc-desired-tp4042799p4042807.html

So reading that doc:

Prepare fat universal OpenJDK libraries

****
    Open a terminal in your home folder, e.g. /Users/jogamp
    The OpenJDK library folder of each target platform, x86_64 or aarch64, is /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/lib
    Transfer the x86_64 OpenJDK library folder to temurin-17.jdk.amd64.lib
    Transfer the aarch64 OpenJDK library folder to temurin-17.jdk.arm64.lib
    Run the script gluegen/make/scripts/make.macosx.jdk_lipo_libs.sh
    Fat universal OpenJDK libraries are produced into temurin-17.jdk.fat.lib
****

Now we have to tell the gluegen build framework to use temurin-17.jdk.fat.lib, by adding an ant macro in $HOME/gluegen.properties

                                java.lib.dir.platform=/Users/jogamp/temurin-17.jdk.fat.lib
                           

Some number if "implicit" things I wonder about.
I would like to build it using the zulu JDK - is this NOT possible ?
Does one need to install the temurin system ?  Or is there a way to p[ur it in a sandbox?
If one needs it any particualr version ? any link to the proper distributiion way to find it or put download into a scipt ?

How does one continue from there to get it so one can integrate Jogl and/or Java3d int a Java app on an apple M1/M2 with latest OS.

??

I will help debug and write such a document if someone who knows about it wants to share the task.  :) :)

Thanks.