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. Vulkan in Qt on macOS?
Forum Updated to NodeBB v4.3 + New Features

Vulkan in Qt on macOS?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 761 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jdavis
    wrote on last edited by
    #1

    Re: macos:: can't find QVulkanInstance

    I'm trying to work my way through the standard Vulkan-in-Qt examples in Qt Creator's Welcome mode: Hello Vulkan Window, Hello Vulkan Triangle, etc. They fail to build, giving the same error messages as in the unanswered thread linked above: "unknown class name QVulkanWindowRenderer", etc. Any advice?

    Searching the Web yields answers about editing .pro files (these examples have none), about Qt 5 (which might be out of date), etc.

    Sorry if this is a newbie question. I am new to Qt. (I'm trying to evaluate it for a new project I'm starting.) I've been programming Vulkan for a year using non-Qt APIs. I can build various non-Vulkan Qt examples.

    macOS Monterey 12.6.3
    Qt 6, Qt Creator 9.0.1
    LunarG Vulkan SDK, Vulkan 1.3.204.1, moltenVK

    jsulmJ 1 Reply Last reply
    0
    • J jdavis

      Re: macos:: can't find QVulkanInstance

      I'm trying to work my way through the standard Vulkan-in-Qt examples in Qt Creator's Welcome mode: Hello Vulkan Window, Hello Vulkan Triangle, etc. They fail to build, giving the same error messages as in the unanswered thread linked above: "unknown class name QVulkanWindowRenderer", etc. Any advice?

      Searching the Web yields answers about editing .pro files (these examples have none), about Qt 5 (which might be out of date), etc.

      Sorry if this is a newbie question. I am new to Qt. (I'm trying to evaluate it for a new project I'm starting.) I've been programming Vulkan for a year using non-Qt APIs. I can build various non-Vulkan Qt examples.

      macOS Monterey 12.6.3
      Qt 6, Qt Creator 9.0.1
      LunarG Vulkan SDK, Vulkan 1.3.204.1, moltenVK

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @jdavis What exact Qt version do you use?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jdavis
        wrote on last edited by
        #3

        Sorry about that. It's Qt 6.4.1.

        (The Qt MaintenanceTool says that I have Qt 1.0.17 and I should update to Qt 1.0.18 released 2023-01-11. That must be something else.)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SimonSchroeder
          wrote on last edited by
          #4

          macOS does not support Vulkan (out of the box). As you know you need MoltenVK for that. I expect that the pre-compiled Qt libraries are not compiled with Vulkan support (because MoltenVK is not available by default). In this case you'd need to compile Qt yourself together with Vulkan support enabled.

          1 Reply Last reply
          1
          • J Offline
            J Offline
            jdavis
            wrote on last edited by
            #5

            Thank you. I will look into that next.

            1 Reply Last reply
            0

            • Login

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