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 2900

Summary: CMake: Missing DirectX configuration
Product: SDL Reporter: MailMr_S
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 CC: amaranth72, icculus, proppy
Version: HG 2.1Keywords: target-2.0.4
Hardware: x86_64   
OS: Windows 7   
Attachments: Patch to fix

Description MailMr_S 2015-03-09 09:21:00 UTC
Created attachment 2059 [details]
Patch to fix

The template file (include/SDL_config.h.cmake) has only one HAVE_DXGI_H for DirectX header configuration. But in src/core/windows/SDL_directx.h you also need HAVE_DDRAW_H, HAVE_DSOUND_H and HAVE_DINPUT_H.
Comment 1 Johan Euphrosine 2015-03-13 23:54:31 UTC
+1, it also fixed the build on windows 8.1 with DirectX SDK 2010 for me.
Comment 2 Ryan C. Gordon 2015-05-27 01:10:17 UTC
This patch is now https://hg.libsdl.org/SDL/rev/5ab832f7bc38, thanks!

--ryan.