ninja: error: loading 'build.ninja': The system cannot find the file specified
Asked Answered
S

2

21

I installed chocolatey and then ninja using choco install ninja. It got installed at C:\ProgramData\chocolatey\lib\ninja\tools.

I added the path to the Environment variables too. When I launch ninja now, it throws and error:

ninja: error: loading 'build.ninja': The system cannot find the file specified.

I just typed ninja on the powerShell prompt and this error is thrown! Does anyone have any idea of what's happening actually?

Smutty answered 30/7, 2018 at 7:30 Comment(1)
Same issue, tried choco install ninja and tried copying ninja.exe file directly (github.com/ninja-build/ninja/releases), both added to the path.Ehrman
M
11

The ninja build system on your computer worked correctly. That error will occur if you run ninja with no arguments. If you add some arguments for it, such as ninja --version and it'll work as you expected

Muggy answered 27/3, 2022 at 9:50 Comment(0)
H
2

i believe the build.ninja is generated when you run the meson command , so i believe something wrong with your build process

Hanforrd answered 29/10, 2022 at 22:50 Comment(1)
Thank you! That was it in my case, building Zathura.Rectus

© 2022 - 2024 — McMap. All rights reserved.