由于Ubuntu14.04的cmake版本为2.8.x,而如果需要cmake3.x版本时,无法生成makefile,有两种方法可以安装cmake3.4.1: sudo apt-get install build-essential wget http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz tar xf cmake-3.4.1.tar.gz cd cmake-3.4.1 ./configure make
sudo apt-get install checkinstall sudo checkinstall
sudo make install
最后在终端输入:cmake --version
如果显示cmake version 3.4.1
则安装成功!
Ubuntu14.04安装CMake3.4.1
最新推荐文章于 2023-08-06 17:18:42 发布