环境运维

No CMAKE_CXX_COMPILER could be found. 树莓派编译c++

CMake Error at CMakeLists.txt:15 (project):

  No CMAKE_CXX_COMPILER could be found.

 

  Tell CMake where to find the compiler by setting either the environment

  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path

  to the compiler, or to the compiler name if it is in the PATH.

 

 

-- Configuring incomplete, errors occurred!

 

通过安装g++就好

sudo apt install g++

安装完成后,可以顺利cmake了