VS2015下安装VTK7.0错误总结

来源:互联网 发布:紫青双剑仙羽进阶数据 编辑:程序博客网 时间:2024/06/02 05:01

初次接触VTK,把遇到的错误总结在此,希望对后来人有所帮助。
1、Cmake编译的时候提示如下错误:
CMake Error at CMakeLists.txt:4 (find_package):
Could not find a package configuration file provided by “VTK” with any of
the following names:

VTKConfig.cmake
vtk-config.cmake

Add the installation prefix of “VTK” to CMAKE_PREFIX_PATH or set “VTK_DIR”
to a directory containing one of the above files. If “VTK” provides a
separate development package or SDK, be sure it has been installed.

解决方法,在环境变量里添加VTK_DIR
这里写图片描述

0 0
原创粉丝点击