pattypan icon indicating copy to clipboard operation
pattypan copied to clipboard

Runing Pattypan on Mac devices with a M1 processor requries manual loading of OpenJFX

Open Abbe98 opened this issue 3 years ago • 5 comments

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.

Abbe98 avatar Feb 08 '22 19:02 Abbe98

Reported by @Ambrosiani in #154.

Abbe98 avatar Feb 08 '22 20:02 Abbe98

@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

fuzheado avatar Feb 08 '22 21:02 fuzheado

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

fuzheado avatar Feb 09 '22 14:02 fuzheado

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)

pattypan-error

psubhashish avatar Mar 01 '23 12:03 psubhashish

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.

psubhashish avatar Mar 01 '23 14:03 psubhashish