问题一: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.
解决:
sudo apt-get update
sudo apt-get install -y build-essential
问题二:使用命令:cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
解决方法:删除上一个目录的CMakeCache.txt,删除完之后重新编译