On 08.12.19 14:03, Hugh McMaster wrote:
After reviewing the four proposals, I too prefer the pkg-config solution to
the others. That said, your proposal using the Debian-specific header is
wonderfully simple.
In the longer term, I'm hoping there will be a push at some point to no
longer install sdl2-config, since that will simplify some of the issues
encountered here. Upstream have made it optional to install sdl2-config in
2.0.10.
On a second though I fear having the include files of libsdl2 and libsdl2-*
in different paths will break some build systems.
A random example I quickly found:
https://sources.debian.org/src/neverball/1.6.0+git20180603-2/Makefile/
It calls "sdl2-config --cflags" and then would fail to find SDL_ttf.h (from
the libsdl2-ttf-dev package) in /usr/include/SDL2.
One option would be to add -I/usr/include/SDL2 to sdl2-config or pkg-config
but I'm not sure if that would cover all cases.
Cheers,
Felix