Summary: | media-libs/libsdl2 headers possibly not correct implemented? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | raimund mathis <raimund.mathis> |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | dominique.c.michel, O01eg, tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
raimund mathis
2017-10-15 20:43:26 UTC
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 |