Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 Vulkan

Qt5 Vulkan

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 2 Posters 870 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 31 Aug 2021, 18:26 last edited by SGaist
    #2

    Hi and welcome to devnet,

    Based on the documentation of QVulkanWindow you should only need to install the SDK on Windows.

    What is your current issue ?
    Did you try one of the Vulkan example ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • J Offline
      J Offline
      John Doe 2
      wrote on 31 Aug 2021, 21:48 last edited by
      #3

      It appears Qt can't find the necessary Vulkan headers, since its symbols are marked as unknown. Is it possible to see where Qt is looking for these headers? Or does it only use VULKAN_SDK?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 1 Sept 2021, 19:34 last edited by
        #4

        Did you try to build one of Qt's Vulkan examples ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • J Offline
          J Offline
          John Doe 2
          wrote on 1 Sept 2021, 20:17 last edited by
          #5

          Oh sorry!
          What I meant is that when trying to build any of the examples, Qt can't find any Vulkan symbols.
          It seems it can't find vulkan.h, but isn't generating any explicit errors due to:

          // In qvulkaninstance.h:
          #if !defined(Q_CLANG_QDOC) && __has_include(<vulkan/vulkan.h>)
          #include <vulkan/vulkan.h>
          #else
          ...
          #endif
          
          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 1 Sept 2021, 20:49 last edited by
            #6

            Are you building from Qt Creator ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • J Offline
              J Offline
              John Doe 2
              wrote on 1 Sept 2021, 21:12 last edited by
              #7

              Yes, I am building from Qt Creator.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 2 Sept 2021, 18:45 last edited by
                #8

                Did you check that

                @John-Doe-2 said in Qt5 Vulkan:

                VULKAN_SDK

                Is defined in the Build part of the Project panel ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  John Doe 2
                  wrote on 2 Sept 2021, 22:27 last edited by
                  #9

                  I can see both VULKAN_SDK and VK_SDK_PATH in Build Environment. They are both set to correct values (C:\VulkanSDK\1.2.182.0).

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 3 Sept 2021, 06:39 last edited by
                    #10

                    Then I would add something like

                    INCLUDEPATH += $VULKAN_SDK/includes
                    LIBS += $VULKAN_SDK/lib
                    

                    to the .pro file.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      John Doe 2
                      wrote on 3 Oct 2021, 16:21 last edited by
                      #11

                      First, excuse me for the late reply. A couple of things came up and I forgot to look into this problem until now.
                      Second, I reinstalled both Qt and Vulkan and it works now. I think what was happening is that I had improperly installed the Vulkan SDK, but I wasn't having any issues due to it until I tried to use it with Qt.
                      Thank you very much for your help, and sorry again for the delay.

                      1 Reply Last reply
                      1

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved