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 3391 - Cannot find EGL header when using MinGW
Summary: Cannot find EGL header when using MinGW
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.4
Hardware: x86_64 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-13 19:31 UTC by nathan.carlson8
Modified: 2016-07-17 20:24 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 nathan.carlson8 2016-07-13 19:31:20 UTC
Using GCC 6.1 on Windows (MinGW), I get the following error building SDL:

[  5%] Building C object vendor/SDL/CMakeFiles/SDL2.dir/src/render/direct3d/SDL_render_d3d.c.obj
In file included from <...>\vendor\sdl\src\video\sdl_egl_c.h:28:0,
                 from <...>\vendor\sdl\src\video\windows\SDL_windowsopengles.h:29,
                 from <...>\vendor\sdl\src\video\windows\sdl_windowsvideo.h:47,
                 from <...>\vendor\SDL\src\render\direct3d\SDL_render_d3d.c:35:
<...>/vendor/SDL/include/SDL_egl.h:29:21: fatal error: EGL/egl.h: No such file or directory
 #include <EGL/egl.h>
                     ^
compilation terminated.

It looks like Windows doesn't have EGL headers. I also tried using the one written for visual studio in SDL_egl.h, but it fails with a large number of errors.
Comment 1 nathan.carlson8 2016-07-13 20:21:01 UTC
I believe I got it to build by turning the following off:
DIRECTX
RENDER_D3D
VIDEO_OPENGLES

Not optimal, but at least it builds
Comment 2 Philipp Wiesemann 2016-07-17 20:24:11 UTC
There was a maybe related post on the forum some time ago (but no fix): http://forums.libsdl.org/viewtopic.php?t=11642