srlabUsask / crhmcode

GNU General Public License v3.0
7 stars 3 forks source link

Unable to compile on windows 11 in msys2 #454

Open zhuzhufeifei opened 2 months ago

zhuzhufeifei commented 2 months ago

aa@bb MINGW64 /d/crhmcode/crhmcode/build $ cmake ../src CMake Error: CMake was unable to find a build program corresponding to "Unix 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, errors occurred!

zhuzhufeifei commented 2 months ago

Following the 4 steps below solved my problem. 1) Don't change the location of the folder when git clone; 2) pacman -S mingw-w64-x86_64-toolchain

3) pacman -Qs make

4) pacman -S mingw-w64-x86_64-cmake Thanks for your contributions!