Skip to content

Commit 6e0dd2a

Browse files
committed
Update build instructions for Linux...
Minor fix to automate.py
1 parent 746d9a6 commit 6e0dd2a

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

docs/Build-instructions.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ __Windows__
5050

5151
__Linux__
5252

53+
* Install required packages using apt-get or similar:
54+
```
55+
sudo apt-get install cmake g++ pkg-config gtk+-2.0 libgtkglext1-dev
56+
```
57+
* Download [ninja](http://martine.github.io/ninja/) 1.7.1 or later
58+
and copy it to /usr/bin and chmod 755.
59+
* When building CEF from sources you will need to install many more packages
60+
using the install-build-deps.sh script - instructions are provided
61+
further down on this page.
5362
* Building on Ubuntu 12.04 is supported up to branch 2526 (Chrome 47).
5463
For branches 2623 (Chrome 49) or later Ubuntu 14.04+ is required.
5564
* To build on Debian 7 see
@@ -83,11 +92,27 @@ need to customize the build then use the --help flag to see more.
8392

8493
Run the automate.py tool using the --build-cef flag. Specify cef branch
8594
and optionally how many parallel ninja jobs to run (by default cores/2).
95+
8696
```
8797
cd tools/
8898
python automate.py --build-cef --cef-branch 2526 --ninja-jobs 6
8999
```
90100

101+
__IMPORTANT__: On Linux it will fail on first run. After the chromium
102+
sources are downloaded, it will try to build cef projects and fail
103+
due to missing packages. You will need to run the install-build-deps.sh
104+
script (intended for Ubuntu systems). When the "ttf-mscorefonts-installer"
105+
graphical installer pops up you can deny EULA and not install these fonts
106+
(might deteriorate UX on some systems, experienced on Ubuntu 12.04 32-bit).
107+
108+
```
109+
cd build/chromium/src/build/
110+
chmod 755 install-build-deps.sh
111+
sudo ./install-build-deps.sh --no-arm --no-chromeos-fonts --no-nacl
112+
```
113+
114+
After dependencies are satisifed re-run automate.py.
115+
91116
You should be fine by running it with the default options, but if you
92117
need to customize the build then use the --help flag to see more.
93118

tools/automate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ def getenv():
392392
env = os.environ
393393
env["PATH"] = Options.depot_tools_dir + os.pathsep + env["PATH"]
394394
env["GYP_GENERATORS"] = Options.gyp_generators
395-
env["GYP_MSVS_VERSION"] = Options.gyp_msvs_version
395+
if platform.system() == "Windows":
396+
env["GYP_MSVS_VERSION"] = Options.gyp_msvs_version
396397
# Issue73 patch applied
397398
env["GYP_DEFINES"] = "use_allocator=none"
398399
# To perform an official build set GYP_DEFINES=buildtype=Official.

0 commit comments

Comments
 (0)