【问题标题】:CMake cannot find Qt5Widgets on Linux MintCMake 在 Linux Mint 上找不到 Qt5Widgets
【发布时间】:2022-08-08 18:35:29
【问题描述】:

尝试在 Linux Mint 21 Vanessa 上安装 deepin-screenshot

陷入此错误:

CMake Error at CMakeLists.txt:94 (find_package):
  By not providing \"FindQt5Widgets.cmake\" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  \"Qt5Widgets\", but CMake did not find one.

  Could not find a package configuration file provided by \"Qt5Widgets\" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of \"Qt5Widgets\" to CMAKE_PREFIX_PATH or set
  \"Qt5Widgets_DIR\" to a directory containing one of the above files.  If
  \"Qt5Widgets\" provides a separate development package or SDK, be sure it has
  been installed.

已经看到有关 Windows 安装的其他问题,但没有任何与 Ubuntu / Mint 相关的问题。看起来没有我可以安装的包,除了 RPM(例如 red hat / suse)。有任何想法吗?

    标签: cmake linux-mint


    【解决方案1】:

    我通过apt install libqt5gstreamer-dev 解决了这个问题 - 这似乎安装了一堆依赖项(我猜qtbase5-dev qtbase5-dev-tools 将是实际的解决方案,但我对我拥有的依赖项感到满意)

    要安装deepin-screenshot,我还需要libqt5x11extras5-dev libdtkwidget-dev然后卡住了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-08
      • 1970-01-01
      • 1970-01-01
      • 2015-02-28
      • 1970-01-01
      • 1970-01-01
      • 2015-11-10
      • 1970-01-01
      相关资源
      最近更新 更多