I have been using SDL2, installed from my OS’s package manager as described in Installing SDL2 under “Linux/Unix.” I link to SDL2 by passing -l SDL2 to g++, super simple and straightforward.
I want to switch to SDL3 to use the more precise SDL_Delay functions. What keeps throwing me off from switching to SDL3 is that the installation instructions don’t have such a simple build option. The choices listed on the SDL3 installation page require building with CMake, but it does say “SDL is also usable in other environments.”
Is there is a way to use SDL3 while keeping the simple build process? My guess is that, although I can’t get it from my package manager, there must be some way to clone SDL and manually link g++ to it.
I must have misunderstood, then. The impression that I got from the example in Introduction to SDL with CMake is that my program also has to be built with CMake.
After taking a second look, I think I understand what confused me before. I was looking at Introduction to SDL with CMake which describes how to build an SDL program with CMake. What I really needed was in README-Linux which has instructions for installing SDL onto my system to be used by gcc/g++. Thanks for the clarification.