First post, by superfury
I'm trying to get SDL2 running and compiling for UniPCemu 64-bit versions, but I keep having troubles with the setup.
I've downloaded the main MinGW-w64 files archive (mingw-w64-bin_i686-mingw_20111220.zip), MSYS-20111123.zip and SDL2-2.0.5, then extracted the MinGW-w64 files to a folder in the root of my hard disk (Z:\MinGW64). Then I extracted the MSys archive in the same folder. Finally I opened the MSys.bat and executed the command "mount Z:\MinGW /mingw" and closed the window.
Then I extracted the SDL2-2.0.5.zip into the Z:\MinGW64\Z:\MinGW64\msys\home\<Username here>.
I opened the MSys.bat again, cd-ing into the SDL2-2.0.5 directory. I execute "./configure --host=x86_64-w64-mingw32"(without quotes). The configuration succeeds.
Finally, I execute "make", but it finally fails building SDL 2.0.5 with the following error:
/bin/sh build-scripts/updaterev.sh
CC build/SDL_windowsvideo.lo
src/video/windows/SDL_windowsvideo.c:231:18: fatal error: d3d9.h: No such file or directory
compilation terminated.
make: *** [build/SDL_windowsvideo.lo] Error 1
It seems it's missing some "d3d9" header, but shouldn't it be included in the MinGW-w64 package by default?
Btw I have another MinGW(32-bit)+Msys configuration installed at Z:\MinGW for 32-bit compilation(But, since it's a different installation, it shouldn't interfere?).
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io