CMake找不到VTKConfig.cmake [英] CMake could not find the VTKConfig.cmake
问题描述
我正在尝试在CMake中编译程序,但出现此错误。
I'm trying to compile a program in CMake but I'm getting this error.
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(这也不起作用)。
有人知道我可以在哪里下载文件表格,或者我可能做错了什么。
I can't find the relevant files (VTKConfig.cmake or vtk-config.cmake) on the machine but do have VTKConfig.cmake.in (which also doesn't work). Does anyone know where I can download the file form, or what I might be doing wrong.
推荐答案
似乎就像您只有VTK源代码,但尚未构建它。 VTKConfig.cmake.in是CMake用来在生成和安装目录中生成VTKConfig.cmake文件的模板。查看 http://www.vtk.org/Wiki/VTK/Building 来查看如何构建VTK。
It seems like you just have the VTK source code but haven't built it yet. VTKConfig.cmake.in is a template used by CMake to generate the VTKConfig.cmake file in the build and install directory. Look at http://www.vtk.org/Wiki/VTK/Building to see how to build VTK.
这篇关于CMake找不到VTKConfig.cmake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!