google / shaderc-rs

Rust bindings for the shaderc library.
https://docs.rs/shaderc
Apache License 2.0
261 stars 64 forks source link

cannot find native shaderc library on system but Vulkan-SDK is installed #126

Open Axeltherabbit opened 2 years ago

Axeltherabbit commented 2 years ago
cargo build
   Compiling shaderc-sys v0.7.4
The following warnings were emitted during compilation:

warning: shaderc: searching native shaderc libraries in Vulkan SDK 'C:\VulkanSDK\1.2.182.0/lib'
warning: shaderc: cannot find native shaderc library on system; falling back to build from source

error: failed to run custom build command for `shaderc-sys v0.7.4`
 ls C:\VulkanSDK\1.2.182.0/lib

    Directory: C:\VulkanSDK\1.2.182.0\lib

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        05/07/2021     17:19           2002 dxcompiler.lib
-a----        05/07/2021     17:24         152594 GenericCodeGen.lib
-a----        05/07/2021     17:25         348266 glslang.lib
-a----        05/07/2021     17:24           1754 HLSL.lib
-a----        05/07/2021     17:25       27342690 MachineIndependent.lib
-a----        05/07/2021     17:24          46454 OGLCompiler.lib
-a----        05/07/2021     17:24          29794 OSDependent.lib
-a----        05/07/2021     17:33         373524 shaderc.lib
-a----        05/07/2021     17:33      103086770 shaderc_combined.lib
-a----        05/07/2021     17:33          14918 shaderc_shared.lib
-a----        05/07/2021     17:33         873740 shaderc_util.lib
-a----        05/07/2021     17:30          48324 spirv-cross-c-shared.lib
-a----        05/07/2021     17:30        1291886 spirv-cross-c.lib
-a----        05/07/2021     17:29        4337866 spirv-cross-core.lib
-a----        05/07/2021     17:29         958870 spirv-cross-cpp.lib
-a----        05/07/2021     17:29        6078700 spirv-cross-glsl.lib
-a----        05/07/2021     17:29        3720286 spirv-cross-hlsl.lib
-a----        05/07/2021     17:29        9525972 spirv-cross-msl.lib
-a----        05/07/2021     17:29         740386 spirv-cross-reflect.lib
-a----        05/07/2021     17:29          58934 spirv-cross-util.lib
-a----        05/07/2021     17:25        2482530 SPIRV-Tools-link.lib
-a----        05/07/2021     17:25       81939776 SPIRV-Tools-opt.lib
-a----        05/07/2021     17:25        9515616 SPIRV-Tools-reduce.lib
-a----        05/07/2021     17:24          15832 SPIRV-Tools-shared.lib
-a----        05/07/2021     17:24       22441006 SPIRV-Tools.lib
-a----        05/07/2021     17:25        6457614 SPIRV.lib
-a----        05/07/2021     17:24        1709384 SPVRemapper.lib
-a----        05/07/2021     17:41       10248404 VkLayer_utils.lib
-a----        05/07/2021     17:23          52366 vulkan-1.lib

I'm trying to build the crate but it keep failing, I installed Vulkan-SDK with chocolatey https://community.chocolatey.org/packages/vulkan-sdk