building chromium on linux

373 views
Skip to first unread message

نبيل يونس Nabeel Younus

unread,
Mar 13, 2014, 10:12:36 PM3/13/14
to chromi...@chromium.org
Hi,

  I am only looking to build the 'base' only from chromium in linux.

  What changes I need to make in gyp_chromium or all.gyp to do that.

Regards,
Nabeel

Nico Weber

unread,
Mar 13, 2014, 10:14:34 PM3/13/14
to nyk...@gmail.com, Chromium-dev
None.

ninja -C out/Release base


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

Nabeel Younus

unread,
Mar 13, 2014, 10:50:01 PM3/13/14
to Nico Weber, Chromium-dev
Hi Nico,

    I am trying to use ninja now. But it kind of taking too much time. . . Following is the output I am getting:-

teknique@ubuntu:~/experimentation/chromium/src/base$ sudo ninja -C out/Release base
log: ninja version 0.1.3 initializing
log: magic group: gid=0 (root)
log: entering main loop
log: generating initial pid array..
log: now monitoring process activity


   Any thing I am doing wrong ? 

   What I need to have an out folder with .o libs . . .

Regards,
Nabeel
  
--
Regards,
----------------------------------
Nabeel Younus Khan
PhD Student (Computer Science Dept),
University of Otago
Dunedin, New Zealand
Cell: +64212689881

Scott Graham

unread,
Mar 13, 2014, 10:54:26 PM3/13/14
to nyk...@gmail.com, Nico Weber, Chromium-dev
You're getting the wrong `ninja`.

Running "which ninja" should point to the depot_tools version, you'll probably need to fix your PATH.

Yuta Kitamura

unread,
Mar 13, 2014, 10:54:36 PM3/13/14
to nyk...@gmail.com, Nico Weber, Chromium-dev
You are using a wrong ninja (which is not a build tool). Use ninja bundled with depot tools.

Also, don't use sudo for building. Chromium builds don't require root privilege.

Scott Graham

unread,
Mar 13, 2014, 10:55:16 PM3/13/14
to nyk...@gmail.com, Nico Weber, Chromium-dev
(Also, don't run with sudo.)

Nabeel Younus

unread,
Mar 13, 2014, 11:00:23 PM3/13/14
to Yuta Kitamura, Nico Weber, Chromium-dev
Hi Everyone,

    Actually, I have a part of Chromium library. Because we have to integrate it with some existing system which does not support all libraries.

    So basically I am trying to update ALL.GYP to load only base library stuff. I know it sounds wierd. 

    SO basically, when I run gyp_chromium, I get multiple MakeFiles in base folder. Though I am not getting any generic MakeFile which can then build the libs with in base. 

    I got it once by some trick but don't know how I got it. Cannot get it back again.

Regards,
Nabeel

Yuta Kitamura

unread,
Mar 13, 2014, 11:11:51 PM3/13/14
to Nabeel Younus, Nico Weber, Chromium-dev
ninja doesn't use Makefile.

Please read the build instructions carefully and try to get functional chrome binary first. make isn't supported at this point.

Also, note that this is not a help forum. If you are trying to build some custom stuff, that's fine, but it's basically "at your own risk"-kind of thing which we are unlikely to provide meaningful support for.

Thanks,
Yuta

Thiago Farina

unread,
Mar 13, 2014, 11:15:07 PM3/13/14
to nyk...@gmail.com, Yuta Kitamura, Nico Weber, Chromium-dev


On Friday, March 14, 2014, Nabeel Younus <nyk...@gmail.com> wrote:
Hi Everyone,

    Actually, I have a part of Chromium library. Because we have to integrate it with some existing system which does not support all libraries.

    So basically I am trying to update ALL.GYP to load only base library stuff. I know it sounds wierd. 

    SO basically, when I run gyp_chromium, I get multiple MakeFiles in base folder. Though I am not getting any generic MakeFile which can then build the libs with in base. 

If you are on Linux run: 

export GYP_GENERATORS=ninja
build/gyp_chromium

On Windows is similar I think:

set GYP_GENERATORS=ninja

Though, I thought ninja would be the default generator already, so you wouldn't need to set GYP_GENERATORS.

Do you have set it to make?
 
    I got it once by some trick but don't know how I got it. Cannot get it back again.

Are you following our instructions to get the code?

It should be pretty straight forward, but looks like you are trying to checkout base in a standalone maner, and that is not officialy supported.
Thiago Farina

Reply all
Reply to author
Forward
0 new messages