0

I'm using biicode 3.3 with Miguel's v5 SDL2. https://www.biicode.com/miguel/sdl2

I'm using Windows 7 Mingw32 to compile SDL2 dependencies. But the SDL build falls on it's face when it cant find dxgi.h. I noticed at one point this was a reported problem, because of the caps, but has been fixed now.

I've also installed DirectX 9 SDK, Windows 7 SDK and Windows 8 SDK. How can I tell biicode/cmake where to find the Windows SDK header files when it attempts to build SDL for my project? I noticed the "dxgi.h" is located in the Windows 8 SDK, but biicode or mingw doesn't know it exist. So I'm still running into the

C:\MyProject\bii\deps\miguel\sdl2\src\video\windows\SDL_windowsvideo.c:250:18: fatal error: dxgi.h: No such file or directory
 #include <dxgi.h>
genpfault
  • 51,148
  • 11
  • 85
  • 139
Ajm113
  • 320
  • 1
  • 13
  • Did you add the correct path to cmake's `include_directories()`? – πάντα ῥεῖ Jun 21 '15 at 20:39
  • I think that the last version of biicode SDL has problems with MinGW. Have you tried to use version 4 instead? – drodri Jun 21 '15 at 21:51
  • Yes, but then I get this problem... http://stackoverflow.com/questions/22446008/winapifamily-h-no-such-file-or-directory-when-compiling-sdl-in-codeblocks Which biicodes overwrites the file automatically when its changed... >_> – Ajm113 Jun 21 '15 at 23:25

1 Answers1

0

SDl2 since 2.0.2 do not support mingw32. There is no any advantage of using MinGW32 instead mingw-w64. So probably the best way to solve the sdl2 compilation issue is to upgrade mingw.

At biicode you'll find older versions of sdl2 (2.0.1) that do not make use of dxgi directly.

The Mingw64 works on Windows 32 as in 64

  • Awesome, thanks for your response, I had a good feeling it was something like that. I would think something like this could be corrected in Cmake, but I guest not in this case. – Ajm113 Jun 23 '15 at 20:08