Compilation fails on linux due to sdl

Need help running various source ports? Did your computer break? Ask here.

Moderators: GZDoom Developers, LZDoom Developers, UZDoom Developers

Forum rules
Please be as descriptive as possible in your posts (list your hardware and operating system, the version of the source port you are using, any mods you are running and how they're being loaded, etc.)
This will help others to give you a solution!
Post Reply
SaveTheDoomer
Posts: 152
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Compilation fails on linux due to sdl

Post by SaveTheDoomer »

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?
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Compilation fails on linux due to sdl

Post by _mental_ »

Are you sure about SDL2 version? What's reported by the following command?

Code: Select all

sdl2-config --version --prefix --cflags --libs
BTW, SDL2_mixer isn't used at all.
SaveTheDoomer
Posts: 152
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Compilation fails on linux due to sdl

Post by SaveTheDoomer »

2.0.14
/usr
-I/usr/include/SDL2 -D_REENTRANT
-L/usr/lib -pthread -lSDL2
User avatar
Marisa the Magician
Banned User
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Compilation fails on linux due to sdl

Post by Marisa the Magician »

SaveTheDoomer
Posts: 152
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Compilation fails on linux due to sdl

Post by SaveTheDoomer »

The issue is that the sdl check fails to recognize the version, then...
SaveTheDoomer
Posts: 152
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Compilation fails on linux due to sdl

Post by SaveTheDoomer »

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

Return to “Technical Issues”