第一次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 .命令不再报错。
本文解决初次使用CMake时遇到的配置错误,如找不到Unix Makefiles构建工具、CMAKE_C_COMPILER和CMAKE_CXX_COMPILER未设置等问题。在Ubuntu 18.04中,通过安装make解决了上述问题。
7816

被折叠的 条评论
为什么被折叠?



