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

Support for Raspberry Pi compiling #70

Open
awisse opened this issue Jul 19, 2023 · 2 comments
Open

Support for Raspberry Pi compiling #70

awisse opened this issue Jul 19, 2023 · 2 comments

Comments

@awisse
Copy link

awisse commented Jul 19, 2023

I am starting to work on a fork in order to allow for compilation of a minimalist version on the Raspberry Pi 3+ which has 1GB of memory. The official version doesn't compile with the official instructions. The Pi gets completely clogged up with many cc1 processes. So there are two options:

  1. Work on cross-compiling on my X84_64 Ubuntu machine.
  2. Look into slowed down compiling for a minimalist version on the Pi.

Any thoughts welcome as to whether this is a stupid idea or whether there are better alternatives. The ultimate objective is to compile a 32-bit version for the Raspberry Pi 2B I found and I want to give to my grandson.

@awisse
Copy link
Author

awisse commented Jul 26, 2023

Status: It builds ok on my RPi 3+ with ninja throttling: ninja -j2 -l5 libresprite. At certain points in the compilation, even two processes of cc1(plus) use too much memory such that the Pi starts swapping (on an SD card). Solution: Kill unnecessary processes on the Pi (ex vncserver) before compiling. Or go with ninja -j1 instead.

There are a few CMake warnings about cmake_minimum_required: Bump CMake version?

HAVE_STDINT_H defined in _real_SDL_config.h and redefined in LibreSprite/build/base/base/config.h. Rename to LS_HAVE_STDINT_H in the appropriate files.

@vladtepesch
Copy link

vladtepesch commented Sep 28, 2024

status 2024: no problems at all while compiling it on a raspbrerry pi 4 (Bookworm based 64bit Pi OS) with the supplied compile on linux instructoins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants