| Summary: | Cannot find EGL header when using MinGW | ||
|---|---|---|---|
| Product: | SDL | Reporter: | nathan.carlson8 |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | philipp.wiesemann |
| Version: | 2.0.4 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
I believe I got it to build by turning the following off: DIRECTX RENDER_D3D VIDEO_OPENGLES Not optimal, but at least it builds There was a maybe related post on the forum some time ago (but no fix): http://forums.libsdl.org/viewtopic.php?t=11642 |
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.