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 3500 - SDL 2.0.5 not compiling under mingw32
Summary: SDL 2.0.5 not compiling under mingw32
Status: RESOLVED DUPLICATE of bug 3482
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.5
Hardware: x86 Windows 10
: P2 blocker
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-24 19:04 UTC by superfury
Modified: 2017-05-24 04:39 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 superfury 2016-11-24 19:04:24 UTC
I can't compile the SDL2 2.0.5 source code from libSDL.org SDL 2.0 source code (version 2.0.5 stable). Every time I try to do this on MinGW32, after running "./configure --prefix=/mingw" and running make, I get the following error:

/bin/sh build-scripts/updaterev.sh
  CC     build/SDL_winmm.lo
src/audio/winmm/SDL_winmm.c: In function 'DetectWaveOutDevs':
src/audio/winmm/SDL_winmm.c:57:33: error: unknown type name 'WAVEOUTCAPS2W'
 DETECT_DEV_IMPL(SDL_FALSE, Out, WAVEOUTCAPS)
                                 ^
src/audio/winmm/SDL_winmm.c:44:5: note: in definition of macro 'DETECT_DEV_IMPL'
     capstyp##2W caps; \
     ^
src/audio/winmm/SDL_winmm.c:48:56: error: request for member 'szPname' in something not a structure or union
             char *name = WIN_LookupAudioDeviceName(caps.szPname,&caps.NameGuid); \
                                                        ^
src/audio/winmm/SDL_winmm.c:57:1: note: in expansion of macro 'DETECT_DEV_IMPL'
 DETECT_DEV_IMPL(SDL_FALSE, Out, WAVEOUTCAPS)
 ^
src/audio/winmm/SDL_winmm.c:48:70: error: request for member 'NameGuid' in something not a structure or union
             char *name = WIN_LookupAudioDeviceName(caps.szPname,&caps.NameGuid); \
                                                                      ^
src/audio/winmm/SDL_winmm.c:57:1: note: in expansion of macro 'DETECT_DEV_IMPL'
 DETECT_DEV_IMPL(SDL_FALSE, Out, WAVEOUTCAPS)
 ^
src/audio/winmm/SDL_winmm.c: In function 'DetectWaveInDevs':
src/audio/winmm/SDL_winmm.c:58:31: error: unknown type name 'WAVEINCAPS2W'
 DETECT_DEV_IMPL(SDL_TRUE, In, WAVEINCAPS)
                               ^
src/audio/winmm/SDL_winmm.c:44:5: note: in definition of macro 'DETECT_DEV_IMPL'
     capstyp##2W caps; \
     ^
src/audio/winmm/SDL_winmm.c:48:56: error: request for member 'szPname' in something not a structure or union
             char *name = WIN_LookupAudioDeviceName(caps.szPname,&caps.NameGuid); \
                                                        ^
src/audio/winmm/SDL_winmm.c:58:1: note: in expansion of macro 'DETECT_DEV_IMPL'
 DETECT_DEV_IMPL(SDL_TRUE, In, WAVEINCAPS)
 ^
src/audio/winmm/SDL_winmm.c:48:70: error: request for member 'NameGuid' in something not a structure or union
             char *name = WIN_LookupAudioDeviceName(caps.szPname,&caps.NameGuid); \
                                                                      ^
src/audio/winmm/SDL_winmm.c:58:1: note: in expansion of macro 'DETECT_DEV_IMPL'
 DETECT_DEV_IMPL(SDL_TRUE, In, WAVEINCAPS)
 ^
make: *** [build/SDL_winmm.lo] Error 1
Comment 1 Ozkan Sezer 2016-11-26 20:15:50 UTC
This looks like a duplicate of #3482 (the issue is with incomplete mingw.org headers.)
Comment 2 Ryan C. Gordon 2017-05-24 04:39:57 UTC
(In reply to Ozkan Sezer from comment #1)
> This looks like a duplicate of #3482 (the issue is with incomplete mingw.org
> headers.)

Yes, and this should be working again in revision control, too!

--ryan.

*** This bug has been marked as a duplicate of bug 3482 ***