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

[REG] WrapVulkanHeaders::WrapVulkanHeaders not found on system without Vulkan development package

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.0 RC
    • 6.2.0 Beta2
    • Build System: CMake
    • Ubuntu20.04
    • 3c233175523a61e734dd5cd9bdcbb2994566f7f0 (qt/qtbase/dev) 8f16ad0b81013593dae912d06c22f6cb63d0d792 (qt/qtbase/6.2)

    Description

      Have Qt6.2.0 beta2 gcc binaries, try to configure webengine/recipebrowser, fails with

      ~/RTA/qt5/Examples/Qt-6.2.0/webengine/recipebrowser$ cmake CMakeLists.txt 
      -- The CXX compiler identification is GNU 9.3.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Looking for C++ include pthread.h
      -- Looking for C++ include pthread.h - found
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
      -- Check if compiler accepts -pthread
      -- Check if compiler accepts -pthread - yes
      -- Found Threads: TRUE  
      -- Check if linker can resolve circular dependencies - FALSE
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE  
      -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
      -- Found WrapOpenGL: TRUE  
      -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
      -- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "0.10.0", minimum required is "0.5.0") 
      -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1f")  
      -- Found WrapOpenSSLHeaders: /usr/include (found version "1.1.1f") 
      -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
      -- Configuring done
      CMake Error at /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:523 (add_executable):
        Target "recipebrowser" 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?
      Call Stack (most recent call first):
        /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:488 (_qt_internal_create_executable)
        /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:754 (qt6_add_executable)
        CMakeLists.txt:23 (qt_add_executable)
      CMake Error at /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:523 (add_executable):
        Target "recipebrowser" 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?
      Call Stack (most recent call first):
        /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:488 (_qt_internal_create_executable)
        /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:754 (qt6_add_executable)
        CMakeLists.txt:23 (qt_add_executable)
      -- Generating done
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      
      

      This is on my Ubuntu20.04, which don't have Vulkan installed. On coin vm, RHEL, the build doesn't seem to have same issue, so I'm not sure if this is a bug or configuration issue.

      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
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes