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

Compilation fails with new project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Environment:
      Windows 10 + MSVC 2019 C++ compilation tools
    • Platform/s:
      Windows

      Description

      Steps to reproduce:

      • Install Qt with 6.2.0 (beta2) and MSVC 2019 compiler tools.
      • Create a new file, select Qt Quick Application
      • Select build tool to be CMake instead of qmake
      • Try to run the app
      • Compilation fails with trace:
        C:\Qt\6.2.0\msvc2019_64\lib\cmake\Qt6Core\Qt6CoreMacros.cmake:523: error: Target "sample1" links to target "WrapVulkanHeaders::WrapVulkanHeaders" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? C:/Qt/6.2.0/msvc2019_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:488 (_qt_internal_create_executable) C:/Qt/6.2.0/msvc2019_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:754 (qt6_add_executable) CMakeLists.txt:36 (qt_add_executable)

      Expected result: application works ok.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              javihria Jarko Vihriälä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes