# MYSYS2 MINGW64 Cmake Error

**URL:** https://discourse.cmake.org/t/mysys2-mingw64-cmake-error/8732
**Category:** Usage
**Created:** [August 13, 2023, 11:18pm UTC](https://discourse.cmake.org/t/mysys2-mingw64-cmake-error/8732 "2023-08-13T23:18:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LucWuz](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/l/f04885/32.png) [@LucWuz](https://discourse.cmake.org/u/LucWuz)
#### Post date: [August 13, 2023, 11:18pm UTC](https://discourse.cmake.org/t/mysys2-mingw64-cmake-error/8732/1 "2023-08-13T23:18:46Z")

</div>

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

> <https://github.com/cuckydev/PSXFunkin/blob/master/COMPILE.md>

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.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [August 14, 2023, 1:02am UTC](https://discourse.cmake.org/t/mysys2-mingw64-cmake-error/8732/2 "2023-08-14T01:02:39Z")

</div>

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.
