Closed Sola1991 closed 5 years ago
Hm CMake should have been installed by mingw-w64-i686-cmake
, did you see any related errors when you run pacman? It's also possible that it comes from a different package now; try installing mingw-w64-cmake
or just cmake
to see if it works.
MSYS2 still report the same error once I run the cmake argument.
This what I get after running thees code
$ pacman -Sy mingw-w64-cmake make
:: Synchronizing package databases...
mingw32 is up to date
mingw64 is up to date
msys is up to date
error: target not found: mingw-w64-cmake
warning: make-4.2.1-1 is up to date -- reinstalling
$ pacman --noconfirm --needed -Sy pkg-config make mingw-w64-i686-toolchain mingw-w64-i686-cmake mingw-w64-i686-zlib mingw-w64-i686-SDL2 mingw-w64-i686-SDL2_image mingw-w64-i686-SDL2_mixer
:: Synchronizing package databases...
mingw32 is up to date
mingw64 is up to date
msys is up to date
warning: pkg-config-0.29.2-1 is up to date -- skipping
warning: make-4.2.1-1 is up to date -- skipping
:: There are 17 members in group mingw-w64-i686-toolchain:
:: Repository mingw32
1) mingw-w64-i686-binutils 2) mingw-w64-i686-crt-git 3) mingw-w64-i686-gcc 4) mingw-w64-i686-gcc-ada 5) mingw-w64-i686-gcc-fortran 6) mingw-w64-i686-gcc-libgfortran
7) mingw-w64-i686-gcc-libs 8) mingw-w64-i686-gcc-objc 9) mingw-w64-i686-gdb 10) mingw-w64-i686-headers-git 11) mingw-w64-i686-libmangle-git 12) mingw-w64-i686-libwinpthread-git
13) mingw-w64-i686-make 14) mingw-w64-i686-pkg-config 15) mingw-w64-i686-tools-git 16) mingw-w64-i686-winpthreads-git 17) mingw-w64-i686-winstorecompat-git
Enter a selection (default=all):
warning: mingw-w64-i686-binutils-2.30-5 is up to date -- skipping
warning: mingw-w64-i686-crt-git-7.0.0.5285.7b2baaf8-1 is up to date -- skipping
warning: mingw-w64-i686-gcc-7.4.0-1 is up to date -- skipping
warning: mingw-w64-i686-gcc-ada-7.4.0-1 is up to date -- skipping
warning: mingw-w64-i686-gcc-fortran-7.4.0-1 is up to date -- skipping
warning: mingw-w64-i686-gcc-libgfortran-7.4.0-1 is up to date -- skipping
warning: mingw-w64-i686-gcc-libs-7.4.0-1 is up to date -- skipping
warning: mingw-w64-i686-gcc-objc-7.4.0-1 is up to date -- skipping
warning: mingw-w64-i686-gdb-8.2.1-1 is up to date -- skipping
warning: mingw-w64-i686-headers-git-7.0.0.5285.7b2baaf8-1 is up to date -- skipping
warning: mingw-w64-i686-libmangle-git-7.0.0.5230.69c8fad6-1 is up to date -- skipping
warning: mingw-w64-i686-libwinpthread-git-7.0.0.5273.3e5acf5d-1 is up to date -- skipping
warning: mingw-w64-i686-make-4.2.1-2 is up to date -- skipping
warning: mingw-w64-i686-pkg-config-0.29.2-1 is up to date -- skipping
warning: mingw-w64-i686-tools-git-7.0.0.5272.d66350ea-1 is up to date -- skipping
warning: mingw-w64-i686-winpthreads-git-7.0.0.5273.3e5acf5d-1 is up to date -- skipping
warning: mingw-w64-i686-winstorecompat-git-7.0.0.5230.69c8fad6-1 is up to date -- skipping
warning: mingw-w64-i686-cmake-3.12.4-1 is up to date -- skipping
warning: mingw-w64-i686-zlib-1.2.11-5 is up to date -- skipping
warning: mingw-w64-i686-SDL2-2.0.9-1 is up to date -- skipping
warning: mingw-w64-i686-SDL2_image-2.0.4-1 is up to date -- skipping
warning: mingw-w64-i686-SDL2_mixer-2.0.4-1 is up to date -- skipping
Checked the mingw-w64-i686-cmake
package, it does provide CMake, but seems it's not on your PATH for some reason (and probably the other 32-bit binaries aren't either). Try installing mingw-w64-x86_64-cmake
, it should add CMake and then we'll see if it founds the other parts.
Same issue; I see the pkg has been installed tough. here is the log
$ pacman -Sy mingw-w64-x86_64-cmake
:: Synchronizing package databases...
mingw32 is up to date
mingw64 is up to date
msys is up to date
resolving dependencies...
looking for conflicting packages...
Packages (38) mingw-w64-x86_64-brotli-1.0.7-1 mingw-w64-x86_64-bzip2-1.0.6-6 mingw-w64-x86_64-c-ares-1.15.0-1 mingw-w64-x86_64-ca-certificates-20180409-1 mingw-w64-x86_64-curl-7.63.0-1
mingw-w64-x86_64-expat-2.2.6-1 mingw-w64-x86_64-gcc-libs-8.2.1+20181214-1 mingw-w64-x86_64-gettext-0.19.8.1-7 mingw-w64-x86_64-gmp-6.1.2-1 mingw-w64-x86_64-jansson-2.12-1
mingw-w64-x86_64-jemalloc-5.1.0-3 mingw-w64-x86_64-jsoncpp-1.8.4-3 mingw-w64-x86_64-libarchive-3.3.3-2 mingw-w64-x86_64-libffi-3.2.1-4 mingw-w64-x86_64-libiconv-1.15-3
mingw-w64-x86_64-libidn2-2.0.5-1 mingw-w64-x86_64-libmetalink-0.1.3-3 mingw-w64-x86_64-libpsl-0.20.2-1 mingw-w64-x86_64-libssh2-1.8.0-3 mingw-w64-x86_64-libsystre-1.0.1-4
mingw-w64-x86_64-libtasn1-4.13-1 mingw-w64-x86_64-libtre-git-r128.6fb7206-2 mingw-w64-x86_64-libunistring-0.9.10-1 mingw-w64-x86_64-libuv-1.24.1-1
mingw-w64-x86_64-libwinpthread-git-7.0.0.5273.3e5acf5d-1 mingw-w64-x86_64-lz4-1.8.3-1 mingw-w64-x86_64-lzo2-2.10-1 mingw-w64-x86_64-mpc-1.1.0-1 mingw-w64-x86_64-mpfr-4.0.1-2
mingw-w64-x86_64-nettle-3.4.1-1 mingw-w64-x86_64-nghttp2-1.35.1-1 mingw-w64-x86_64-openssl-1.1.1.a-1 mingw-w64-x86_64-p11-kit-0.23.14-1 mingw-w64-x86_64-rhash-1.3.6-2
mingw-w64-x86_64-xz-5.2.4-1 mingw-w64-x86_64-zlib-1.2.11-5 mingw-w64-x86_64-zstd-1.3.8-1 mingw-w64-x86_64-cmake-3.12.4-1
Total Download Size: 21.79 MiB
Total Installed Size: 156.76 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
mingw-w64-x86_64-gmp-6.1.2-1-any 486.0 KiB 266K/s 00:02 [#####################################################################] 100%
mingw-w64-x86_64-mpfr-4.0.1-2-any 338.3 KiB 512K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-mpc-1.1.0-1-any 78.9 KiB 1924K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-libwinpthread-git-7.0.0.5273.3e5acf5d-1-any 43.3 KiB 1445K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-gcc-libs-8.2.1+20181214-1-any 578.6 KiB 559K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-c-ares-1.15.0-1-any 98.1 KiB 68.0K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-brotli-1.0.7-1-any 329.2 KiB 254K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-expat-2.2.6-1-any 158.7 KiB 630K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-libiconv-1.15-3-any 616.3 KiB 561K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-gettext-0.19.8.1-7-any 3.1 MiB 597K/s 00:05 [#####################################################################] 100%
mingw-w64-x86_64-libunistring-0.9.10-1-any 625.6 KiB 565K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-libidn2-2.0.5-1-any 114.0 KiB 1932K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-libmetalink-0.1.3-3-any 61.1 KiB 1970K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-libpsl-0.20.2-1-any 101.9 KiB 1756K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-libtasn1-4.13-1-any 186.3 KiB 773K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-libffi-3.2.1-4-any 44.9 KiB 1953K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-p11-kit-0.23.14-1-any 296.0 KiB 664K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-ca-certificates-20180409-1-any 356.3 KiB 769K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-bzip2-1.0.6-6-any 81.3 KiB 1891K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-zlib-1.2.11-5-any 177.8 KiB 330K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-openssl-1.1.1.a-1-any 4.7 MiB 598K/s 00:08 [#####################################################################] 100%
mingw-w64-x86_64-libssh2-1.8.0-3-any 232.3 KiB 526K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-jansson-2.12-1-any 65.8 KiB 1530K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-jemalloc-5.1.0-3-any 306.3 KiB 633K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-nghttp2-1.35.1-1-any 201.0 KiB 280K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-curl-7.63.0-1-any 1144.9 KiB 486K/s 00:02 [#####################################################################] 100%
mingw-w64-x86_64-jsoncpp-1.8.4-3-any 284.3 KiB 618K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-lz4-1.8.3-1-any 133.7 KiB 541K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-lzo2-2.10-1-any 101.1 KiB 3.40M/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-libtre-git-r128.6fb7206-2-any 84.2 KiB 75.4K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-libsystre-1.0.1-4-any 24.0 KiB 0.00B/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-nettle-3.4.1-1-any 419.4 KiB 466K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-xz-5.2.4-1-any 297.7 KiB 595K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-zstd-1.3.8-1-any 369.4 KiB 557K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-libarchive-3.3.3-2-any 647.4 KiB 492K/s 00:01 [#####################################################################] 100%
mingw-w64-x86_64-libuv-1.24.1-1-any 187.6 KiB 439K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-rhash-1.3.6-2-any 163.9 KiB 656K/s 00:00 [#####################################################################] 100%
mingw-w64-x86_64-cmake-3.12.4-1-any 4.7 MiB 439K/s 00:11 [#####################################################################] 100%
(38/38) checking keys in keyring [#####################################################################] 100%
(38/38) checking package integrity [#####################################################################] 100%
(38/38) loading package files [#####################################################################] 100%
(38/38) checking for file conflicts [#####################################################################] 100%
(38/38) checking available disk space [#####################################################################] 100%
:: Processing package changes...
( 1/38) installing mingw-w64-x86_64-gmp [#####################################################################] 100%
( 2/38) installing mingw-w64-x86_64-mpfr [#####################################################################] 100%
( 3/38) installing mingw-w64-x86_64-mpc [#####################################################################] 100%
( 4/38) installing mingw-w64-x86_64-libwinpthread-git [#####################################################################] 100%
( 5/38) installing mingw-w64-x86_64-gcc-libs [#####################################################################] 100%
( 6/38) installing mingw-w64-x86_64-c-ares [#####################################################################] 100%
( 7/38) installing mingw-w64-x86_64-brotli [#####################################################################] 100%
( 8/38) installing mingw-w64-x86_64-expat [#####################################################################] 100%
( 9/38) installing mingw-w64-x86_64-libiconv [#####################################################################] 100%
(10/38) installing mingw-w64-x86_64-gettext [#####################################################################] 100%
(11/38) installing mingw-w64-x86_64-libunistring [#####################################################################] 100%
(12/38) installing mingw-w64-x86_64-libidn2 [#####################################################################] 100%
(13/38) installing mingw-w64-x86_64-libmetalink [#####################################################################] 100%
(14/38) installing mingw-w64-x86_64-libpsl [#####################################################################] 100%
(15/38) installing mingw-w64-x86_64-libtasn1 [#####################################################################] 100%
(16/38) installing mingw-w64-x86_64-libffi [#####################################################################] 100%
(17/38) installing mingw-w64-x86_64-p11-kit [#####################################################################] 100%
(18/38) installing mingw-w64-x86_64-ca-certificates [#####################################################################] 100%
(19/38) installing mingw-w64-x86_64-bzip2 [#####################################################################] 100%
(20/38) installing mingw-w64-x86_64-zlib [#####################################################################] 100%
(21/38) installing mingw-w64-x86_64-openssl [#####################################################################] 100%
(22/38) installing mingw-w64-x86_64-libssh2 [#####################################################################] 100%
(23/38) installing mingw-w64-x86_64-jansson [#####################################################################] 100%
(24/38) installing mingw-w64-x86_64-jemalloc [#####################################################################] 100%
(25/38) installing mingw-w64-x86_64-nghttp2 [#####################################################################] 100%
(26/38) installing mingw-w64-x86_64-curl [#####################################################################] 100%
(27/38) installing mingw-w64-x86_64-jsoncpp [#####################################################################] 100%
(28/38) installing mingw-w64-x86_64-lz4 [#####################################################################] 100%
(29/38) installing mingw-w64-x86_64-lzo2 [#####################################################################] 100%
(30/38) installing mingw-w64-x86_64-libtre-git [#####################################################################] 100%
(31/38) installing mingw-w64-x86_64-libsystre [#####################################################################] 100%
(32/38) installing mingw-w64-x86_64-nettle [#####################################################################] 100%
(33/38) installing mingw-w64-x86_64-xz [#####################################################################] 100%
(34/38) installing mingw-w64-x86_64-zstd [#####################################################################] 100%
(35/38) installing mingw-w64-x86_64-libarchive [#####################################################################] 100%
(36/38) installing mingw-w64-x86_64-libuv [#####################################################################] 100%
(37/38) installing mingw-w64-x86_64-rhash [#####################################################################] 100%
(38/38) installing mingw-w64-x86_64-cmake [#####################################################################] 100%
Optional dependencies for mingw-w64-x86_64-cmake
mingw-w64-x86_64-qt5: CMake Qt GUI
Sola@Sola MSYS /c/supermariowar/build
$ cmake .. -G 'Unix Makefiles' -DUSE_SDL2_LIBS=1
bash: cmake: command not found
Ah there's the issue:
Sola@Sola
MSYS /c/supermariowar/build
You should launch the "MSYS2 MinGW 32-bit" command prompt, which adds /mingw32/bin
to your PATH.
Thanks @mmatyas, You are totally correct. Now I'm able to run cmake & make arguments.
Hi. My situation is similar with Sola1991, but after I finish the steps above I had another error. je55i@LAPTOP-JFI2G606 MINGW32 /d/Master/zacros/zacros_2.0/build $ cmake .. -G"MSYS Makefiles" CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage CMake Error: CMAKE_AR was not found, please set to archive program. -- Configuring incomplete, errors occurred!
Hi, have you tried running CMake with -G 'Unix Makefiles'
? I'm not sure "MSYS Makefiles" works.
Hi! Im new at this also and when I put what you said (MSYS2 MinGW 32-bit), it says this
$ MSYS2 MinGW 32-bit -bash: MSYS2: command not found
Hi! MSYS2 MinGW 32-bit
is a program installed by the MSYS installer (or, at least it did 3 years ago). You can access it from the Start menu, and you should see a slightly different command prompt when you launch it.
Just checked, it's called MSYS2 MINGW32
now. You should see MINGW32 in the prompt.
Just an update, I try to run cmake on MSYS2 MINGW32
and it doesn´t work, So I try with MSYS2 MINGW64
and is working
This my 1st time trying to compile a project. I'm following building instructions of MSYS2 Method Building-on-Windows but I'm facing this error. Cmake command is not found
make
should have been downloaded & installed as part of:pacman --noconfirm --needed -Sy pkg-config make mingw-w64-i686-toolchain mingw-w64-i686-cmake mingw-w64-i686-zlib mingw-w64-i686-SDL2 mingw-w64-i686-SDL2_image mingw-w64-i686-SDL2_mixer
I'm using Windows 10x64-bit.