general
How to fix a bug with building Vulkan support on Windows in Rust?
I found a bug with building Vulkan support on Windows. Replacing println!("cargo:rustc-link-search=native={}/lib", vulkan_sdk_path); with println!("cargo:rustc-link-search={}/lib", vulkan_sdk_path); fixes it. Not sure if that breaks linux but it works here. Got it up and running on my AMD 5700XT
Ho
Holo Pengin
Asked on Mar 26, 2024
- To fix a bug with building Vulkan support on Windows in Rust, replace
println!("cargo:rustc-link-search=native={}/lib", vulkan_sdk_path);
withprintln!("cargo:rustc-link-search={}/lib", vulkan_sdk_path);
- This change resolves the issue and allows the build to work on Windows
- It's recommended to test the changes on both Windows and Linux to ensure compatibility
Mar 26, 2024Edited by