When MinGW came out, it was pretty good considering it was one of the few (if not the only) free Windows compiler available. It's just that over time it started to really lag behind with improvements and API updates.drfrag wrote:I've used MinGW and DJGPP before that and they worked fine then. Also ZDoom LE is built with tdm-gcc and works 100%. Have you ever tried to build ZDoom with MinGW-w64? I know Chocolate Doom builds with it.
I haven't tried to build ZDoom with MinGW-w64, no. That's mainly because I use Linux so I don't need to, but also cross-compiling ZDoom isn't that straight forward. Typically, cross-compiling with CMake means you specify a toolchain file that sets up the desired compiler tools and target environment, and the build script detects the target environment with the given host tools. However, ZDoom's build script expects to be able to generate and run executables as part of the build process, which it obviously can't do if the build target and host are different. The way ZDoom tries to work around this is requiring a host build first, then tell a cross-compile build to use the host build's executables, and I never really bothered to look too deep into trying that (FWIW, the way I handle a similar issue with OpenAL Soft is to make the build script launch a second cmake process without any custom toolchain to build a self-contained sub-project, generating any native executables that need to run on the host system; the main build can then run those native executables just fine).