CircuitSim icon indicating copy to clipboard operation
CircuitSim copied to clipboard

CircuitSim jar has only x86_64 native libraries

Open ausbin opened this issue 1 year ago • 0 comments

This is a lurking remaining subset of #91 it seems.

If I extract an official Circuitsim jar, the dynamic libraries appear to be for x86_64 only:

$ file *.dylib
libdecora_sse.dylib:   Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|NO_REEXPORTED_DYLIBS>
libglass.dylib:        Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>
libjavafx_font.dylib:  Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>
libjavafx_iio.dylib:   Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>
libprism_common.dylib: Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>
libprism_es2.dylib:    Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>
libprism_sw.dylib:     Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS>

This is painful for students with M1 laptops, who get an error similar to #91.

Unfortunately, this seems more annoying to fix than #91, according to this reddit giga-comment at least. I still don't know what Oracle was thinking removing JavaFX from the JRE. Do you have any ideas for how to fix this?

ausbin avatar Aug 30 '23 18:08 ausbin