0
我正在嘗試使用cmake爲C++構建Box2D庫。當我運行cmake GUI我得到的錯誤:CMake錯誤:CMake無法找到對應於「MinGW Makefiles」的編譯程序
像這些人一樣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:***沒有指定目標,也沒有找到生成的文件。 Stop.' – rubenvb
它輸出「'mingw32-make'不被識別爲內部或外部命令,可操作程序或批處理文件」。我安裝了MinGW不正確嗎? – Starfruit
那麼,至少'mingw32-make'不在你的PATH中,這正是CMake告訴你的。檢查該程序是否在PATH中的'bin'目錄中。 – rubenvb