Building finishes without any errors. Running it produces a two-second delay (due to the SDL_Delay call) and then the application quits. No window ever shows up. No runtime errors either. Any ideas?
I have a Ryzen 5 7535HS CPU with an integrated Radeon GPU and a dedicated Nvidia RTX 3050 by the way. I tried forcing Pop!_OS to only use the dedicated Nvidia card, but it didn’t help.
It is normal but not for you I guess . vcpkg installs libraries from source AFAIK. SDL will enable features on its own only if you have required dependencies (and it looks like you miss something to build it with x11 support). You should install development dependencies and rebuild your SDL.
I don’t know Pop OS, but can’t you just install the SDL development package (libsdl2-dev probably)? You will get a prebuild with all essentials and dependencies handled.
I installed libsdl2-dev through apt, and interestingly it works that way (compiling directly with g++ without using CMake). I probably did not set up the build system correctly, or there is something going on with the vcpkg version of SDL. I’ll look into it. Still, it’s kinda weird that it didn’t throw any errors, even if it’s due to missing dependencies.
If the dependency for the feature is not found, the feature will simply not be enabled. You still have several video drivers enabled, so SDL will choose the optimal one (offscreen for you). You can guess what offscreen render do.
As for vcpkg you should delete vcpkg’s SDL or rebuild it with x11 dependencies installed.