2014-02-07 7 views
1

CentOS에 OpenBR을 설치하려고합니다. here 단계는 우분투 용입니다. CentOS에 OpenBR 라이브러리를 설치해야하는 곳. Centos-6.5 버전을 사용하고 있습니다.CentOS에 QT 설치 - CMake OpenBR 설치시 경고

다음은 OpenBR 팀이 QT 설치를 따르도록 요청한 단계입니다.

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

CentOS에서 어떻게 설치해야합니까?

QT를 설치하려면이 link의 단계를 따르십시오.

내가이 명령을 내릴 때 아래 오류가 발생합니다 (보기 편한 오류를 줄였습니다). 문제는 무엇입니까?

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". 

답변

3

EPEL에서 CentOS 6 용 사전 빌드 된 qt 5 패키지를 얻을 수 있습니다.

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

는 그 다음 qtbase의 (STABLE) 모듈을 설치 냠을 사용하고, 다른 모듈은 당신이 할 수 있습니다 : 첫째, EPEL 저장소를 설치합니다.

yum install qt5-qtbase-devel