CMake Error:CMake 3.14 or higher is required. You are running version 3.10.2

在安装mmdeloy的过程中CMake版本不适配

CMake Error at CMakeLists.txt:7 (cmake_minimum_required):
  CMake 3.14 or higher is required.  You are running version 3.10.2

1、先卸载3.10的CMake

sudo apt remove cmake

2、重新安装依赖

sudo apt-get install build-essential libssl-dev

3、下载高版本的CMake,并解压

wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gz

tar -zxvf cmake-3.20.0.tar.gz

4、进入目录运行bootstrap脚本

cd cmake-3.20.0

./bootstrap

5、编译&安装

make

sudo make install

6、查看版本

cmake --version

安装成功!

 

你可能感兴趣的:(linux,c++,开发语言)