LibreSprite / LibreSprite-proposals

Have a request? Let us know here!
6 stars 1 forks source link

Support for Raspberry Pi compiling #70

Open awisse opened 1 year ago

awisse commented 1 year ago

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 commented 1 year ago

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 commented 1 month ago

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.