reno@MyComputer:~/tools/cmake-3.12.4$ ./configure
---------------------------------------------
CMake 3.12.4, Copyright 2000-2018 Kitware, Inc. and Contributors
C compiler on this system is: cc
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
Please specify one using environment variable CXX.
The C++ flags are "".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/reno/tools/cmake-3.12.4/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
解决方案:sudo apt-get install g++
本文详细介绍了在使用CMake3.12.4版本进行配置时遇到的错误,即找不到同时支持C++11和指定C++标志的编译器。文章提供了具体的解决方案,建议通过环境变量CXX指定编译器,并推荐安装g++来解决此问题。
387

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



