我正在尝试在CMake中编译程序,但出现此错误。
By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "VTK", but
CMake did not find one.
Could not find a package configuration file provided by "VTK" (requested
version 6.1) with any of the following names:
VTKConfig.cmake
vtk-config.cmake
我在机器上找不到相关的文件(VTKConfig.cmake或vtk-config.cmake),但是确实有VTKConfig.cmake.in(这也行不通)。有谁知道我可以在哪里下载文件表格,或者我可能做错了什么。
似乎您只有VTK源代码,但尚未构建它。VTKConfig.cmake.in是CMake用来在生成和安装目录中生成VTKConfig.cmake文件的模板。查看http://www.vtk.org/Wiki/VTK/Building,了解如何构建VTK。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句