Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt app installer requirements for Vulkan on Windows
QtWS25 Last Chance

Qt app installer requirements for Vulkan on Windows

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
vulkaninstallerqt application
1 Posts 1 Posters 128 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.
  • B Offline
    B Offline
    braernoch
    wrote on 26 Dec 2024, 23:52 last edited by
    #1

    TL;DR: Is there a (need && way) to trigger Vulkan loader/runtime installation in a Qt app installer in Windows?

    Context: I've made a Vulkan-based Qt app (QMainWindow with Dock and GUI + QVulkanWindow centralWidget for rendered content). I've got the app binary running on Linux, macOS, and Win, but for each case in a development environment (with Qt sources and VulkanSDK).

    Now I'm making bundles/installers for each, as applicable, and after hiding my Qt sources and VulkanSDK folders to simulate a random non-dev person's computer, I've worked to make sure the dependencies are included:

    • Linux: AppImage made from appimagetool (successor to linuxdeployqt).
      • This requires including the loader (lib/libvulkan.so) which presumably calls directly to the installed gfx drivers
    • macOS: Bundle.app made from macdeployqt
      • This requires including the loader (lib/libvulkan.dylib) which calls to MoltenVK (lib/libMoltenVK + share/vulkan/icd.d) which presumably calls to Apple's gfx drivers

    I've been able to test the above, and it makes logical sense, so I assume those are done. But for Windows --

    • Win: Installer.exe made from windeployqt.exe + binarycreator.exe
      • This runs fine with NO Vulkan lib inside and with VulkanSDK hidden, but given above patterns, I find it hard to trust that
      • https://www.reddit.com/r/vulkan/comments/sa30f7/should_i_deploy_the_loader_with_my_application/httw5fl/ indicates that I should trust this, but I don't yet
      • I haven't been able to test this on a non-dev, non-gaming computer with sufficient GPU to overcome my fears

    So my question is: if we're not supposed to ship the Vulkan loader with a Windows application, is it always the case that a computer with a Vulkan-capable GPU and installed drivers will have a system-wide loader ready to run my app, OR can I somehow force a dependency check in my installer to install an appropriate Vulkan runtime/loader on that Windows PC? And if the latter, what's best practice for installing that runtime on an unknown system?

    Thank you,
    Wade

    1 Reply Last reply
    0

    1/1

    26 Dec 2024, 23:52

    • Login

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