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 - /usr/include/SDL2/SDL_syswm.h:77:22: fatal error: directfb.h: No such file or directory
Summary: /usr/include/SDL2/SDL_syswm.h:77:22: fatal error: directfb.h: No such file or...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.1
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-04 01:47 UTC by Julian Ospald
Modified: 2014-04-18 06:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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