查看 cmake、gcc、g++版本 | ccmake 安装和理解 | make clean 的使用

本博文做一个简单的知识点汇总


  • 查看 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).

# 下载解压

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 操作;

9


  • 1
    点赞
  • 3
    收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:Age of Ai 设计师:meimeiellie 返回首页
评论

打赏作者

墨理学AI

不必打赏,关注博主公众号即可

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值