Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104998

Improve find_package(Qt6) diagnostics

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • None
    • None
    • Build System: CMake
    • None

    Description

      Doing a find_package(Qt6 COMPONENTS Core) call can fail in various ways, and the error messages are not always clear.

      This can happen due to various reasons, missing 3rd party deps, can't find tools, not using the qt generated toolchain file, not setting CMAKE_PREFIX_PATH, not setting CMAKE_FIND_ROOT_PATH, not setting QT_HOST_PATH, only setting Qt6_DIR, etc.

      Improving the error messages so that users can more clearly understand what went wrong and how to fix it would be useful.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              alexandru.croitor Alexandru Croitor
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes