Cmake: high version on Linux

1. 卸载已经安装的旧版的CMake[非必需]

apt-get autoremove cmake
  • 1

2. 文件下载解压:

wget https://cmake.org/files/v3.9/cmake-3.9.1-Linux-x86_64.tar.gz
  • 1

解压:

tar zxvf cmake-3.9.1-Linux-x86_64.tar.gz
  • 1

查看解压后目录:

tree -L 2 cmake-3.9.1-Linux-x86_64
cmake-3.9.1-Linux-x86_64
├── bin
│   ├── ccmake
│   ├── cmake
│   ├── cmake-gui
│   ├── cpack
│   └── ctest
├── doc
│   └── cmake
├── man
│   ├── man1
│   └── man7
└── share
    ├── aclocal
    ├── applications
    ├── cmake-3.9
    ├── icons
    └── mime

12 directories, 5 files
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

bin下面有各种cmake家族的产品程序.

3. 创建软链接

注: 文件路径是可以指定的, 一般选择在/opt 或 /usr 路径下, 这里选择/opt

mv cmake-3.9.1-Linux-x86_64 /opt/cmake-3.9.1
ln -sf /opt/cmake-3.9.1/bin/*  /usr/bin/ 
In /build/vtk7-yd0MKW/vtk7-7.1.1+dfsg2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 636 vtkXOpenGLRenderWindow (0x7fac4c000cb0): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. ERROR: In /build/vtk7-yd0MKW/vtk7-7.1.1+dfsg2/Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 3535 vtkOpenGLPolyDataMapper (0x7fac4c59be50): failed after BuildBufferObjects 1 OpenGL errors detected 0 : (1280) Invalid enum ERROR: In /build/vtk7-yd0MKW/vtk7-7.1.1+dfsg2/Rendering/OpenGL2/vtkShaderProgram.cxx, line 394 vtkShaderProgram (0x7fac4c5e5e50): 1: #version 120 2: #ifdef GL_ES 3: #if __VERSION__ == 300 4: #define varying in 5: #ifdef GL_FRAGMENT_PRECISION_HIGH 6: precision highp float; 7: precision highp sampler2D; 8: precision highp sampler3D; 9: #else 10: precision mediump float; 11: precision mediump sampler2D; 12: precision mediump sampler3D; 13: #endif 14: #define texelFetchBuffer texelFetch 15: #define texture1D texture 16: #define texture2D texture 17: #define texture3D texture 18: #endif // 300 19: #if __VERSION__ == 100 20: #extension GL_OES_standard_derivatives : enable 21: #ifdef GL_FRAGMENT_PRECISION_HIGH 22: precision highp float; 23: #else 24: precision mediump float; 25: #endif 26: #endif // 100 27: #else // GL_ES 28: #define highp 29: #define mediump 30: #define lowp 31: #if __VERSION__ == 150 32: #define varying in 33: #define texelFetchBuffer texelFetch 34: #define texture1D texture 35: #define texture2D texture 36: #define texture3D texture 37: #endif 38: #if __VERSION__ == 120 39: #extension GL_EXT_gpu_shader4 : require 40: #endif 41: #endif // GL_ES 42: 43: 44: /*========================================================================= 45: 46: Program: Visualization Toolkit 47: Module: vtkPoly
03-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值