首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Centos中安装QT -安装OpenBR时出现CMake警告

在Centos中安装QT -安装OpenBR时出现CMake警告
EN

Stack Overflow用户
提问于 2014-02-07 15:26:21
回答 1查看 7.8K关注 0票数 1

我正在尝试在CentOS中安装OpenBRhere给出的步骤是针对Ubuntu的。因为我需要在Centos中安装OpenBR库。我使用的是Centos-6.5版本。

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

代码语言:javascript
复制
sudo apt-get install qt5-default libqt5svg5-dev qtcreator

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

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

当我给出这个命令时,我得到了下面的错误(为了便于查看,我对错误进行了修剪)。问题会是什么呢?

代码语言:javascript
复制
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".
EN

回答 1

Stack Overflow用户

发布于 2014-02-08 01:03:14

您可以从EPEL获得CentOS 6的预建qt5包。首先,安装EPEL存储库:

代码语言:javascript
复制
sudo rpm -Uvh \
   http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

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

代码语言:javascript
复制
yum install qt5-qtbase-devel
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21621731

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档