第一次u安裝使用Cmake時報錯,如下:
CMake Error: CMake was unable to find a build program corresponding to "Unix 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!
原因:未安裝make
解決方案:
ubuntu 18.04系統中輸入命令 $sudo apt-get install make
安裝完成後輸入cmake .命令不再報錯。