vulkano: 0.12 fails to build

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)

Most upvoted comments

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:

shaderc = "0.6.1"
shaderc-sys = "0.6.1"

[features]
shaderc_fix = ["shaderc/build-from-source"]

and build with --features=shaderc_fix (e.g. cargo run --features=shaderc_fix)