gpt4 book ai didi

CMake 找不到 VTKConfig.cmake

转载 作者:行者123 更新时间:2023-12-02 17:23:44 31 4
gpt4 key购买 nike

我正在尝试在 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。

关于CMake 找不到 VTKConfig.cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28467230/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com