Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't appear to be working with Visual Studio 2022 #498

Open
DazKins opened this issue Mar 13, 2022 · 2 comments
Open

Doesn't appear to be working with Visual Studio 2022 #498

DazKins opened this issue Mar 13, 2022 · 2 comments

Comments

@DazKins
Copy link

DazKins commented Mar 13, 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.

@jonatino
Copy link

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

@peterprototypes
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants