Compilation fails on linux due to sdl

Sun May 02, 2021 6:57 am

I've tried today to recompile gzdoom to the new commits, but :

...
-- Performing Test SDL2_MIN_VERSION
-- Performing Test SDL2_MIN_VERSION - Failed
CMake Error at src/CMakeLists.txt:189 (message):
Only SDL 2.0.6 or later is supported.
...

And on the end, compilation fails. Btw, i have sdl 2.0.14 and sdl2_mixer at 2.0.4, which one causes the issue?

Re: Compilation fails on linux due to sdl

Sun May 02, 2021 7:31 am

Are you sure about SDL2 version? What's reported by the following command?
Code:
sdl2-config --version --prefix --cflags --libs

BTW, SDL2_mixer isn't used at all.

Re: Compilation fails on linux due to sdl

Sun May 02, 2021 9:00 am

2.0.14
/usr
-I/usr/include/SDL2 -D_REENTRANT
-L/usr/lib -pthread -lSDL2

Re: Compilation fails on linux due to sdl

Sun May 02, 2021 9:10 am

oops

Re: Compilation fails on linux due to sdl

Sun May 02, 2021 9:32 am

The issue is that the sdl check fails to recognize the version, then...

Re: Compilation fails on linux due to sdl

Sun May 02, 2021 2:00 pm

After the last commit i've managed to compile, thanks