【问题解决】编译VTK时CMAKE中找不到Qt5X11Extras

编译VTK时,use.system.qt5

sudo apt install qt5-default

 

出现以下错误

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
  Could not find a package configuration file provided by "Qt5X11Extras" with
  any of the following names:

    Qt5X11ExtrasConfig.cmake
    qt5x11extras-config.cmake

  Add the installation prefix of "Qt5X11Extras" to CMAKE_PREFIX_PATH or set
  "Qt5X11Extras_DIR" to a directory containing one of the above files.  If
  "Qt5X11Extras" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  VTK/GUISupport/Qt/CMakeLists.txt:69 (find_package)

 

出现原因:

未安装libqt5x11extras5-dev

解决方案:

sudo apt install libqt5x11extras5-dev

(sudo apt install libqt5x11extras - invalid)

 

 

你可能感兴趣的:(【问题解决】编译VTK时CMAKE中找不到Qt5X11Extras)