Skip to content

Ninja not working to compile engine #163487

@GiacomoPignoni

Description

@GiacomoPignoni

Hello,
I've always complied the engine locally on my machine, today is the first time I try to compile it after it has been moved in flutter/flutter repo.
The problem is that I'm not able to compile it anymore, because of a problem with Ninja
I follow the instruction to compile the engine as described here
https://github.com/flutter/flutter/blob/master/engine/src/flutter/docs/contributing/Compiling-the-engine.md

I have this error

depot_tools/ninja.py: Could not find Ninja in the third_party of the current project, nor in your PATH.
Please take one of the following actions to install Ninja:
- If your project has DEPS, add a CIPD Ninja dependency to DEPS.
- Otherwise, add Ninja to your PATH *after* depot_tools.

I guess it's because there are something wrong with the settings of gclient, depot_tools etc...
I've put my .gclient file in flutter/flutter (the root) as indicated here https://github.com/flutter/flutter/blob/master/engine/src/flutter/docs/contributing/Setting-up-the-Engine-development-environment.md
The gclient sync -D run correctly

I've tried to read the code of ninja.py inside depot_tools and, as far as I understand, there is no way that Ninja can work with this folders setup
But I'm not expert enough to really understand what's wrong
Is this my problem? Or there really are something wrong since the engine has been moved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: local-engine-developmentLocal builds of the engine working betterengineflutter/engine related. See also e: labels.found in release: 3.29Found to occur in 3.29found in release: 3.30Found to occur in 3.30has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions