Bug#787189: SDL_stretch.h causes compile error

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Sat May 30 09:14:31 UTC 2015


Hello,

2015-05-29 15:54 GMT+01:00 Steve Clark <fawtytoo at gmail.com>:
> Package: libsdl-stretch-dev
> Version: 0.3.1-4
>
> Including the SDL_stretch header file causes the following compile
> error:
> /usr/include/SDL_stretch/SDL_stretch.h:25:23: fatal error: SDL_video.h:
> No such file or directory #include "SDL_video.h"
>
> This is because the SDL stretch header files are in a separate
> directory.
>
> There are 2 possible solutions:
> 1. The SDL stretch header files should be in /usr/include/SDL with the
> other SDL files
>
> 2. Comment the offending line out in SDL_stretch.h
>
> Option 2 is tested as workable because the header file continues with:
> #ifndef  _SDL_video_h
> #include <SDL/SDL_video.h>
> #endif
> ... which means it will still work. But I think option 1 is preferable.
>
> I don't know if this is an upstream bug. But as it stands, it unusable
> unless that line is commented out.

Doesn't it work if you pass "-I/usr/include/SDL" (the first letter is
a capital 'i', not an L) to the compiler?


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Pkg-sdl-maintainers mailing list