Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CMake错误:CMake无法找到与“0”对应的生成程序;MinGW Makefiles“; 我尝试使用CGube来构建C++的Box 2D库。当我运行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!_C++_Cmake_Box2d - Fatal编程技术网

CMake错误:CMake无法找到与“0”对应的生成程序;MinGW Makefiles“; 我尝试使用CGube来构建C++的Box 2D库。当我运行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!

CMake错误:CMake无法找到与“0”对应的生成程序;MinGW Makefiles“; 我尝试使用CGube来构建C++的Box 2D库。当我运行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!,c++,cmake,box2d,C++,Cmake,Box2d,像这些人这样的大多数问题的答案都是“将MinGw/bin添加到路径中”,但我已经在路径中找到了。还有什么可能导致此错误?mingw32 make.exe可以通过相应的复选框与标准mingw32安装程序一起安装: 正如rubenvb指出的,您仍然需要确保它进入您的路径。如果通过系统属性编辑环境变量,请确保关闭并重新打开CMake GUI 如果您更习惯使用make.exe,请安装MSYS并使用MSYS Makefiles作为CMake生成器。您还需要将mingw\bin和msys\1.0\bin放

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

mingw32 make.exe可以通过相应的复选框与标准mingw32安装程序一起安装:

正如rubenvb指出的,您仍然需要确保它进入您的路径。如果通过系统属性编辑环境变量,请确保关闭并重新打开CMake GUI


如果您更习惯使用
make.exe
,请安装MSYS并使用MSYS Makefiles作为CMake生成器。您还需要将
mingw\bin
msys\1.0\bin
放入您的路径中。

我遇到了同样的问题,我将这三个问题添加到了我的系统路径中,错误得到了解决

C:\ProgramFiles\mingw-w64\x86\U 64-7.3.0-posix-seh-rt\U v5-rev0\mingw64\bin

C:\Program Files\CMake\bin


C:\opencv\build\install\x64\mingw\bin

如果键入
mingw32 make
然后按enter键,会发生什么情况?不应输出的
'mingw32-make'未被识别为内部或外部命令、可操作程序或批处理文件。
相反,它应输出
mingw32-make:**未指定目标,也未找到makefile。停止。
它会输出“'mingw32-make'未被识别为内部或外部命令、可操作程序或批处理文件”。我安装的MinGW不正确吗?嗯,至少mingw32 make不在您的路径中,这正是CMake告诉您的。检查该程序是否位于PATH.Nope中的
bin
目录中。谢谢你的帮助。你知道有没有一个地方我可以自己下载这个程序吗?给你: