SDL3, buildroot and RPI

I am currently porting my open source stage timer project from sdl2 to sdl3. One of the projects targets is a minimal raspberry pi image built using buildroot.

Since buildroot doesn’t yet have official sdl3 packages I am trying to do this myself. I have gotten to the point where configure and compilation of the main SDL3 library succeeds, but linking fails. My own cmake experience isn’t too great so I am unsure of how to make it find the needed library.

The package is in here: package/sdl3 · feature/sdl3 · clock-8001 / br2-external · GitLab
The build logs are here: build.log · GitHub

What version of Raspbian are you targeting? It looks like it’s Bullseye or older and you don’t have the vc development libraries installed.

This isn’t raspian, a custom build ramdisk environment with buildroot. I have the libraries in /buildroot-2025.02.9/output/target/usr/lib and on the same environment the stock sdl2 package compiles and links fine with the rpi-userland. So for some unknown reason the sdl3 build process isn’t finding the libraries.

Go ahead and create a bug for tracking:

Thanks!

Looking at the CMakeCache.txt on the build dir the library dir seems to have been detected in there.

Bug: Building SDL3 with buildroot for raspberry pi <4 targets fails on the linking stage · Issue #14749 · libsdl-org/SDL · GitHub