简体   繁体   中英

How to link against Vulkan with MinGW and QMake?

I tried to link against Vulkan with:

LIBS += -L$$(VK_SDK_PATH)/Bin -lvulkan-1 # Doesn't work at all
LIBS += -L$$(VK_SDK_PATH)/Lib -lvulkan-1 # Works with MSVC

But I couldn't get it linking with MinGW.

INSTALLED:

  • VulkanSDK (1.2.148.1)
  • Qt (5.15.0; MSYS2)
  • MinGW (10.2.0; MSYS2)

I installed the Vulkan Runtime and retried

LIBS += -L$$(VK_SDK_PATH)/Lib -lvulkan-1

with MinGW again and it works. Nevertheless, thank you for helping me out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM