Skip to content

Commit 8a61ffe

Browse files
committed
Update build instructions - quick steps how to build CEF Python 51 BETA
1 parent 810ed33 commit 8a61ffe

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

docs/Build-instructions.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,42 @@ Table of contents:
2626
* [How to patch](#how-to-patch)
2727

2828

29+
## Build CEF Python 51 BETA
30+
31+
1. Works fine on Ubuntu 14.04 64-bit (cmake 2.8.12 and g++ 4.8.4)
32+
2. Download 64-bit Linux standard distribution from Spotify builds:
33+
http://opensource.spotify.com/cefbuilds/index.html
34+
* As of writing the proper file is:
35+
"cef_binary_3.2704.1432.g60b3718_linux64.tar.bz2"
36+
* Check CEF version in "cefpython/src/version/cef_version_linux.h"
37+
to make sure you're downloading the right file
38+
3. Download [ninja](http://martine.github.io/ninja/) 1.7.1 or later
39+
and copy it to /usr/bin and chmod 755.
40+
4. Install packages: `sudo apt-get install python-dev cmake g++`
41+
5. Create projects to build:
42+
```
43+
cd cef_binary/
44+
mkdir build
45+
cd build/
46+
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ..
47+
```
48+
6. To build type: `ninja libcef_dll_wrapper`. You may also build cefclient
49+
by typing `nincja cefclient`, but this will require installing
50+
additional packages, read Requirements further on this page.
51+
7. Copy "cef_binary/Resources/*" to "cefpython/src/linux/binaries_64bit/"
52+
8. Copy "cef_binary/Release/*" to "cefpython/src/linux/binaries_64bit/"
53+
9. Copy "cef_binary/build/libcef_dll_wrapper/*"
54+
to "cefpython/src/linux/setup/lib_64bit/" (create dir)
55+
10. Temporary fix for Isue #231 - copy icudtl.dat and natives_blob.bin
56+
to /usr/bin (where the python executable resides)
57+
11. Build cefpython:
58+
```
59+
cd cefpython/src/linux/
60+
python compile.py 51.0
61+
```
62+
12. As of writing only "pygtk_.py" and "kivy_.py" examples work.
63+
64+
2965
## Requirements
3066

3167
Below are platform specific requirements. Do these first before
@@ -57,7 +93,7 @@ __Windows__
5793

5894
__Linux__
5995

60-
* Install packages: `sudo apt-get install python-dev cmake g++`
96+
* Install packages: `sudo apt-get install python-dev cmake g++`
6197
* To build upstream cefclient/cefsimple you need to install these packages:
6298
`sudo apt-get install libgtk2.0-dev libgtkglext1-dev`
6399
* If building CEF from sources:

0 commit comments

Comments
 (0)