Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No build for arm64 Raspberry Pi #2188

Closed
cdwfs opened this issue May 8, 2023 · 10 comments
Closed

No build for arm64 Raspberry Pi #2188

cdwfs opened this issue May 8, 2023 · 10 comments
Assignees
Labels
arch: arm64 building devops platform: raspberry For issues affecting TIC80 on Raspbery PI

Comments

@cdwfs
Copy link
Sponsor Contributor

cdwfs commented May 8, 2023

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?

@nesbox nesbox added this to To do in dev version 1.2 via automation May 8, 2023
@cdwfs
Copy link
Sponsor Contributor Author

cdwfs commented May 8, 2023

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.

@nesbox
Copy link
Owner

nesbox commented May 14, 2023

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

@cdwfs
Copy link
Sponsor Contributor Author

cdwfs commented May 14, 2023

😬 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?

@KGOrphanides
Copy link

KGOrphanides commented May 23, 2023

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.

@jackygoule
Copy link

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
Copy link

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

@nesbox
Copy link
Owner

nesbox commented Aug 20, 2023

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

@msx80
Copy link
Contributor

msx80 commented Apr 26, 2024

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

@aliceisjustplaying
Copy link
Collaborator

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

@aliceisjustplaying
Copy link
Collaborator

aliceisjustplaying commented May 28, 2024

I've set up a system for unofficial linux/arm64 nightly builds in #2586. See this section of the README for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch: arm64 building devops platform: raspberry For issues affecting TIC80 on Raspbery PI
Projects
Development

No branches or pull requests

6 participants