Getting Java3D up on Apple M1-2 docs etc desired

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting Java3D up on Apple M1-2 docs etc desired

peterk
I have used Jogl and gluegen before, but several years ago to bind native IO devices into a java UI system.
We are currently using the Azui Zulu VM and want to stay open.

I remember from before on windows I had to build gluegen to generate C++ code for jogl and generate bindings to Java for a C++ side library.  I would be using CLang or Xcode  for the native side.

So though I am not a complete Newbee do want to avoid wading through to much uniformed stuff and if getting Java3D into java and an associated jar file for a java application project to run with.  If that can be done, am looking for a good concise doc on how to do it :)

The project I am using this for is intended to be fully open source.

If I am better off on another topic let me know :)

Thanks  
Reply | Threaded
Open this post in threaded view
|

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

gouessej
Administrator
Hello

JOGL already works on Apple M1, some people posted about that in the forum...
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

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

gouessej
Administrator
In reply to this post by peterk
Reply | Threaded
Open this post in threaded view
|

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

peterk
The link to "how to build it" on that thread is broken.

> Hello
>
> Have you read our build instructions?
> http://forum.jogamp.com/jogl/doc/HowToBuild.html

That is my desire:

To find a doc for how to set it up and do what is needed to link it into an app.<quote author="gouessej">
Reply | Threaded
Open this post in threaded view
|

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

gouessej
Administrator
Reply | Threaded
Open this post in threaded view
|

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

peterk
thanks !
Reply | Threaded
Open this post in threaded view
|

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

peterk
In reply to this post by gouessej
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.
Reply | Threaded
Open this post in threaded view
|

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

peterk
also not hooked on having to build it all.  But gluegen has been useful to make native/java bindings.

If there ia s prebuilt package of libraries and jars his would be fantastic, then app development can proceed asap and making an independent build can happen in parallel :)
Reply | Threaded
Open this post in threaded view
|

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

gouessej
Administrator
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
Hi Peter,

yes, building JogAmp on MacOS for the universal (fat) target (x86_64 + aarch64)
is a bit of a PIA due to preparing the build system.
This especially b/c there is no prebuild universal binary JDK.

You can find v2.5.0 progress with link to latest RC here
https://forum.jogamp.org/Release-2-5-0-td4042507.html

The last one from May should work on MacOS aarch64.

@Julien: Thank you for helping out.

@All: Yes, I could use some good company contracts/jobs
for JogAmp or other project work to further JogAmp.