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

Improve find_package(Qt6) diagnostics

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes