我正在尝试在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
Run Code Online (Sandbox Code Playgroud)
我在机器上找不到相关文件(VTKConfig.cmake或vtk-config.cmake),但确实有VTKConfig.cmake.in(这也行不通).有谁知道我可以在哪里下载文件表格,或者我可能做错了什么.
小智 7
您似乎只拥有VTK源代码但尚未构建它.VTKConfig.cmake.in是CMake用于在构建和安装目录中生成VTKConfig.cmake文件的模板.请查看http://www.vtk.org/Wiki/VTK/Building,了解如何构建VTK.
成功构建 VTK 后,您可以使用VTK_DIR-parameter给 CMake 一个提示,在何处查找 VTK :
cmake -DVTK_DIR=/path/to/vtk/build-directory /path/to/your/source-directory
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12523 次 |
| 最近记录: |