vulkano: 0.12 fails to build
- Version of vulkano: 0.12
- OS: Void Linux
- GPU (the selected PhysicalDevice): Vega 56
- GPU Driver: radv (Linux 5.0.17 / Mesa 19.0.4)
- Example: https://gist.githubusercontent.com/AustinJ235/0ba19d35d61a90b4358384323a4d57b6/raw/80762476e40ab4c549b336f4bff69a86b23f6375/main.rs
Sadly, the new version of vulkano fails to build on computer.
error: /home/austin/Workspace/vulkano/target/debug/deps/libvulkano_shaders-ab78b8590e7207b0.so: undefined symbol: _ZN7glslang8TProgram10getInfoLogEv
--> examples/src/bin/image/main.rs:289:5
|
289 | vulkano_shaders::shader!{
| ^^^^^^^^^^^^^^^
error: aborting due to previous error
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (15 by maintainers)
I had a derp moment I guess, https://github.com/vulkano-rs/vulkano/blob/dd7b202e80a3b1add413a91cc379751c0bbc944a/vulkano-shaders/Cargo.toml#L27
Turns out we already have the feature flag available for this
Just in case someone needs an instant solution: I “solved” this issue temporary by building shaderc from source, this requires cmake and python3 and a time-wasting process, but if you just want to build it NOW, add following in your cargo.toml:
and build with
--features=shaderc_fix(e.g.cargo run --features=shaderc_fix)