我正在尝试使用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添加到PATH”,但我已经在PATH中添加了它。还有什么可能导致这个错误?
mingw32-make
并按下回车键会发生什么?这不应该输出'mingw32-make' 不是内部或外部命令,也不是可运行的程序或批处理文件。
相反,它应该输出mingw32-make: *** 没有指定目标并且找不到 makefile。停止。
。 - rubenvbmingw32-make
不在你的 PATH 中,这正是 CMake 告诉你的。请检查该程序是否在你的 PATH 中的bin
目录中。 - rubenvb