Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Could not find a package configuration file provided by "Qt5Quick"



  • I was trying to install Marble, the Google Earth substitute, on Ubuntu 16.04 (64-bit).
    Marble needed Qt5 installed.
    So I installed the Qt5 in accordance with the instructions I found here: https://wiki.qt.io/Install_Qt_5_on_Ubuntu

    Now when I try to run cmake on Marble, I keep hitting Qt5 dependency errors?
    First I got an error: Could not find a package configuration file provided by "Qt5LinguistTools"
    So I ran: sudo apt-get install qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev

    I tried cmake for Marble again. It got a little farther this time until I got this:
    Could not find a package configuration file provided by "Qt5Quick"

    Then I ran:sudo apt-get install qtbase5-dev

    That did not help.
    I had hoped the installation of the dev kit carried all the needed materials.

    I’m stuck.
    Any suggestions?


    The complete printout as a result of cmake is:

    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 "Qt5Quick" with any
    of the following names:

    Qt5QuickConfig.cmake
    qt5quick-config.cmake
    

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

    -- Configuring incomplete, errors occurred!
    See also "/home/user/Downloads/marble/build/CmakeFiles/CmakeOutput.log".


    Qt Creator info:
    Qt Creator 4.0.2
    Based on Qt 5.7.0 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)
    Built on Jun 13 2016 01:05:36
    From revision 47b4f2c738


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Which version of Qt are you using exactly ?
    From the looks of it you didn't install all the required dev dependencies.


Log in to reply