Friday, 28 April 2017

How to build Chromium on Ubuntu

I followed official instructions and, with minor modifications, managed to build and run Chromium on 64-bit Ubuntu 16.04. Entire process on PC with Intel i7 with 16GB RAM takes couple of hours. I had Git and Python installed already so went straight into the process:

Clone depot_tools repository (this was in my ~/dev directory):

$ git clone

The next step was to append depot_tools path to to PATH. I first tried:

$ export PATH="$PATH:~/dev/depot_tools"

This made running script to fail as described here. I therefore applied suggestion from that forum thread and used the path in the following form:

$ export PATH="$PATH:${HOME}/dev/depot_tools"

Create directory for Chromium source code

$ mkdir chromium
$ cd chromium

Check out the code (without the full repo history) and its dependencies:

$ fetch --nohooks --no-history chromium

Fetch creates scr directory:

$ cd src

Install additional build dependencies:

$ ./build/

Run hooks which fetch additional binaries:

$ gclient runhooks

Create a build directory:

$ gn gen out/Default

Set gn arguments in order to speed up build. The following command will open a config file in vi editor:

$ gn args out/Default

I added the following lines:


Build Chromium:

$ ninja -C out/Default chrome

Run built Chromium executable:

$ ./out/Default/chrome

Et voila! Chromium opens:

NOTE: I didn't install Google API keys and this is the reason for the notification which appears in the browser.


Haris K. said...

Thank you for guide!
-Which codecs should be added to play videos from Facebook?
-How can we compile current stable version?

micheal pan said...

BE SMART AND BECOME RICH IN LESS THAN 3DAYS....It all depends on how fast 
you can be to get the new PROGRAMMED blank ATM card that is capable of
hacking into any ATM machine,anywhere in the world. I got to know about 
this BLANK ATM CARD when I was searching for job online about a month 
ago..It has really changed my life for good and now I can say I'm rich and 
I can never be poor again. The least money I get in a day with it is about 
$50,000.(fifty thousand USD) Every now and then I keeping pumping money 
into my account. Though is illegal,there is no risk of being caught 
,because it has been programmed in such a way that it is not traceable,it 
also has a technique that makes it impossible for the CCTVs to detect 
you..For details on how to get yours today, email the hackers on : ( ). Tell your 
loved once too, and start to live large. That's the simple testimony of how 
my life changed for good...Love you all ...the email address again is ;