I have found a SDL2 written Pacman Clone at github.com/ebuc99/pacman Ok i have cloned the source, have done a ./configure make and then i recieve the error /usr/include/x86_64-pc-linux-gnu/SDL2/SDL_config.h:33:10: fatal error: SDL_platform.h: no such file or directory #include "SDL_platform.h" if i change in /usr/include/x86_64-pc-linux-gnu/SDL2/SDL_config.h the line #include "SDL_platform.h" to #include "SDL2/SDL_platform.h" all builds fine and after make install the program runs fine
Confirmed, seeing same issue.
Same issue here with SDL 1: In file included from y4mhist.c:27:0: /usr/include/SDL/SDL_gfxPrimitives.h:38:17: fatal error: SDL.h: No such file or directory #include <SDL.h> If I put #include <sdl/SDL.h> in /usr/include/SDL/SDL_gfxPrimitives.h it work.
This is how everyone packages SDL and SDL2. Check other distributions. (In reply to raimund mathis from comment #0) > I have found a SDL2 written Pacman Clone at > > github.com/ebuc99/pacman Your configure.ac should use pkg-config, which is best practise and more likely to work under exotic setups. Otherwise add -I=/usr/include/SDL2 to pacman_CPPFLAGS. I see you added this to pacman_LDFLAGS but it will do nothing here.
(In reply to James Le Cuirot from comment #3) > (In reply to raimund mathis from comment #0) > > I have found a SDL2 written Pacman Clone at > > > > github.com/ebuc99/pacman > Your configure.ac should use pkg-config, which is best practise and more > likely to work under exotic setups. Otherwise add -I=/usr/include/SDL2 to > pacman_CPPFLAGS. I see you added this to pacman_LDFLAGS but it will do > nothing here. Sorry, I misread this and thought you had written it. Since upstream is doing it wrong, you can work around it by doing: CPPFLAGS="-I/usr/include/SDL2" ./configure