Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab0e87b

Browse files
committed
Update build instructions, info and commands to checkout a stable branch
1 parent b893ea3 commit ab0e87b

File tree

1 file changed

+38
-10
lines changed

1 file changed

+38
-10
lines changed

docs/Build-instructions.md

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ Before you can build CEF Python or CEF you must satisfy
4848
## Quick build instructions for Windows
4949

5050
Complete steps for building CEF Python v50+ with Python 2.7 using
51-
prebuilt binaries and libraries from GitHub Releases:
51+
prebuilt binaries and libraries from GitHub Releases.
52+
53+
When cloning repository you should checkout a stable branch which
54+
are named "cefpythonXX" where XX is Chromium version number.
5255

5356
1) Tested and works fine on Windows 7 64-bit
5457

@@ -65,10 +68,12 @@ prebuilt binaries and libraries from GitHub Releases:
6568
you have to install "Visual C++ 2008 Redistributable Package (x64)"
6669
from [here](https://www.microsoft.com/en-us/download/details.aspx?id=15336)
6770

68-
6) Clone cefpython and create a build/ directory and enter it:
71+
6) Clone cefpython, checkout for example "cefpython57" branch
72+
that includes Chromium v57, then create a build/ directory and enter it:
6973
```
7074
git clone https://github.com/cztomczak/cefpython.git
7175
cd cefpython/
76+
git checkout cefpython57
7277
mkdir build/
7378
cd build/
7479
```
@@ -80,7 +85,7 @@ pip install --upgrade -r ../tools/requirements.txt
8085

8186
8) Download Windows binaries and libraries from
8287
[GH releases](https://github.com/cztomczak/cefpython/tags)
83-
tagged e.g. 'v55-upstream' when building v55. The version
88+
tagged e.g. 'v57-upstream' when building v57. The version
8489
of the binaries must match exactly the CEF version from
8590
the "cefpython/src/version/cef_version_win.h" file
8691
(the CEF_VERSION constant).
@@ -96,7 +101,10 @@ python ../tools/build.py xx.x
96101
## Quick build instructions for Linux
97102

98103
Complete steps for building CEF Python v50+ using prebuilt
99-
binaries and libraries from GitHub Releases:
104+
binaries and libraries from GitHub Releases.
105+
106+
When cloning repository you should checkout a stable branch which
107+
are named "cefpythonXX" where XX is Chromium version number.
100108

101109
1) Tested and works fine on Ubuntu 14.04 64-bit
102110

@@ -109,10 +117,12 @@ binaries and libraries from GitHub Releases:
109117
sudo apt-get install python-dev cmake g++ libgtk2.0-dev
110118
```
111119

112-
4) Clone cefpython and create build/ directory and enter it:
120+
4) Clone cefpython, checkout for example "cefpython57" branch
121+
that includes Chromium v57, then create build/ directory and enter it:
113122
```
114123
git clone https://github.com/cztomczak/cefpython.git
115124
cd cefpython/
125+
git checkout cefpython57
116126
mkdir build/
117127
cd build/
118128
```
@@ -124,7 +134,7 @@ sudo pip install --upgrade -r ../tools/requirements.txt
124134

125135
6) Download Linux binaries and libraries from
126136
[GH releases](https://github.com/cztomczak/cefpython/tags)
127-
tagged e.g. 'v55-upstream' when building v55. The version
137+
tagged e.g. 'v57-upstream' when building v57. The version
128138
of the binaries must match exactly the CEF version from
129139
the "cefpython/src/version/cef_version_linux.h" file
130140
(the CEF_VERSION constant).
@@ -225,17 +235,22 @@ requirements common for all platforms.
225235

226236
## Build using prebuilt CEF binaries and libraries
227237

228-
1) Clone cefpython and create a build/ directory and enter it:
238+
When cloning repository you should checkout a stable branch which
239+
are named "cefpythonXX" where XX is Chromium version number.
240+
241+
1) Clone cefpython, checkout for example "cefpython57" branch
242+
that includes Chromium v57, then create a build/ directory and enter it:
229243
```
230244
git clone https://github.com/cztomczak/cefpython.git
231245
cd cefpython/
246+
git checkout cefpython57
232247
mkdir build/
233248
cd build/
234249
```
235250

236251
2) Download binaries and libraries from
237252
[GH releases](https://github.com/cztomczak/cefpython/tags)
238-
tagged eg. 'v55-upstream' when building v55. The version
253+
tagged eg. 'v57-upstream' when building v57. The version
239254
of the binaries must match exactly the CEF version from
240255
the "cefpython/src/version/" directory (look for CEF_VERSION
241256
constant in .h file).
@@ -251,10 +266,15 @@ python ../tools/build.py xx.x
251266

252267
## Build using CEF binaries from Spotify Automated Builds
253268

254-
1) Clone cefpython and create a build/ directory and enter it:
269+
When cloning repository you should checkout a stable branch which
270+
are named "cefpythonXX" where XX is Chromium version number.
271+
272+
1) Clone cefpython, checkout for example "cefpython57" branch
273+
that includes Chromium v57, then create a build/ directory and enter it:
255274
```
256275
git clone https://github.com/cztomczak/cefpython.git
257276
cd cefpython/
277+
git checkout cefpython57
258278
mkdir build/
259279
cd build/
260280
```
@@ -306,13 +326,21 @@ time you update to newer CEF.
306326
On Linux if there are errors about missing packages or others,
307327
then see solutions in the [Possible errors](#possible-errors) section.
308328

329+
309330
The commands below will build CEF from sources with custom CEF Python
310331
patches applied and then build the CEF Python package. "xx.x" is version
311332
number and "ninja-jobs 4" means to run 4 parallel jobs for compiling,
312-
increase it if you have more CPU cores and want things to build faster:
333+
increase it if you have more CPU cores and want things to build faster.
334+
335+
The commands below checkout for example "cefpython57" branch that
336+
includes Chromium v57. When cloning repository you should checkout
337+
a stable branch which are named "cefpythonXX" where XX is Chromium
338+
version number.
339+
313340
```
314341
git clone https://github.com/cztomczak/cefpython.git
315342
cd cefpython/
343+
git checkout cefpython57
316344
mkdir build/
317345
cd build/
318346
python ../tools/automate.py --build-cef --ninja-jobs 4

0 commit comments

Comments
 (0)