TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

No build for arm64 Raspberry Pi

Open cdwfs opened this issue 2 years ago • 9 comments

I just updated my RPi 400 from 32-bit Buster to 64-bit Bullseye, and none of the TIS-80 binaries in the latest release seem to work. Is that expected? Would it be straightforward to add this configuration to the release?

cdwfs avatar May 08 '23 04:05 cdwfs

FWIW I was able to build a binary from source for 64-bit Bullseye with no trouble, just following the instructions in the README. Adding GPG keys and setting up the jessie-backports was no longer necessary; I just installed the listed packages through apt, and then cmake+make worked without a hitch.

cdwfs avatar May 08 '23 18:05 cdwfs

Please update our build files using Pull Request we will release a 64-bit version then.

nesbox avatar May 14 '23 11:05 nesbox

😬 I'd love to help, but there's a bit of a gulf between "locally install some packages on an actual 64-bit RPi and run cmake .. ; make" vs. "figure out how to correctly extend an unfamiliar project's build setup to support a new platform". Any tips to point me in the right direction? Are the release binaries built & tested locally on actual hardware, or cross-compiled from a cloud VM?

cdwfs avatar May 14 '23 17:05 cdwfs

Looks like it's a multiplatform dockerfile cross-compile @cdwfs (see https://github.com/nesbox/TIC-80/tree/main/build/rpi)

Looks like, to create a aarm64 deb package, at minimum, aarch64-linux-gnu needs to be called instead of arm-linux-gnueabihf in https://github.com/nesbox/TIC-80/blob/main/build/rpi/toolchain.cmake

And https://github.com/nesbox/TIC-80/blob/main/build/rpi/Dockerfile is calling https://github.com/raspberrypi/tools, which is depreciated and also can't do 64-bit.

I'm also super new to using dockerfile dapper for cross-platform builds, but I've made a fork and will do some poking.

KGOrphanides avatar May 23 '23 08:05 KGOrphanides

Hello, I not found build for arm64,and i test build with instructions without successful . I test to install the build armhf with sudo dpkg --add-architecture armhf Install run ,but tic80 don't run

I need help to run TIC-80 on my ubuntu arm 64 on pi400.

Thanks

jackygoule avatar Aug 19 '23 04:08 jackygoule

Hello i success to build . with this commands (ubuntu mate arm64 pi400)

sudo apt-get install git build-essential ruby-full libsdl2-dev zlib1g-dev sudo apt-get install liblua5.3-dev sudo apt-get install libcurl4-openssl-dev git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build cmake .. make -j4

It seem run normally

jackygoule avatar Aug 19 '23 05:08 jackygoule

Great, could you pls add these commands to our Build Instructions https://github.com/nesbox/TIC-80#build-instructions

nesbox avatar Aug 20 '23 07:08 nesbox

I can confirm the solution by @jackygoule works for Raspberry Pi 5 too! the build was pretty fast too

msx80 avatar Apr 26 '24 21:04 msx80

I'll see if I can set up a self-hosted runner to produce builds for now.

aliceisjustplaying avatar May 02 '24 16:05 aliceisjustplaying

I've set up a system for unofficial linux/arm64 nightly builds in https://github.com/nesbox/TIC-80/pull/2586. See this section of the README for details.

aliceisjustplaying avatar May 28 '24 19:05 aliceisjustplaying