Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to build with MinGW-w64 #2168

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Failure to build with MinGW-w64 #2168

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.4
Reported for operating system, platform: Windows (All), x86

Comments on the original bug report:

On 2016-05-18 01:52:12 +0000, Cameron Hall wrote:

SDL2 fails to build using MinGW-w64 and MSYS2. https://msys2.github.io/
Here is a log of the commands I used to attempt building SDL2 from source.

$ ./configure && make
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... C:/msys32/mingw32/i686-w64-mingw32/bin/ld.exe
checking if the linker (C:/msys32/mingw32/i686-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format... func_convert_file_msys_to_w32
checking how to convert i686-pc-mingw32 file names to toolchain format... func_convert_file_msys_to_w32
checking for C:/msys32/mingw32/i686-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (C:/msys32/mingw32/i686-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... C:/msys32/mingw32/i686-w64-mingw32/bin/ld.exe
checking if the linker (C:/msys32/mingw32/i686-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (C:/msys32/mingw32/i686-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (C:/msys32/mingw32/i686-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for windres... windres
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for GCC -MMD -MT option... yes
checking for linker option --no-undefined... yes
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for size_t... yes
checking for M_PI in math.h... yes
checking for working memcmp... yes
checking for working strtod... yes
checking for mprotect... yes
checking for malloc... yes
checking for calloc... yes
checking for realloc... yes
checking for free... yes
checking for getenv... yes
checking for setenv... no
checking for putenv... yes
checking for unsetenv... no
checking for qsort... yes
checking for abs... yes
checking for bcopy... no
checking for memset... yes
checking for memcpy... yes
checking for memmove... yes
checking for strlen... yes
checking for strlcpy... no
checking for strlcat... no
checking for strdup... yes
checking for _strrev... yes
checking for _strupr... yes
checking for _strlwr... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking for itoa... yes
checking for _ltoa... yes
checking for _uitoa... no
checking for _ultoa... yes
checking for strtol... yes
checking for strtoul... yes
checking for _i64toa... yes
checking for _ui64toa... yes
checking for strtoll... yes
checking for strtoull... yes
checking for atoi... yes
checking for atof... yes
checking for strcmp... yes
checking for strncmp... yes
checking for _stricmp... yes
checking for strcasecmp... yes
checking for _strnicmp... yes
checking for strncasecmp... yes
checking for vsscanf... yes
checking for vsnprintf... yes
checking for fseeko... yes
checking for fseeko64... yes
checking for sigaction... no
checking for setjmp... no
checking for nanosleep... yes
checking for sysconf... no
checking for sysctlbyname... no
checking for pow in -lm... yes
checking for atan... yes
checking for atan2... yes
checking for acos... yes
checking for asin... yes
checking for ceil... yes
checking for copysign... yes
checking for cos... yes
checking for cosf... yes
checking for fabs... yes
checking for floor... yes
checking for log... yes
checking for pow... yes
checking for scalbn... yes
checking for sin... yes
checking for sinf... yes
checking for sqrt... yes
checking for sqrtf... yes
checking for tan... yes
checking for tanf... yes
checking for iconv_open in -liconv... no
checking for iconv... no
checking for struct sigaction.sa_sigaction... no
checking for GCC builtin atomic operations... yes
checking for GCC -mmmx option... yes
checking for GCC -m3dnow option... yes
checking for GCC -msse option... yes
checking for Altivec with GCC altivec.h and -maltivec option... no
checking for Altivec with GCC -maltivec option... no
checking for Altivec with GCC altivec.h and -faltivec option... no
checking for Altivec with GCC -faltivec option... no
checking Windows compiler... yes
checking Windows CE... no
checking for GCC -mpreferred-stack-boundary option... yes
checking for EGL support... no
checking for OpenGL ES v2 headers... no
checking d3d9.h usability... yes
checking d3d9.h presence... yes
checking for d3d9.h... yes
checking d3d11_1.h usability... yes
checking d3d11_1.h presence... yes
checking for d3d11_1.h... yes
checking ddraw.h usability... yes
checking ddraw.h presence... yes
checking for ddraw.h... yes
checking dsound.h usability... yes
checking dsound.h presence... yes
checking for dsound.h... yes
checking dinput.h usability... yes
checking dinput.h presence... yes
checking for dinput.h... yes
checking dxgi.h usability... yes
checking dxgi.h presence... yes
checking for dxgi.h... yes
checking xaudio2.h usability... no
checking xaudio2.h presence... no
checking for xaudio2.h... no
checking xinput.h usability... yes
checking xinput.h presence... yes
checking for xinput.h... yes
checking for main in -lmingw32... yes
checking for GCC -Wall option... yes
checking for necessary GCC -Wno-multichar option... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sdl2-config
config.status: creating sdl2-config.cmake
config.status: creating SDL2.spec
config.status: creating sdl2.pc
config.status: creating include/SDL_config.h
config.status: include/SDL_config.h is unchanged
config.status: executing libtool commands
config.status: executing sdl2_config commands
config.status: executing summary commands
SDL2 Configure Summary:
Building Shared Libraries
Building Static Libraries
Enabled modules : atomic audio video render events joystick haptic power filesystem threads timers file loadso cpuinfo assembly
Assembly Math : mmx 3dnow sse
Audio drivers : disk dummy directx
Video drivers : dummy opengl directx
Input drivers :
Using libudev : NO
Using dbus : NO
Using ibus : NO
/bin/sh build-scripts/updaterev.sh
CC build/SDL_audiotypecvt.lo
CC build/SDL_mixer.lo
CC build/SDL_wave.lo
CC build/SDL_cpuinfo.lo
CC build/SDL_dynapi.lo
CC build/SDL_clipboardevents.lo
CC build/SDL_dropevents.lo
CC build/SDL_events.lo
CC build/SDL_gesture.lo
CC build/SDL_keyboard.lo
CC build/SDL_mouse.lo
CC build/SDL_quit.lo
CC build/SDL_touch.lo
CC build/SDL_windowevents.lo
CC build/SDL_rwops.lo
CC build/SDL_haptic.lo
CC build/SDL_gamecontroller.lo
CC build/SDL_joystick.lo
CC build/e_atan2.lo
CC build/e_log.lo
CC build/e_pow.lo
CC build/e_rem_pio2.lo
CC build/e_sqrt.lo
CC build/k_cos.lo
CC build/k_rem_pio2.lo
CC build/k_sin.lo
CC build/k_tan.lo
CC build/s_atan.lo
CC build/s_copysign.lo
CC build/s_cos.lo
CC build/s_fabs.lo
CC build/s_floor.lo
CC build/s_scalbn.lo
CC build/s_sin.lo
CC build/s_tan.lo
CC build/SDL_power.lo
CC build/SDL_d3dmath.lo
CC build/SDL_render.lo
CC build/SDL_yuv_mmx.lo
CC build/SDL_yuv_sw.lo
CC build/SDL_render_d3d.lo
CC build/SDL_render_d3d11.lo
src/render/direct3d11/SDL_render_d3d11.c:140:19: error: static declaration of 'IID_IDXGIFactory2' follows non-static declaration
static const GUID IID_IDXGIFactory2 = { 0x50c83a1c, 0xe072, 0x4c48, { 0x87, 0xb0, 0x36, 0x30, 0xfa, 0x36, 0xa6, 0xd0 } };
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/combaseapi.h:156:0,
from C:/msys32/mingw32/i686-w64-mingw32/include/objbase.h:14,
from C:/msys32/mingw32/i686-w64-mingw32/include/ole2.h:17,
from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:12,
from src/render/direct3d11/SDL_render_d3d11.c:34:
C:/msys32/mingw32/i686-w64-mingw32/include/dxgi1_2.h:1196:1: note: previous declaration of 'IID_IDXGIFactory2' was here
DEFINE_GUID(IID_IDXGIFactory2, 0x50c83a1c, 0xe072, 0x4c48, 0x87,0xb0, 0x36,0x30,0xfa,0x36,0xa6,0xd0);
^
src/render/direct3d11/SDL_render_d3d11.c:141:19: error: static declaration of 'IID_IDXGIDevice1' follows non-static declaration
static const GUID IID_IDXGIDevice1 = { 0x77db970f, 0x6276, 0x48ba, { 0xba, 0x28, 0x07, 0x01, 0x43, 0xb4, 0x39, 0x2c } };
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/combaseapi.h:156:0,
from C:/msys32/mingw32/i686-w64-mingw32/include/objbase.h:14,
from C:/msys32/mingw32/i686-w64-mingw32/include/ole2.h:17,
from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:12,
from src/render/direct3d11/SDL_render_d3d11.c:34:
C:/msys32/mingw32/i686-w64-mingw32/include/dxgi.h:2692:1: note: previous declaration of 'IID_IDXGIDevice1' was here
DEFINE_GUID(IID_IDXGIDevice1, 0x77db970f, 0x6276, 0x48ba, 0xba,0x28, 0x07,0x01,0x43,0xb4,0x39,0x2c);
^
src/render/direct3d11/SDL_render_d3d11.c:143:19: error: static declaration of 'IID_ID3D11Texture2D' follows non-static declaration
static const GUID IID_ID3D11Texture2D = { 0x6f15aaf2, 0xd208, 0x4e89, { 0x9a, 0xb4, 0x48, 0x95, 0x35, 0xd3, 0x4f, 0x9c } };
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/combaseapi.h:156:0,
from C:/msys32/mingw32/i686-w64-mingw32/include/objbase.h:14,
from C:/msys32/mingw32/i686-w64-mingw32/include/ole2.h:17,
from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:12,
from src/render/direct3d11/SDL_render_d3d11.c:34:
C:/msys32/mingw32/i686-w64-mingw32/include/d3d11.h:4781:1: note: previous declaration of 'IID_ID3D11Texture2D' was here
DEFINE_GUID(IID_ID3D11Texture2D, 0x6f15aaf2, 0xd208, 0x4e89, 0x9a,0xb4, 0x48,0x95,0x35,0xd3,0x4f,0x9c);
^
src/render/direct3d11/SDL_render_d3d11.c:144:19: error: static declaration of 'IID_ID3D11Device1' follows non-static declaration
static const GUID IID_ID3D11Device1 = { 0xa04bfb29, 0x08ef, 0x43d6, { 0xa4, 0x9c, 0xa9, 0xbd, 0xbd, 0xcb, 0xe6, 0x86 } };
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/combaseapi.h:156:0,
from C:/msys32/mingw32/i686-w64-mingw32/include/objbase.h:14,
from C:/msys32/mingw32/i686-w64-mingw32/include/ole2.h:17,
from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:12,
from src/render/direct3d11/SDL_render_d3d11.c:34:
C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:2356:1: note: previous declaration of 'IID_ID3D11Device1' was here
DEFINE_GUID(IID_ID3D11Device1, 0xa04bfb29, 0x08ef, 0x43d6, 0xa4,0x9c, 0xa9,0xbd,0xbd,0xcb,0xe6,0x86);
^
src/render/direct3d11/SDL_render_d3d11.c:145:19: error: static declaration of 'IID_ID3D11DeviceContext1' follows non-static declaration
static const GUID IID_ID3D11DeviceContext1 = { 0xbb2c6faa, 0xb5fb, 0x4082, { 0x8e, 0x6b, 0x38, 0x8b, 0x8c, 0xfa, 0x90, 0xe1 } };
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/combaseapi.h:156:0,
from C:/msys32/mingw32/i686-w64-mingw32/include/objbase.h:14,
from C:/msys32/mingw32/i686-w64-mingw32/include/ole2.h:17,
from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:12,
from src/render/direct3d11/SDL_render_d3d11.c:34:
C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:358:1: note: previous declaration of 'IID_ID3D11DeviceContext1' was here
DEFINE_GUID(IID_ID3D11DeviceContext1, 0xbb2c6faa, 0xb5fb, 0x4082, 0x8e,0x6b, 0x38,0x8b,0x8c,0xfa,0x90,0xe1);
^
src/render/direct3d11/SDL_render_d3d11.c:146:19: error: static declaration of 'IID_ID3D11Debug' follows non-static declaration
static const GUID IID_ID3D11Debug = { 0x79cf2233, 0x7536, 0x4948, { 0x9d, 0x36, 0x1e, 0x46, 0x92, 0xdc, 0x57, 0x60 } };
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/combaseapi.h:156:0,
from C:/msys32/mingw32/i686-w64-mingw32/include/objbase.h:14,
from C:/msys32/mingw32/i686-w64-mingw32/include/ole2.h:17,
from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:12,
from src/render/direct3d11/SDL_render_d3d11.c:34:
C:/msys32/mingw32/i686-w64-mingw32/include/d3d11sdklayers.h:1228:1: note: previous declaration of 'IID_ID3D11Debug' was here
DEFINE_GUID(IID_ID3D11Debug, 0x79cf2233, 0x7536, 0x4948, 0x9d,0x36, 0x1e,0x46,0x92,0xdc,0x57,0x60);
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_CreateBlendMode':
src/render/direct3d11/SDL_render_d3d11.c:964:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateBlendState", result);
^
src/render/direct3d11/SDL_render_d3d11.c:964:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateBlendState", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_CreateDeviceResources':
src/render/direct3d11/SDL_render_d3d11.c:1044:56: warning: passing argument 2 of 'CreateDXGIFactoryFunc' from incompatible pointer type [-Wincompatible-pointer-types]
result = CreateDXGIFactoryFunc(&IID_IDXGIFactory2, &data->dxgiFactory);
^
src/render/direct3d11/SDL_render_d3d11.c:1044:56: note: expected 'void **' but argument is of type 'IDXGIFactory2 ** {aka struct IDXGIFactory2 **}'
src/render/direct3d11/SDL_render_d3d11.c:1046:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", CreateDXGIFactory", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1046:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", CreateDXGIFactory", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1053:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", D3D11CreateDevice", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1053:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", D3D11CreateDevice", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1082:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", D3D11CreateDevice", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1082:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", D3D11CreateDevice", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:56:0,
from src/render/direct3d11/SDL_render_d3d11.c:34:
src/render/direct3d11/SDL_render_d3d11.c:1086:73: warning: passing argument 3 of 'd3dDevice->lpVtbl->QueryInterface' from incompatible pointer type [-Wincompatible-pointer-types]
result = ID3D11Device_QueryInterface(d3dDevice, &IID_ID3D11Device1, &data->d3dDevice);
^
src/render/direct3d11/SDL_render_d3d11.c:1086:73: note: expected 'void **' but argument is of type 'ID3D11Device1 ** {aka struct ID3D11Device1 **}'
src/render/direct3d11/SDL_render_d3d11.c:1088:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device to ID3D11Device1", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1088:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device to ID3D11Device1", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:56:0,
from src/render/direct3d11/SDL_render_d3d11.c:34:
src/render/direct3d11/SDL_render_d3d11.c:1092:88: warning: passing argument 3 of 'd3dContext->lpVtbl->QueryInterface' from incompatible pointer type [-Wincompatible-pointer-types]
result = ID3D11DeviceContext_QueryInterface(d3dContext, &IID_ID3D11DeviceContext1, &data->d3dContext);
^
src/render/direct3d11/SDL_render_d3d11.c:1092:88: note: expected 'void **' but argument is of type 'ID3D11DeviceContext1 ** {aka struct ID3D11DeviceContext1 **}'
src/render/direct3d11/SDL_render_d3d11.c:1094:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext to ID3D11DeviceContext1", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1094:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext to ID3D11DeviceContext1", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:56:0,
from src/render/direct3d11/SDL_render_d3d11.c:34:
src/render/direct3d11/SDL_render_d3d11.c:1098:72: warning: passing argument 3 of 'd3dDevice->lpVtbl->QueryInterface' from incompatible pointer type [-Wincompatible-pointer-types]
result = ID3D11Device_QueryInterface(d3dDevice, &IID_IDXGIDevice1, &dxgiDevice);
^
src/render/direct3d11/SDL_render_d3d11.c:1098:72: note: expected 'void **' but argument is of type 'IDXGIDevice1 ** {aka struct IDXGIDevice1 **}'
src/render/direct3d11/SDL_render_d3d11.c:1100:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device to IDXGIDevice1", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1100:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device to IDXGIDevice1", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1109:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGIDevice1::SetMaximumFrameLatency", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1109:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGIDevice1::SetMaximumFrameLatency", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1138:39: error: expected ')' before string constant
SDL_SetError(FUNCTION ", Unexpected feature level: %d", data->featureLevel);
^
src/render/direct3d11/SDL_render_d3d11.c:1151:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateVertexShader", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1151:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateVertexShader", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1164:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateInputLayout", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1164:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateInputLayout", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1176:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreatePixelShader ['color' shader]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1176:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreatePixelShader ['color' shader]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1187:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreatePixelShader ['textures' shader]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1187:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreatePixelShader ['textures' shader]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1198:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreatePixelShader ['yuv' shader]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1198:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreatePixelShader ['yuv' shader]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1213:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateBuffer [vertex shader constants]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1213:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateBuffer [vertex shader constants]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1233:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateSamplerState [nearest-pixel filter]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1233:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateSamplerState [nearest-pixel filter]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1243:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateSamplerState [linear filter]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1243:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateSamplerState [linear filter]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1261:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateRasterizerState [main rasterizer]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1261:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateRasterizerState [main rasterizer]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1268:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateRasterizerState [clipped rasterizer]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1268:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateRasterizerState [clipped rasterizer]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:979:19: warning: unused variable 'd3dAdapter' [-Wunused-variable]
IDXGIAdapter *d3dAdapter = NULL;
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_GetViewportAlignedD3DRect':
src/render/direct3d11/SDL_render_d3d11.c:1361:23: warning: unused variable 'data' [-Wunused-variable]
D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata;
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_CreateSwapChain':
src/render/direct3d11/SDL_render_d3d11.c:1447:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGIFactory2::CreateSwapChainForCoreWindow", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1447:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGIFactory2::CreateSwapChainForCoreWindow", result);
^
In file included from src/renderMakefile:399: recipe for target 'build/SDL_render_d3d11.lo' failed
make: *** [build/SDL_render_d3d11.lo] Error 1

/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1457:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGIFactory2::CreateSwapChainForComposition", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1457:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGIFactory2::CreateSwapChainForComposition", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1468:35: error: expected ')' before string constant
SDL_SetError(FUNCTION ", XAML support is not yet available for Windows Phone");
^
src/render/direct3d11/SDL_render_d3d11.c:1487:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGIFactory2::CreateSwapChainForHwnd", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1487:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
$ WIN_SetErrorFromHRESULT(FUNCTION ", IDXGIFactory2::CreateSwapChainForHwnd", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_CreateWindowSizeDependentResources':
src/render/direct3d11/SDL_render_d3d11.c:1548:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain::ResizeBuffers", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1548:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain::ResizeBuffers", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1579:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain1::SetRotation", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1579:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain1::SetRotation", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/dxgi1_2.h:57:0,
from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:54,
from src/render/direct3d11/SDL_render_d3d11.c:34:
src/render/direct3d11/SDL_render_d3d11.c:1588:9: warning: passing argument 4 of 'data->swapChain->lpVtbl->GetBuffer' from incompatible pointer type [-Wincompatible-pointer-types]
&backBuffer
^
src/render/direct3d11/SDL_render_d3d11.c:1588:9: note: expected 'void **' but argument is of type 'ID3D11Texture2D ** {aka struct ID3D11Texture2D **}'
src/render/direct3d11/SDL_render_d3d11.c:1591:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain::GetBuffer [back-buffer]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1591:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain::GetBuffer [back-buffer]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1602:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device::CreateRenderTargetView", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1602:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device::CreateRenderTargetView", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_UpdateForWindowSizeChange':
src/render/direct3d11/SDL_render_d3d11.c:1621:23: warning: unused variable 'data' [-Wunused-variable]
D3D11_RenderData *data = (D3D11_RenderData *)renderer->driverdata;
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_HandleDeviceLost':
src/render/direct3d11/SDL_render_d3d11.c:1628:23: warning: unused variable 'data' [-Wunused-variable]
D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata;
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_CreateTexture':
src/render/direct3d11/SDL_render_d3d11.c:1705:23: warning: comparison between 'DXGI_FORMAT {aka enum DXGI_FORMAT}' and 'enum ' [-Wenum-compare]
if (textureFormat == SDL_PIXELFORMAT_UNKNOWN) {
^
src/render/direct3d11/SDL_render_d3d11.c:1750:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1750:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1768:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1768:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1779:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1779:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1795:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION "ID3D11Device1::CreateShaderResourceView", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1795:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION "ID3D11Device1::CreateShaderResourceView", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1807:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION "ID3D11Device1::CreateShaderResourceView", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1807:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION "ID3D11Device1::CreateShaderResourceView", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1817:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION "ID3D11Device1::CreateShaderResourceView", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1817:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION "ID3D11Device1::CreateShaderResourceView", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1834:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateRenderTargetView", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1834:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateRenderTargetView", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_UpdateTextureInternal':
src/render/direct3d11/SDL_render_d3d11.c:1890:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D [create staging texture]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1890:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D [create staging texture]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:1903:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext1::Map [map staging texture]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:1903:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext1::Map [map staging texture]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_LockTexture':
src/render/direct3d11/SDL_render_d3d11.c:2065:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D [create staging texture]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:2065:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D [create staging texture]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:2078:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext1::Map [map staging texture]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:2078:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext1::Map [map staging texture]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_UpdateVertexBuffer':
src/render/direct3d11/SDL_render_d3d11.c:2362:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext1::Map [vertex buffer]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:2362:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext1::Map [vertex buffer]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:2386:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateBuffer [vertex buffer]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:2386:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateBuffer [vertex buffer]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
In file included from C:/msys32/mingw32/i686-w64-mingw32/include/dxgi1_2.h:57:0,
from C:/msys32/mingw32/i686-w64-mingw32/include/d3d11_1.h:54,
from src/render/direct3d11/SDL_render_d3d11.c:34:
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_RenderReadPixels':
src/render/direct3d11/SDL_render_d3d11.c:2853:9: warning: passing argument 4 of 'data->swapChain->lpVtbl->GetBuffer' from incompatible pointer type [-Wincompatible-pointer-types]
&backBuffer
^
src/render/direct3d11/SDL_render_d3d11.c:2853:9: note: expected 'void **' but argument is of type 'ID3D11Texture2D ** {aka struct ID3D11Texture2D **}'
src/render/direct3d11/SDL_render_d3d11.c:2856:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain1::GetBuffer [get back buffer]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:2856:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain1::GetBuffer [get back buffer]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:2873:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D [create staging texture]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:2873:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11Device1::CreateTexture2D [create staging texture]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:2905:46: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext1::Map [map staging texture]", result);
^
src/render/direct3d11/SDL_render_d3d11.c:2905:9: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", ID3D11DeviceContext1::Map [map staging texture]", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^
src/render/direct3d11/SDL_render_d3d11.c:2924:71: error: expected ')' before string constant
SDL_snprintf(errorMessage, sizeof(errorMessage), FUNCTION ", Convert Pixels failed: %s", SDL_GetError());
^
src/render/direct3d11/SDL_render_d3d11.c: In function 'D3D11_RenderPresent':
src/render/direct3d11/SDL_render_d3d11.c:2994:50: error: expected ')' before string constant
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain::Present", result);
^
src/render/direct3d11/SDL_render_d3d11.c:2994:13: error: too few arguments to function 'WIN_SetErrorFromHRESULT'
WIN_SetErrorFromHRESULT(FUNCTION ", IDXGISwapChain::Present", result);
^
In file included from src/render/direct3d11/SDL_render_d3d11.c:26:0:
src/render/direct3d11/../../core/windows/SDL_windows.h:50:12: note: declared here
extern int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr);
^

On 2016-05-20 21:00:30 +0000, Philipp Wiesemann wrote:

A similar problem was mentioned on the mailing list in January 2016:
http://forums.libsdl.org/viewtopic.php?p=49592# 49592

On 2016-06-22 11:15:41 +0000, Kai Sterker wrote:

There are already patches available from mingw64 that fix the issue

https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-SDL2

With those applied, I could compile SDL2 without problems. But of course, it would be preferable if SDL built cleanly from source.

On 2016-06-22 16:28:29 +0000, Cameron Hall wrote:

Thanks for posting that link. I didn't know someone had already made patches for this.

I agree. Besides Visual Studio, MinGW-w64 is pretty much THE way of building software on Windows, so I think it should be fairly important to get this to compile on MinGW-w64.

On 2016-06-22 17:01:51 +0000, Kai Sterker wrote:

Just in case this might also help: SDL2 (and numerous other packages) are available via the MSYS2 package manager. That's where those patches originate (so they'll fix the problem for mingw64, but likely break builds with MSVC).

Therefore, if SDL 2.0.4 is good enough for you, all that is required to install is
pacman -S mingw-w64-x86_64-SDL2

Btw, "pacman -Ss mingw-w64-x86" lists all available packages.

If you're like me however, and want or need to have the latest and greatest, then those patches are the way to go.

On 2016-10-01 17:28:23 +0000, Sam Lantinga wrote:

Fixed, thanks!
https://hg.libsdl.org/SDL/rev/6cf7d55773b3

On 2016-10-01 17:29:53 +0000, Sam Lantinga wrote:

*** Bug 3399 has been marked as a duplicate of this bug. ***

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant