Compiling on the Raspberry Pi 5 (Pi OS Bookworm) - mickelson/attract GitHub Wiki
Commands to install the necessary dependencies, clone the attract-mode development repository, and build and install on Raspberry Pi 5 & Pi OS Bookworm:
# Update Bookworm
sudo apt-get update sudo apt-get upgrade
# Install the Attract-Mode dependencies
sudo apt-get install build-essential pkg-config git libfontconfig1-dev libopenal-dev libsfml-dev libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libswresample-dev libjpeg-dev libglu1-mesa-dev libxrandr-dev
# Create a build environment
cd ~; mkdir develop
# Download and build Attract-Mode
cd ~/develop
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
make -j4
sudo make install
If all those steps worked, then it should be ready to go!