Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32323

CMake: Suggest installation of package for missing Qt 6 component

    XMLWordPrintable

Details

    Description

      When configuring a project fails, detect situations where the situation can be mitigated by installing a Qt Online Installer package.

      Example workflow

      Configuring a WebEngine example might fail with

      [cmake] CMake Error at CMakeLists.txt:16 (find_package):
      [cmake]   Found package configuration file:
      [cmake] 
      [cmake]     C:/Qt/6.9.0/msvc2022_64/lib/cmake/Qt6/Qt6Config.cmake
      [cmake] 
      [cmake]   but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      [cmake]   FOUND.  Reason given by package:
      [cmake] 
      [cmake]   Failed to find required Qt component "WebEngineWidgets".
      [cmake] 
      [cmake]   Expected Config file at
      [cmake]   "C:/Qt/6.9.0/msvc2022_64/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake"
      [cmake]   does NOT exist
      
      

      Qt Creator could detect this, and look up which package installs C:/Qt/6.9.0/msvc2022_64/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake (in this case, extensions.qtwebengine.681.win64_msvc2022_64).

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-32323
          # Subject Branch Project Status CR V

          Activity

            People

              cadam Cristian Adam
              kkohne Kai Köhne
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes