pixelwheels icon indicating copy to clipboard operation
pixelwheels copied to clipboard

Linux arm64 build

Open z3ntu opened this issue 2 years ago • 3 comments

Since you're already providing "linux64" (so x86_64) builds, can you also build Linux arm64/aarch64 builds for the releases please?

That way also flatpak could use the binaries to repackage them for flatpak.

z3ntu avatar Feb 05 '24 23:02 z3ntu

It's possible the .jar inside already runs on arm64 (Java is cross-platform). Judging by these libs inside of it:

libgdx.so
libgdx64.so
libgdxarm.so
libgdxarm64.so
libgdx-box2d.so
libgdx-box2d64.so
libgdx-box2darm.so
libgdx-box2darm64.so
libgdx-freetype.so
libgdx-freetype64.so
libgdx-freetypearm.so
libgdx-freetypearm64.so
libjamepad.so
libjamepad64.so
libjamepadarm.so
libjamepadarm64.so

faveoled avatar Aug 02 '24 15:08 faveoled

I can confirm that with the non-bundled JRE (one compiled for arm64) that with essentially java -jar pixelwheels.jar the game runs on arm64 :) With this I can already try to make the flatpak be also compatible with arm64 by using JRE from flathub instead of the bundled one.

Just need to figure out how to get the controls working on touchscreen phone.

z3ntu avatar Sep 26 '24 21:09 z3ntu

So control issue is the code thinks multitouch controls are not available, so both touch-based controls are not shown. When forcing it enabled through the developer settings makes it available but it indeed looks like some component in the stack doesn't support the multitouch from the behavior.

libinput debug-events shows all events from the touchscreen coming in correctly though so I'm guessing the problem is in some Java library there.

Flatpak PR (work-in-progress): https://github.com/flathub/com.agateau.PixelWheels/pull/14

edit: just continuing here editing a bit...

So seems gdx has no implementation of multitouch for anything that's not Android or iOS or GWT (Web?)

  • https://github.com/search?q=repo%3Alibgdx%2Flibgdx+isPeripheralAvailable&type=code
  • https://github.com/search?q=repo%3Alibgdx%2Flibgdx%20MultitouchScreen&type=code

The "mobile platforms" have an if there with MultitouchScreen but there's nothing for lwjgl / lwjgl3, one of which presumably runs the game on mobile Linux.

z3ntu avatar Sep 26 '24 22:09 z3ntu