Bug#1036820: libsdl2-dev include headers not found by cmake since usr merge

Simon McVittie smcv at debian.org
Wed Jul 3 16:08:42 BST 2024


On Wed, 03 Jul 2024 at 16:34:35 +0200, Nicolas Otton wrote:
> I was able to reproduce this bug on a debian bookworm installed recently.
> I have the same issue, cmake, libsdl2-dev and the other dependencies were
> installed through apt, not compiled from source, and CMAKE_CURRENT_LIST_DIR is
> set to /lib/x86_64-linux-gnu/cmake/SDL2 so the cmake of the projects fails.

How were you able to reproduce this? Please explain in more detail.

If you download and unpack the libsdl2 source package, you'll find several
simple test projects in debian/tests/cmake-*/ which are all run by the
test script debian/tests/cmake - it's intended to be run via autopkgtest,
but you can just run it as ./debian/tests/cmake from an unpacked libsdl2
source package. Do those tests pass or fail on your system?

If those tests pass, perhaps you could modify one of them into a
simplified version of whatever project is failing for you?

Or if you are invoking cmake with special options, please try to edit
./debian/tests/cmake so that it uses similar options and reproduces
this error.

    smcv



More information about the Pkg-sdl-maintainers mailing list