cmake MSYS Makefiles 生成器丢失

标签 cmake msys

我通过 pacman 安装了 cmake 3.2.3。当我尝试从 msys64 shell 中使用它时出现错误:

$ cmake -G "MSYS Makefiles" ..
CMake Error: Could not create named generator MSYS Makefiles

cmake --help 未将其列为可用生成器。

我确实看到/usr/share/cmake-3.2.3/Modules/Platform 中有一个 MSYS.cmake。

我错过了什么?

最佳答案

我认为您需要安装 mingw-w64-i686-cmake (或 64 位版本 mingw-w64 -x86_64-cmake)。

关于cmake MSYS Makefiles 生成器丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37365355/

相关文章:

msys - 如何使用 MSYS 下载文件?

bash - bash vi shell 模式下的 Tab 自动补全

path - 在 MSYS 下使用 Command 在 Windows 上调用 shell 脚本

C# 命令行参数和 ls

c++ - 链接错误 Armadillo C++ Library with LAPACK, BLAS and GFortran undefined reference

python - C 元与 cmake 依赖问题

c++ - 来自文本文件的grep字符串并将其复制到CMake中的目录

cmake - 在 CMake 中指定 CUDA 编译器

cmake - 使用 CMake 编译带有 CUDA 代码的 C++

c++ - 如何建立一个具有cmake文件的c++/c项目?