glfw-rs
glfw-rs copied to clipboard
Doesn't appear to be working with Visual Studio 2022
Here's how GLFW is referenced in the Cargo.toml
:
[dependencies.glfw]
git = "https://github.com/bjz/glfw-rs.git"
and getting the following error when running cargo build
with Visual Studio 2022 C++ Build Tools installed:
$ cargo build
Compiling glfw-sys v3.3.2
error: failed to run custom build command for `glfw-sys v3.3.2`
Caused by:
process didn't exit successfully: `C:\dev\rust\RustCraft\target\debug\build\glfw-sys-65b2eb1e4d353b89\build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at '
couldn't determine visual studio generator
if VisualStudio is installed, however, consider running the appropriate vcvars script before building this crate
', C:\Users\david\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.42\src\lib.rs:764:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Manually downgrading to Visual Studio 2019 worked fine.
doesnt seem to support 2022.
error: failed to run custom build command for `glfw-sys v4.0.0+3.3.5`
Caused by:
process didn't exit successfully: `C:\Users\jonathan\SynologyDrive\Desktop\newcoa\curse-of-aros-2\desktop\target\debug\build\glfw-sys-dcf2daa1637f5ac8\build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at '
unsupported or unknown VisualStudio version: 17.0
if another version is installed consider running the appropriate vcvars script before building this crate
', C:\Users\jonathan\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.45\src\lib.rs:797:25
I have the same issue