Sdl2-compat says sdl3 library is too old

vlc video.mp4
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
sdl2-compat 2.32.52: SDL3 library is too old (have 3.2.0, but need at least 3.2.6).
zsh: IOT instruction (core dumped) vlc video.mp4

fix: uninstalled sdl2-compat, installed sdl2

I have moved your post from the Stable Updates thread to a new support topic.

Your system seems to be in a partially updated state, as sdl3 is version 3.2.8 in the Stable branch:

mbn info sdl3 -q | grep -Ev 'Name|Repository|Packager'
Branch         : archlinux
Version        : 3.2.8-1
Build Date     : Thu 06 Mar 2025 10:00:43 
Branch         : unstable
Version        : 3.2.8-1
Build Date     : Thu 06 Mar 2025 10:00:43 
Branch         : testing
Version        : 3.2.8-1
Build Date     : Thu 06 Mar 2025 10:00:43 
Branch         : stable
Version        : 3.2.8-1
Build Date     : Thu 06 Mar 2025 10:00:43 

mbn can be found in the manjaro-check-repos package

Try refreshing your mirrors:

sudo pacman-mirrors --continent

Then run your update:

sudo pacman -Syu

You should have sdl3 installed along with sdl2-compat as sdl2 is no longer in the repos and has been moved to the AUR:

pamac info sdl2
Name                  : sdl2
Version               : 2.32.2-4
Description           : A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)
URL                   : https://www.libsdl.org
Licenses              : zlib
Repository            : AUR
Groups                : --
Depends On            : glibc libxext libxrender libx11 libgl libxcursor hidapi libusb
Optional Dependencies : alsa-lib [Installed]
                        libpulse [Installed]
                        jack [Installed]
                        pipewire [Installed]
                        libdecor [Installed]
Make Dependencies     : alsa-lib dbus mesa libpulse libxrandr libxinerama wayland libxkbcommon wayland-protocols ibus libxss cmake
                        jack ninja pipewire libdecor vulkan-driver vulkan-headers libsamplerate
Check Dependencies    : --
Provides              : sdl2-compat
Replaces              : --
Conflicts With        : sdl2-compat
Maintainer            : HurricanePootis
First Submitted       : Wed 29 Jan 2025 10:06:17
Last Modified         : Fri 14 Mar 2025 14:49:05
Votes                 : 4
Out of Date           : --
1 Like

sudo pacman -Ss sdl3
[sudo] password for nicholasb:
extra/sdl2-compat 2.32.52-1
An SDL2 compatibility layer that uses SDL3 behind the scenes
extra/sdl3 3.2.8-1 [installed: 1:3.2.0-3]
A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 3)
multilib/lib32-sdl2-compat 2.32.52-1
An SDL2 compatibility layer that uses SDL3 behind the scenes - 32-bit
multilib/lib32-sdl3 3.2.8-1 [installed]
A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 3) - 32-bit

Uninstalling sdl3 and relateds. I see sdl 3.2.8 now.

sudo pacman -Ss sdl3
[sudo] password for nicholasb:
extra/sdl2-compat 2.32.52-1 [installed]
An SDL2 compatibility layer that uses SDL3 behind the scenes
extra/sdl3 3.2.8-1 [installed]
A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 3)
multilib/lib32-sdl2-compat 2.32.52-1 [installed]
An SDL2 compatibility layer that uses SDL3 behind the scenes - 32-bit
multilib/lib32-sdl3 3.2.8-1 [installed]
A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 3) - 32-bit

done.

1 Like

That’s your problem. You have version 3.2.0-3 installed, when version 3.2.8-1 is available in the repos. Here’s how that command looks on my system (by the way, you don’t need to use sudo unless installing/removing packages or updating databases):

pacman -Ss sdl3
extra/sdl2-compat 2.32.52-1 [installed]
    An SDL2 compatibility layer that uses SDL3 behind the scenes
extra/sdl3 3.2.8-1 [installed]
    A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 3)

Note: I don’t have the multilib repo active on my system as I don’t use any 32-bit software

Have you done the mirror refresh & update yet? You should then install the correct packages:

sudo pacman -Syu sdl2-compat sdl3

Edit: I see now that in your previous post you have installed the correct versions. I must have been typing my reply while you were typing yours, and as your reply looked almost identical to your previous one, I didn’t realise that it was a new reply. I am now assuming that having the correct sdl3 & sdl2-compat packages has fixed the issue with opening videos in VLC.

1 Like

@nlborlcl

Please observe forum requirements for formatting code and command output. Information is either found or linked to from the following page:

Please edit your previous posts as described.

Regards.


Welcome to the Manjaro community

As a new or infrequent forum user, please take some time to familiarise yourself with Forum requirements, and the many ways to use the forum to your benefit:


Update Announcements

The Update Announcements contain important information and a Known Issues and Solutions section that should generally be checked before posting a request for support.

System Information

Output of this command (formatted according to forum requirements) may be useful for those wishing to help:

inxi --filter --verbosity=8

or the short form:

inxi -zv8

Be prepared to provide more information and outputs from other commands whenever asked.

Required reading
Resources

Regards.