SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Sanity check for CMake Configures

Open Ravbug opened this issue 1 year ago • 3 comments

On Linux in particular, it is easy to accidentally configure SDL without video or audio capabilities if the user does not install the necessary dependency libraries. A sanity check that triggers a fatal error during the configure process if at least one video and audio backend is not enabled would help with this. It could be gated by a CMake option that defaults to ON

Creating this issue at the request of @madebr after a discussion on Discord.

Ravbug avatar Aug 28 '24 20:08 Ravbug

One additional flag/mode can be to make sure that ALL supported backends are available. This will help in compiling the most compatible SDL that can be shipped in absence of Steam Runtime and such.

namandixit avatar Aug 30 '24 11:08 namandixit

We added a CMake warning if on Unix and neither X11 or Wayland is enabled in 723c1cc5b36a445e5dd9fc2e58f551705be53089. Do we need anything more on this?

icculus avatar Oct 06 '24 19:10 icculus

I think it would also be good to check that at least one audio backend (alsa, jack, pulseaudio, ...) is enabled.

Ravbug avatar Oct 06 '24 20:10 Ravbug