SDL is failing to build

Little pre-req info first. I restored my PC to factory settings (Windows 11) and am setting it up for development. I’ve installed gcc and g++ with MinGW and have set their paths in my environment variables. I’ve also installed VS Code and Visual Studio Build Tools 2022 for desktop C++. I already have CMake installed. All of these have been confirmed to be working and appear in cmd when I check for versions.

I’ve cloned the git repo to a folder called “sdl” using the command found in SDL3’s wiki. After installation, when I attempt to build using the commands for x64 found in the INSTALL.md file, I get the following error:

I’m not exactly sure what’s going wrong. I was able to get SDL 3 running on Linux just fine. I wouldn’t doubt it’s my lack of expertise. Any info on working toward a solution would be appreciated.

Have you already looked at what is in line 8 of CMakeList.txt?

Or whatever else it could be.
From the folder (…\cmedi\sdl) do another

md build
cd build
cmake ..
make -j20

It works like this for me, at least under Linux.

It tries to use nmake which is part of MSVC not MinGW. Try to set MinGW makefiles generator with -G "MinGW Makefiles"