I built a quick prototype for a game that uses GPIO pins for control inputs and everything is working great on my dev machine, a Windows 10 box. However, I need to build and export this to run on a Raspberry Pi which uses arm64. I followed this GitHub proposal which looks like this should be doable as of 4.2.1: https://github.com/godotengine/godot-proposals/issues/988 but I cannot get the game to run on the pi.
I am using Godot 4.2.1.stable.mono.
I created an export for Linux/X11 (Runnable) and made sure that arm64 is selected for architecture. Here's a screenshot of my Export window:
Everything builds fine and it creates a .arm64 file. I copied that over to my Pi and chmod +x the file, but cannot run the file.
If I try to run it from the file manager GUI, I get a prompt telling me that it's an executable and asks if I want to run it. If I choose "Execute", nothing happens:
If I try from a terminal, I get the error "cannot execute binary file: Exec format error":
Googling that error makes it sound like I'm trying to run an x86 binary on an arm64 platform, but I made sure that Godot was setup to build it for arm64. I'm at a loss of what to try next.
Thank you!