Login  Register

Re: JOGL for Mac ARM Silicon

Posted by CharlieBoy on Nov 18, 2022; 6:52am
URL: https://forum.jogamp.org/JOGL-for-Mac-ARM-Silicon-tp4040887p4041940.html

Hi all,

Success!
After installing XCode on my new iMac,  I could use the lipo command.
I used it to extract arm64-only dylibs from the universal dylibs I had gotten from
Sweethome3d and installed these dylibs in place of the universal ones.  
Using the arm64 Zulu JDK 8, everything just worked correctly the first time, no more
loader error messages.
It was immediately clear that it had found the arm64 versions of the libraries,
since the frame rates jumped by 25-50% over the speeds using an Intel JDK 8.
I have since tested this successfully with the arm64 versions of
Eclipse Temurin AdoptOpenJDK 11.0.7 and OpenJDK 11.0.17.

I wonder if there is some hidden flag somewhere that is causing the loading process
to choose to create an x86_64 library instead of an arm64 library from the universal dylib file,
leading to the loader error message in my previous post.

Thanks to manu and martin for their helpful responses.

Charlie