pattypan
pattypan copied to clipboard
Runing Pattypan on Mac devices with a M1 processor requries manual loading of OpenJFX
Turns out that the x64 version of OpenJFX is incompatible with M1 devices, the aarch64 version works but is instead incompatible with x64 devices.
As it is currently we can support M1 or x64 but not both.
To investigate:
- is there a flag or setting in MacOS that allows M1 devices to run x64 apps?
- How common are x64 devices?
- How does this impact #152
The current workaround is to install and load OpenJFX manually.
Reported by @Ambrosiani in #154.
@Abbe98 Do you know how it's invoked? There is a utility on the Mac that allows you to select the architecture, but I'm not sure if it's relevant here. I'm not familiar with Java packaging.
On an M1 Mac, you can use this to run programs in Intel x86 mode, so I'm not sure if this helps: $ arch -x86_64 /bin/bash
I spent about a half hour looking into how others might have addressed similar issue with JAR packaging M1 and x86 modules. I'm not experienced in this matter, but in case it might be useful this looked like a use case that was close to what we are dealing with.
https://github.com/dlemmermann/JPackageScriptFX
Pattypan v22.03 did not open for an Intel Mac. v22.02 did open and even created a spreadsheet. But it failed upon running. (see below screenshot)

Update: I was suspecting the wikitext in my spreadsheet and made some changes. It seems to be working. Again, v22.02 is working and pattypan 22.03 is not, for an Intel Mac.