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 directoryInstalling 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