ninja: error: loading 'build.ninja': No such file or directory

33,775 views
Skip to first unread message

Carlo Gandolfi

unread,
Jun 13, 2013, 9:33:51 AM6/13/13
to chromi...@chromium.org
I'm trying to build Chromium on OS X 10.8, using ninja but I get this error:

$ ninja -C /Users/admin/chromium_27.0.1453.110/src/xcodebuild/Release chrome
ninja: Entering directory `/Users/admin/chromium_27.0.1453.110/src/xcodebuild/Release'
ninja: error: loading 'build.ninja': No such file or directory

Thanks in advance for your help.

Robert Shield

unread,
Jun 13, 2013, 9:39:18 AM6/13/13
to gan...@gmail.com, Chromium-dev
Did you follow the instructions at https://code.google.com/p/chromium/wiki/NinjaBuild to generate the ninja build files?



--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
 
 
 

Joao da Silva

unread,
Jun 13, 2013, 9:40:46 AM6/13/13
to gan...@gmail.com, Chromium-dev
The ninja build files are generated into a directory called 'out' by default, try replacing 'xcodebuild' with 'out' in the command line.


Carlo Gandolfi

unread,
Jun 13, 2013, 9:51:18 AM6/13/13
to chromi...@chromium.org, gan...@gmail.com
Il giorno giovedì 13 giugno 2013 15:40:46 UTC+2, Joao da Silva ha scritto:
The ninja build files are generated into a directory called 'out' by default, try replacing 'xcodebuild' with 'out' in the command line.

Yes, 've followed the instructions and now I've found 'out' directory (sorry didn't find it before), now I run:
Mac-mini-di-Admin:chrome admin$ ninja -C /Users/admin/chromium_27.0.1453.110/src/out/Release chrome

And is working..

Thanks 

Carlo Gandolfi

unread,
Jun 13, 2013, 12:20:34 PM6/13/13
to chromi...@chromium.org

On Thu, Jun 13, 2013 at 3:51 PM, Carlo Gandolfi <gan...@gmail.com> wrote:
And is working..

Build succeed in less than two hours.
Thanks

Arun Arjunakani

unread,
Jul 22, 2014, 12:31:28 PM7/22/14
to chromi...@chromium.org, gan...@gmail.com
Is the out folder already created in the src folder?
Message has been deleted

Thiago Farina

unread,
Jan 11, 2016, 8:50:55 AM1/11/16
to edja...@gmail.com, Chromium-dev


On Mon, Jan 11, 2016 at 9:40 AM, Edwin James <edja...@gmail.com> wrote:
I am trying to build chromium for Linux. There's no out folder generated. I could not find build.ninja file as well.


These are the steps i followed

1) I ran 'fetch chromium --nohooks --no-histoty'  - completed successfuly

2)while doing build-dependencies there were errors

E: Unable to locate package lib32ncurses5-dev
E: Unable to locate package lib32z1-dev
I installed these packages manualy.

3)gclient sync     - completed successfuly

4) gclient runhooks 

How ever there's no such out/Debug , or out/Release folder generated.

How come? Did runhooks finish without any errors?

The following does not work for you?

$ ninja -C out/Release chrome

-- 
Thiago Farina

Vicky Android

unread,
Sep 22, 2016, 3:36:01 AM9/22/16
to Chromium-dev, gan...@gmail.com
Hi, I am facing the same issue in building the Chromium_public.apk, The error message says
ninja: Entering directory `out/Default'

ninja: error: loading 'build.ninja': No such file or directory


I have followed all the steps from this link
https://www.chromium.org/developers/how-tos/android-build-instructions using GN build

The question is I couldn't find the ninja build files in Out/Default. And there is only one file args.gn
What I am doing wrong, please help me.

Thanks

Daniel Cheng

unread,
Sep 22, 2016, 3:49:41 AM9/22/16
to vickyy...@gmail.com, Chromium-dev, gan...@gmail.com
You probably interrupted ninja during the regenerating ninja files stage of the build: https://bugs.chromium.org/p/chromium/issues/detail?id=406237

You can fix this by just running gn gen out/Default again.

Daniel

Vicky Android

unread,
Sep 26, 2016, 3:24:54 AM9/26/16
to Chromium-dev, vickyy...@gmail.com, gan...@gmail.com
Hi Daniel,

    Thanks for your Solution and that worked like charm,
I just ran the command as you said "gn gen out/Default" from src dir. and that Fixed the issue. You saved my day.

Thanks
Vigneshwaran.G

Vicky Android

unread,
Sep 26, 2016, 3:25:28 AM9/26/16
to Chromium-dev, vickyy...@gmail.com, gan...@gmail.com
Hi Daniel,

    Thanks for your Solution and that worked like charm,
I just ran the command as you said "gn gen out/Default" from src dir. and that Fixed the issue. You saved my day.

Thanks
Vigneshwaran.G

On Thursday, September 22, 2016 at 1:19:41 PM UTC+5:30, Daniel Cheng wrote:
Reply all
Reply to author
Forward
0 new messages