Thanks to visit codestin.com
Credit goes to github.com

Skip to content

couldn't find required command: "ninja" #56

@nbro

Description

@nbro

I'm getting the following error if I execute cargo run --bin quake-client under src/bin on Windows 11.

The following warnings were emitted during compilation:                                                                                      

warning: System installed library not found.  Falling back to build from source

error: failed to run custom build command for `shaderc-sys v0.6.3`

Caused by:
  process didn't exit successfully: `C:\Users\me\Desktop\richter\target\debug\build\shaderc-sys-0be2fae614d70684\build-script-build` (exit code: 101)
  --- stdout
  cargo:warning=System installed library not found.  Falling back to build from source

  --- stderr
  thread 'main' panicked at '

  couldn't find required command: "ninja"

  ', C:\Users\me\.cargo\registry\src\index.crates.io-6f17d22bba15001f\shaderc-sys-0.6.3\build\cmd_finder.rs:50:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

I'm not familiar with ninja. I was getting a similar error before but for cmake, so I installed cmake. I suppose I also need to install ninja, but given that I am unfamiliar with it, I'd like first to understand why I need to do it and what the recommended way to install this tool on Windows is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions