Important: Please read the Qt Code of Conduct -

Qt5GuiConfig.cmake etc not found in fresh Windows installation

  • Please help: My Qt5, freshly installed to C:\Qt on a Windows10 box, using the online installer, 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:
    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?

  • Lifetime Qt Champion

    @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

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

  • Lifetime Qt Champion

    @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?