Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt5GuiConfig.cmake etc not found in fresh Windows installation

Qt5GuiConfig.cmake etc not found in fresh Windows installation

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
cmakewindows 10installation
4 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joachim W
    wrote on 6 Nov 2018, 10:04 last edited by
    #1

    Please help: My Qt5, freshly installed to C:\Qt on a Windows10 box, using the online installer http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe, is missing Qt5GuiConfig.cmake etc. Search through the entire directory C:\Qt confirms that they are missing, absent, inexistent, futsch.

    They are badly needed to get CMake back to work. CMake encounters the command find_package(Qt5Gui REQUIRED), and terminates with error:

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

    The proposed remedy #2 does indeed work. But it is very cumbersome, since we also need Qt5Core, Qt5Widgets, and many more modules, and all this for several projects. For sure proposed remedy #1 is to be preferred. But how can it work if Qt5GuiConfig.cmake are not distributed with the library?

    J 1 Reply Last reply 6 Nov 2018, 11:25
    0
    • J Joachim W
      6 Nov 2018, 10:04

      Please help: My Qt5, freshly installed to C:\Qt on a Windows10 box, using the online installer http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe, is missing Qt5GuiConfig.cmake etc. Search through the entire directory C:\Qt confirms that they are missing, absent, inexistent, futsch.

      They are badly needed to get CMake back to work. CMake encounters the command find_package(Qt5Gui REQUIRED), and terminates with error:

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

      The proposed remedy #2 does indeed work. But it is very cumbersome, since we also need Qt5Core, Qt5Widgets, and many more modules, and all this for several projects. For sure proposed remedy #1 is to be preferred. But how can it work if Qt5GuiConfig.cmake are not distributed with the library?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 6 Nov 2018, 11:25 last edited by
      #2

      @Joachim-W Which Qt version did you install?
      On my Windows 10 machine it is in c:\Qt\5.11.1\mingw53_32\lib\cmake\Qt5Gui

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Joachim W
        wrote on 6 Nov 2018, 11:45 last edited by
        #3

        Which version?
        -> Installer qt-unified-windows-x86-3.0.5-online.exe, which installed Qt-5.11.2.

        J 1 Reply Last reply 6 Nov 2018, 13:05
        0
        • J Joachim W
          6 Nov 2018, 11:45

          Which version?
          -> Installer qt-unified-windows-x86-3.0.5-online.exe, which installed Qt-5.11.2.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 6 Nov 2018, 13:05 last edited by
          #4

          @Joachim-W Do you have c:\Qt\5.11.1\mingw53_32\lib\cmake\Qt5Gui (adapt the path to the Qt version you installed) and if so iis there anything inside?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          4/4

          6 Nov 2018, 13:05

          • Login

          • Login or register to search.
          4 out of 4
          • First post
            4/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved