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 2521 - Vanilla MinGW can't compile SDL due to missing dxgi.h
Summary: Vanilla MinGW can't compile SDL due to missing dxgi.h
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: x86 Windows (All)
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 22:52 UTC by bennett
Modified: 2014-05-06 04:41 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bennett 2014-05-04 22:52:37 UTC
Since 2.01 you need minGW-w64 to compile SDL on windows, because the dxgi.h that is included in sdl_windowsvideo.c isn't included in regular minGW.org minGW. Substituting the DXGI.h from the DirectX SDK doesn't solve the problem.

If the answer is 'you need minGW-w64 to compile SDL 2.01+' which I hope it isn't for various technical reasons, then the configure script should probably tell you so. Either way, this is a bug.
Comment 1 Ryan C. Gordon 2014-05-06 04:41:48 UTC
This _should_ now be fixed in revision control (I misspoke on Twitter earlier today: we don't have MingW32 on the buildbots, just MingW64 generating 32-bit code)...naturally, without access to dxgi.h, SDL will have to report failure from SDL_DXGIGetOutputInfo(), but that's only important if you're doing Direct3D 10 or 11 stuff.

Resolving this bug, but please let me know if this gives you any further problems, as I don't have a Mingw32 install to verify this fix.

--ryan.