您的位置:首页 > 其它

VS2015下安装VTK7.0错误总结

2016-07-09 14:43 363 查看
初次接触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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  VTK安装