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

can not find build.ninja when run it in windows #2477

Open
GreameLee opened this issue Aug 14, 2024 · 2 comments
Open

can not find build.ninja when run it in windows #2477

GreameLee opened this issue Aug 14, 2024 · 2 comments

Comments

@GreameLee
Copy link

GreameLee commented Aug 14, 2024

I compile it successfully and it shows like:

>python configure.py --bootstrap
bootstrapping ninja...
warning: A compatible version of re2c (>= 0.15.3) was not found; changes to src/*.in.cc will not affect your build.
depfile_parser.cc
lexer.cc
build.cc
build_log.cc
clean.cc
clparser.cc
debug_flags.cc
deps_log.cc
disk_interface.cc
dyndep.cc
dyndep_parser.cc
edit_distance.cc
eval_env.cc
graph.cc
graphviz.cc
json.cc
line_printer.cc
manifest_parser.cc
metrics.cc
missing_deps.cc
parser.cc
state.cc
status_printer.cc
string_piece_util.cc
util.cc
version.cc
subprocess-win32.cc
includes_normalize-win32.cc
msvc_helper-win32.cc
msvc_helper_main-win32.cc
minidump-win32.cc
getopt.c
ninja.cc
Generating code
Finished generating code
wrote build.ninja.
bootstrap complete.  rebuilding...
[35/35] LINK ninja.exe
Generating code
Finished generating code

and run the ninja -help successfully but when run ninja -v it shows:

>ninja -v

ninja: error: loading 'build.ninja': The system cannot find the file specified.
@mcprat
Copy link
Contributor

mcprat commented Aug 19, 2024

not sure, but fortunately you don't have to call ninja to rebuild itself, the --bootstrap option does it for you

bootstrap complete. rebuilding...

@digit-google
Copy link
Contributor

ninja -v returning this message is pretty normal. It means you are running Ninja from a directory that does not have a build.ninja file to read from.

The -v is the verbose flag, do you want to run ninja --version instead?

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