当前位置: 代码迷 >> 综合 >> cmake编译出错:No CMAKE_CXX_COMPILER could be found.
  详细解决方案

cmake编译出错:No CMAKE_CXX_COMPILER could be found.

热度:12   发布时间:2024-01-26 15:18:26.0

错误类似:

-- The CXX compiler identification is unknown
-- The C compiler identification is GNU 8.3.0
CMake Error at CMakeLists.txt:99 (enable_language):No CMAKE_CXX_COMPILER could be found.Tell CMake where to find the compiler by setting either the environmentvariable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full pathto the compiler, or to the compiler name if it is in the PATH.

解决办法:

sudo apt install -y build-essential

 

  相关解决方案