-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ninja: error: loading 'build.ninja': No such file or directory #1463
Comments
Are you just running ninja with no arguments? |
@mydongistiny yes ! Need to take parameters? |
I got the same. I have install using The error occurs with or without arguments |
I have the same issue and also using |
on windows too. |
Depending on what project you're building and what arguments you are using you may need to set GYP_GENERATORS=ninja Nobody is giving any other information about full command, project you're trying to build etc. There's a few reasons why you could get this error. |
@ThanushreeEG what was the output of meson --reconfigure? Did it run ninja for you? |
@AmjadHD Have you solved this problem? I am also meet this error on Windows. |
@ThanushreeEG Does the |
To answer the original question:
Because Ninja needs a build definition file in the current working directory. |
Same problem on ubuntu 18.04
|
@hyperfraise It seems you're running meson in your home directory. |
I too encounter the same problem when I tried to build LLVM on windows.
|
+1 tried on two mac and install from brew or source, all get error loading [Solved] Generate build.ninja file first and execute the binary. It works. |
I got how to work use |
In this case, same error happened. |
What is |
I got it from |
same problem~
|
Building on Mac only works without headless.gn. The reason for that is that the headless windowing system (ozone's headless platform in particular) that we use on Linux/Win and is configured in headless.gn isn't yet supported on Mac. On Wed, Aug 9, 2017, 17:04 brandon.kobel via headless-dev headle...@chromium.org wrote: |
In case of building Chromium, try generating build.ninja with |
the same problem on ubuntu 18.04 |
Same on MX Linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1. I've tried to use ninja on and debian and arch. Got it barely working on arch but no avail in debian. |
Is there a fix for this |
OS X 11.3 I also have this issue. It's unclear to me how to fix this. I don't understand why this was closed as I don't see a clear fix above. I saw this comment: Ok, how do I generate the build.ninja file and where does it go? What binary do I need to execute and where is it? |
For anyone still finding this thread first in search results, the solution here worked for me google/filament#1810 |
Hi, in the process of installing GTK stress testing tool i need to do install dependencies. but when I am executing with ninja command i am getting an issue...anyone could you please help me out.. thanks in advance. following are the dependencies need to install....
|
Did you try to locate the build.ninja file and run ninja in that folder? |
this problem still there |
|
I have successfully fix this, finally!!!!! If you follow the README of https://github.com/ninja-build/ninja to build the ninja from source, then you can use command like To use ninja in other place, I copy and paste all ninja files (not include the build folder and other txt files) to where I want to use B.T.W., if this is helpful to you, could you please visit my own repositories? Maybe there are something interesting. |
At U20 was resolved for me only when using "pip install ninja" rather than "sudo apt install ninja-build" |
Can you show how the command line code will look like? |
i got the solution just type : sudo apt install generate-ninja that's it |
i have the same problem, and i already did that ofc, the out/Default directory exists, gn gen out/Default didn't provide any output, autoninja -C out/Default complains about the build.ninja file not being a thing in the directory, (I double-checked, yeah it doesn't exist.), also i'm doing this on ubuntu. |
that doesn't work for me. |
Lösung für MACos |
You probably just have the generated |
The output of meson setup build said the system lacks some dependencies. something like "meson.build:72:8: ERROR: Dependency "xcb-aux" not found, tried pkgconfig and cmake" After installing those critical packages or just simply disabling the functionalities, I managed to run ninja -C build successfully. |
~/AndroidStudioProjects/COAT I am getting this error when trying to install on android studio by using git bash. Can anyone help how to solve this? |
i am going insane trying to compile aseprite on linux cause i keep getting this exact same error even after supposedly installing ninja :/ |
Likewise but on mac, I'm not a dev in any way shape or form so this all basically moon runes to me. Rather infuriating... |
Try to clean your project's build dir and re run |
🥳 I confirm Maybe one of these days I should figure out what exactly meson and ninja actually are. I assume they're the equivalent of ./configure and make/make install. |
environment :Mac
Install ninja with the brew intsall ninja command
then on terminal execute ninja occur ninja: error: loading 'build.ninja': No such file or directory 。
➜ ~ ninja
ninja: error: loading 'build.ninja': No such file or directory
➜ ~
Why is this problem still occurring when you have successfully installed ninja?
The text was updated successfully, but these errors were encountered: