I want to build SDL2 from source so I can use a newer version, that prefers dlopen instead of linking to libraries like the package that comes from ubuntu package manager, but also because I want to build it in an older version of Ubuntu so it has better glibc compatibility.
Problem is I also want to produce one artifact that is a debian package of my project, but I need to also have SDL2 built as a debian package that is installed on system to produce the correct rules when packaging my project.
I unpacked the source from SDL2 (2.0.12), used
make to build the sources. I then used
dpkg-buildpackage -us -uc to build the debian package for SDL2. The problem is the resulting package fails to install complaining of an unmet dependency of libudev, which IS already installed in my system. Is there something I am missing when building a debian package from sdl2 souces?