We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2427

Summary: /usr/include/SDL2/SDL_syswm.h:77:22: fatal error: directfb.h: No such file or directory
Product: SDL Reporter: Julian Ospald <hasufell>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: libsdl
Version: 2.0.1   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=503130

Description Julian Ospald 2014-03-04 01:47:07 UTC
# cat > main.c <<EOL
> #include <SDL_syswm.h>
> EOL
# gcc $(sdl2-config --cflags) -c main.c
In file included from main.c:1:0:
/usr/include/SDL2/SDL_syswm.h:77:22: fatal error: directfb.h: No such file or directory
 #include <directfb.h>
                      ^
compilation terminated.


It seems to me that this is a bug in sdl2-config and sdl2.pc which should at least add "-I/usr/include/directfb" in one way or another, because this happens regardless of whether a consumer actually uses directfb.
Comment 1 Julian Ospald 2014-03-04 01:49:20 UTC
Ofc this only happens when sdl2 is compiled with directfb support.
Comment 2 Sam Lantinga 2014-04-18 06:19:10 UTC
This should be fixed, thanks!
https://hg.libsdl.org/SDL/rev/0c32452a6141