Since update focal, libsdl2 and libsdl2-ttf headers have a different location, causing a compilation error when trying to include SDL2/SDL_ttf.h header :
$ sudo apt install libsdl2-ttf-dev libsdl2-dev
$ echo "#include <SDL2/SDL_ttf.h>" > main.c
$ gcc main.c
In file included from main.c:1:
/usr/include/SDL2/SDL_ttf.h:34:10: fatal error: SDL.h: Aucun fichier ou dossier de ce type
34 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
It seems that SDL_ttf.h header expects to be in the same place that SDL ones, which is not the case :
Since update focal, libsdl2 and libsdl2-ttf headers have a different location, causing a compilation error when trying to include SDL2/SDL_ttf.h header :
$ sudo apt install libsdl2-ttf-dev libsdl2-dev SDL2/SDL_ ttf.h:34: 10: fatal error: SDL.h: Aucun fichier ou dossier de ce type
$ echo "#include <SDL2/SDL_ttf.h>" > main.c
$ gcc main.c
In file included from main.c:1:
/usr/include/
34 | #include "SDL.h"
| ^~~~~~~
compilation terminated.
It seems that SDL_ttf.h header expects to be in the same place that SDL ones, which is not the case :
$ dpkg -L libsdl2-ttf-dev SDL2/SDL_ ttf.h
/.
/usr
/usr/include
/usr/include/SDL2
/usr/include/
...
$ dpkg -L libsdl2-dev sdl2-config x86_64- linux-gnu x86_64- linux-gnu/ SDL2 x86_64- linux-gnu/ SDL2/SDL. h
/.
/usr
/usr/bin
/usr/bin/
/usr/include
/usr/include/
/usr/include/
/usr/include/
...