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

Compilation fails with new project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.2.0
    • Build System: CMake
    • None
    • Windows 10 + MSVC 2019 C++ compilation tools
    • 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

              qtbuildsystem Qt Build System Team
              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