Is Ubuntu's libsdl2-dev package missing dependencies or have I made a mistake?

I am trying to compile the transport simulation Simutrans-Extended. I have built it many times on Focal Fossa.

Today I tried to build it on Kubuntu Jammy Jellyfish. The build failed with the following errors from the linker:

/usr/bin/ld: cannot find -ldrm: No such file or directory
/usr/bin/ld: cannot find -lgbm: No such file or directory
/usr/bin/ld: cannot find -ldecor-0: No such file or directory

Installing the libdrm-dev, libgbm-dev, and libdecor-0-dev packages solved that problem. But I wonder whether it might be a packaging bug.

Those libraries are not direct dependencies of Simutrans. However, Ubuntu's sdl2-0-0 package has added dependencies on libgbm1, libdrm2, and libdecor-0-0 (compare Focal and Jammy dependencies). The libsdl2-dev package does not list dependencies on the appropriate development packages.

I notice that SDL's own build guide has listed those packages as dependencies for building SDL2 itself on Focal Fossa since February 2021.

So did my build fail because Ubuntu's libsdl2-dev package is missing dependencies? If so, then I guess I will report that as a bug. But I am a newbie coder so I wondered if there's a more obvious explanation, since it's more likely that I made a mistake than Canonical/Debian package maintainers.

3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like