文章目录
查看源码安装目录
查看之前是否使用源码安装过VTK,一般源码安装的VTK在下面的目录:
/usr/local/include/ #包含目录,头文件所在
/usr/local/lib # 动态库目录
我这里还没有
查找命令sudo find | grep "VTK"
打印输出如下,说明系统自带的版本为vtk-6.3
./usr/lib/cmake/vtk-6.3/VTKConfigVersion.cmake
./usr/lib/cmake/vtk-6.3/VTKTargets-none.cmake
./usr/lib/cmake/vtk-6.3/VTKConfig.cmake
./usr/lib/cmake/vtk-6.3/VTKTargets.cmake
./usr/lib/cmake/vtk-6.3/UseVTK.cmake
./usr/lib/python2.7/dist-packages/vtk/wx/wxVTKRenderWindowInteractor.pyc
./usr/lib/python2.7/dist-packages/vtk/wx/wxVTKRenderWindowInteractor.py
./usr/lib/python2.7/dist-packages/vtk/wx/wxVTKRenderWindow.py
./usr/lib/python2.7/dist-packages/vtk/wx/wxVTKRenderWindow.pyc
./usr/lib/python2.7/dist-packages/vtk/gtk/GtkVTKRenderWindow.py
./usr/lib/python2.7/dist-packages/vtk/gtk/GtkVTKRenderWindowInteractor.pyc
./usr/lib/python2.7/dist-packages/vtk/gtk/GtkGLExtVTKRenderWindowInteractor.py
./usr/lib/python2.7/dist-packages/vtk/gtk/GtkGLExtVTKRenderWindow.pyc
./usr/lib/python2.7/dist-packages/vtk/gtk/GtkVTKRenderWindow.pyc
./usr/lib/python2.7/dist-packages/vtk/gtk/GtkVTKRenderWindowInteractor.py
./usr/lib/python2.7/dist-packages/vtk/gtk/GtkGLExtVTKRenderWindow.py
./usr/lib/python2.7/dist-packages/vtk/gtk/GtkGLExtVTKRenderWindowInteractor.pyc
./usr/lib/python2.7/dist-packages/vtk/qt4/QVTKRenderWindowInteractor.pyc
./usr/lib/python2.7/dist-packages/vtk/qt4/QVTKRenderWindowInteractor.py
./usr/include/vtk-6.3/PyVTKClass.h
./usr/include/vtk-6.3/QVTKInteractor.h
./usr/include/vtk-6.3/ExternalVTKWidget.h
./usr/include/vtk-6.3/QVTKWidget2.h
./usr/include/vtk-6.3/PyVTKNamespace.h
./usr/include/vtk-6.3/PyVTKObject.h
./usr/include/vtk-6.3/QVTKPaintEngine.h
./usr/include/vtk-6.3/QVTKWin32Header.h
./usr/include/vtk-6.3/PyVTKTemplate.h
./usr/include/vtk-6.3/QVTKWidget.h
./usr/include/vtk-6.3/QVTKGraphicsItem.h
./usr/include/vtk-6.3/QVTKInteractorInternal.h
./usr/include/vtk-6.3/QVTKInteractorAdapter.h
./usr/include/vtk-6.3/QVTKApplication.h
./usr/include/vtk-6.3/PyVTKMutableObject.h
./usr/include/vtk-6.3/PyVTKSpecialObject.h
同时也可以打开上面终端输出的./usr/lib/cmake/vtk-6.3/VTKConfigVersion.cmake
这个文件,命令:sudo gedit ./usr/lib/cmake/vtk-6.3/VTKConfigVersion.cmake
,也可以看出版本为6.3.0