MYSYS2 MINGW64 Cmake Error

I’ve been trying to modify the game “PSXFunkin” for days by Msys2
Using the tutorial from this link

I followed each step of the tutorial until git was not found, but I managed to solve it

now in the “Compiling mkpsxiso” step is where everything is going wrong

“cmake -B build -DCMAKE_BUILD_TYPE=Release (add -G “MinGW Makefiles” --install-prefix /usr/local/ to the end of this if you’re using MSYS2”

so I went and typed
“cmake -B build -DCMAKE_BUILD_TYPE=Release -G “MinGW Makefiles” --install-prefix /usr/local/”
and then this error appears

Cmake Error Cmake was unable to find a build program corresponding to “MinGW Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, error occurred!

here I have no idea what to do to make it work
please someone give me the answer.

In order to use CMake in MSYS2, you need to be in an MSYS shell with an MSYS-targeting CMake. Windows is different from MSYS and each is different for Cygwin.