google / shaderc-rs

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

Unable to build #78

Open JonathanWoollett-Light opened 4 years ago

JonathanWoollett-Light commented 4 years ago

In cloning the https://github.com/google/shaderc-rs and running cargo build on both the shaderc-sys and shaderc-rs neither work

Resulting in these errors respectively:

shaderc-sys errors:

image

shaderc-rs errors:

image

Install

image

(and got both VS 2017 and VS 2019 installed with their respective build tools, Desktop development with C++ tool)

(originally I was trying to compile a library which depended upon this library (vulkano) which eventually lead me to this issue.)

What am I doing wrong here?

Razaekel commented 4 years ago

To add on to this, a very similar issue that I have:

image image

required software is installed: image

JonathanWoollett-Light commented 4 years ago

An update, it seems to now work:

image

I have no idea why, nor have I really changed anything purposefully. Since I really have no idea what caused the original issue, I'm not closing the issue.

raphlinus commented 4 years ago

If any one runs into this issue, it's likely because the C++ components of the build are leaving stale junk around somewhere in the target/ filter after a failed build, for example if you don't have the prerequisites installed. In other words, if your build fails, you install the required components, and try again, you'll likely see this error.

Nuking target worked for me.