CMake错误:CMake找不到与&Quot;MinGW Makefiles&Quot;对应的生成程序 [英] CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles"

查看:233
本文介绍了CMake错误:CMake找不到与&Quot;MinGW Makefiles&Quot;对应的生成程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cmake为C++构建Box2D库。当我运行cmake gui时,我收到错误:

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 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, errors occurred!

像这些人这样的大多数问题的答案都是"将MinGw/bin添加到路径中",但我已经在路径上找到了。导致此错误的其他原因可能是什么?

推荐答案

mingw32-make.exe可以通过相应的复选框使用标准MinGW32安装程序进行安装:

正如Rubenvb指出的那样,你仍然需要确保它进入你的道路。如果通过系统属性编辑环境变量,请务必关闭并重新打开CMake图形用户界面。

如果您更习惯使用make.exe,请安装MSYS并使用MSYS Makefiles作为CMake生成器。您还需要在路径中同时放入mingwinmsys1.0in

这篇关于CMake错误:CMake找不到与&Quot;MinGW Makefiles&Quot;对应的生成程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆