【问题标题】:Installing QT in Centos - CMake Warning whike installing OpenBR在 Centos 中安装 QT - 安装 OpenBR 时出现 CMake 警告
【发布时间】:2014-03-04 12:13:56
【问题描述】:

我正在尝试在 CentOS 中安装 OpenBRhere 给出的步骤适用于 Ubuntu。我需要在 Centos 中安装 OpenBR 库。我使用的是“Centos-6.5”版本。

以下是 OpenBR 团队要求遵循的安装 QT 的步骤。

sudo apt-get install qt5-default libqt5svg5-dev qtcreator

我应该怎么做才能在 CentOS 中安装它。

我按照link 中的步骤安装 QT。

当我给出这个命令时,我得到了以下错误(我修剪了错误以便于查看)。会有什么问题?

CMake Warning at CMakeLists.txt:82 (find_package):
  By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5Concurrent", but CMake did not find one.

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

    Qt5ConcurrentConfig.cmake
    qt5concurrent-config.cmake

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


CMake Warning at CMakeLists.txt:82 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

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

    Qt5CoreConfig.cmake
    qt5core-config.cmake

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


CMake Warning at CMakeLists.txt:82 (find_package):
  By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Gui", but
  CMake did not find one.

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

    Qt5GuiConfig.cmake
    qt5gui-config.cmake

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


CMake Warning at 3rdparty/stasm4.0.0/CMakeLists.txt:18 (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.


CMake Warning at 3rdparty/stasm4.0.0/CMakeLists.txt:18 (find_package):
  By not providing "FindQt5Xml.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Xml", but
  CMake did not find one.

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

    Qt5XmlConfig.cmake
    qt5xml-config.cmake

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


CMake Error at 3rdparty/stasm4.0.0/CMakeLists.txt:41 (qt5_use_modules):
  Unknown CMake command "qt5_use_modules".


-- Configuring incomplete, errors occurred!
See also "/home/raaa/Downloads/openbr/build/CMakeFiles/CMakeOutput.log".

【问题讨论】:

    标签: c++ qt centos qt5 centos6


    【解决方案1】:

    您可以从 EPEL 获得为 CentOS 6 预先构建的 qt 5 软件包。首先,安装 EPEL 存储库:

    sudo rpm -Uvh \
       http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    

    然后使用 yum 安装 qtbase devel 模块,以及您可能需要的任何其他模块。

    yum install qt5-qtbase-devel
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-04
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多