使用CMake错误构建paraview代码源

gdx19jrr  于 11个月前  发布在  其他
关注(0)|答案(1)|浏览(210)

我试图使用CMake从源代码构建Paraview。我确实安装了QT版本6.6.0,但在构建Paraview时,我得到了这个错误:

CMake Warning at VTK/CMake/vtkModule.cmake:4810 (find_package):
  Found package configuration file:

    C:/Qt/6.6.0/mingw_64/lib/cmake/Qt6/Qt6Config.cmake

  but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
  FOUND.  Reason given by package:

  Failed to find required Qt component "Core5Compat".

  Expected Config file at
  "C:/Qt/6.6.0/mingw_64/lib/cmake/Qt6Core5Compat/Qt6Core5CompatConfig.cmake"
  does NOT exist


  Configuring with --debug-find-pkg=Qt6Core5Compat might reveal details why
  the package was not found.

  Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
  of the path variables that find_package uses to try and find the package.

Call Stack (most recent call first):
  Qt/Widgets/CMakeLists.txt:94 (vtk_module_find_package)

CMake Error at VTK/CMake/vtkModule.cmake:4816 (message):
  Could not find the Qt6 external dependency.
Call Stack (most recent call first):
  Qt/Widgets/CMakeLists.txt:94 (vtk_module_find_package).

字符串
如何处理这个错误?
我想构建paraview代码源,以便将其托管在一个可停靠的窗口中。

whhtz7ly

whhtz7ly1#

ParaView目前还不支持Qt 6.(https://gitlab.kitware.com/paraview/-/blob/master/Documentation/dev/build.md#building)
这就是为什么你需要Qt Core 5 compat模块(https://doc.qt.io/qt-6/qtcore5-index.html)。

相关问题