查看 cmake、gcc、g++版本 | ccmake 安装和理解 | make clean 的使用
【摘要】
本博文做一个简单的知识点汇总
查看 cmake 版本
yum remove cmake
yum install cmake
或者
pip install cmake
cma...
本博文做一个简单的知识点汇总
- 查看 cmake 版本
yum remove cmake
yum install cmake
或者
pip install cmake
cmake -version
# 输出如下
cmake version 3.20.0-rc2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
- cmake 版本升级(手动安装最新版 https://cmake.org/download/)
# 下载解压
tar zxvf cmake-3.20.0-rc2-linux-x86_64.tar.gz
cd cmake-3.20.0-rc2-linux-x86_64
cp * /usr/local/ -r
- 查看 gcc、g++ 版本
gcc -v
g++ -v
- CentOS 查看系统版本
cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
ccmake 安装和理解
主页:https://cmake.org/cmake/help/latest/manual/ccmake.1.html
- 自行理解
The ccmake executable is the CMake curses interface. Project configuration settings may be specified interactively through this GUI. Brief instructions are provided at the bottom of the terminal when the program is running.
CMake is a cross-platform build system generator. Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.
- ccmake 的安装
sudo apt-get install cmake-curses-gui
# 查看版本
ccmake -version
ccmake version 3.10.2
make 命令简记
通常就是在 make install 步骤遇到报错,会执行一下 make clean , 再 重新进行 make 操作;
文章来源: positive.blog.csdn.net,作者:墨理学AI,版权归原作者所有,如需转载,请联系作者。
原文链接:positive.blog.csdn.net/article/details/114578250
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)