| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -183,7 +183,7 @@ requirements common for all platforms. | |||
| 183 | 183 | ||
| 184 | 184 | ### Linux | |
| 185 | 185 | ||
| 186 | - * Install packages: `sudo apt-get install python-dev cmake g++ libgtk2.0-dev libgtkglext1-dev` | ||
| 186 | + * Install packages: `sudo apt-get install cmake g++ libgtk2.0-dev libgtkglext1-dev` | ||
| 187 | 187 | * If building CEF from sources: | |
| 188 | 188 | * Official binaries are built on Ubuntu 14.04 (cmake 2.8.12, g++ 4.8.4) | |
| 189 | 189 | * Download [ninja](http://martine.github.io/ninja/) 1.7.1 or later | |
@@ -200,11 +200,8 @@ requirements common for all platforms. | |||
| 200 | 200 | [cef/BuildingOnDebian7.md](https://bitbucket.org/chromiumembedded/cef/wiki/BuildingOnDebian7.md) and | |
| 201 | 201 | [cef/#1575](https://bitbucket.org/chromiumembedded/cef/issues/1575), | |
| 202 | 202 | and [cef/#1697](https://bitbucket.org/chromiumembedded/cef/issues/1697) | |
| 203 | - * If building CEF from sources, 32-bit on 64-bit machine: | ||
| 204 | - * Follow the configuration [here](https://bitbucket.org/chromiumembedded/cef/wiki/AutomatedBuildSetup.md#markdown-header-linux-configuration) | ||
| 205 | - * To perform a 32-bit Linux build on a 64-bit Linux system see | ||
| 206 | - Linux configuration in upstream cef/AutomatedBuildSetup.md. See also | ||
| 207 | - [cef/#1804](https://bitbucket.org/chromiumembedded/cef/issues/1804). | ||
| 203 | + * Building CEF 32-bit is only possible using cross-compiling on | ||
| 204 | + 64-bit machine. See [Issue #328](https://github.com/cztomczak/cefpython/issues/328). | ||
| 208 | 205 | * Sometimes it is also required to install these packages (eg. chroot): | |
| 209 | 206 | `sudo apt-get install libnss3 libnspr4 libxss1 libgconf-2-4` | |
| 210 | 207 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,11 +9,14 @@ | |||
| 9 | 9 | #include "common/cefpython_public_api.h" | |
| 10 | 10 | #endif | |
| 11 | 11 | ||
| 12 | - #if defined(OS_LINUX) | ||
| 12 | + #ifdef BROWSER_PROCESS | ||
| 13 | + #ifdef OS_LINUX | ||
| 13 | 14 | #include <gtk/gtk.h> | |
| 15 | + #include <gdk/gdk.h> | ||
| 14 | 16 | #include <gdk/gdkx.h> | |
| 15 | 17 | #include "print_handler_gtk.h" | |
| 16 | 18 | #endif | |
| 19 | + #endif | ||
| 17 | 20 | ||
| 18 | 21 | #include "cefpython_app.h" | |
| 19 | 22 | #include "util.h" | |
@@ -133,6 +136,7 @@ void CefPythonApp::OnRenderProcessThreadCreated( | |||
| 133 | 136 | } | |
| 134 | 137 | ||
| 135 | 138 | CefRefPtr<CefPrintHandler> CefPythonApp::GetPrintHandler() { | |
| 139 | + #ifdef BROWSER_PROCESS | ||
| 136 | 140 | #if defined(OS_LINUX) | |
| 137 | 141 | // For print handler to work GTK must be initialized. This is | |
| 138 | 142 | // required for some of the examples. | |
@@ -141,6 +145,7 @@ CefRefPtr<CefPrintHandler> CefPythonApp::GetPrintHandler() { | |||
| 141 | 145 | LOG_DEBUG << "Initialize GTK"; | |
| 142 | 146 | gtk_init(0, NULL); | |
| 143 | 147 | } | |
| 148 | + #endif | ||
| 144 | 149 | #endif | |
| 145 | 150 | return print_handler_; | |
| 146 | 151 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ | |||
| 30 | 30 | [--force-chromium-update FORCE_CHROMIUM_UPDATE] | |
| 31 | 31 | [--no-cef-update NO_CEF_UPDATE] | |
| 32 | 32 | [--cef-branch BRANCH] [--cef-commit COMMIT] | |
| 33 | - [--build-dir BUILD_DIR] [--cef-build-dir CEF_BUIL_DDIR] | ||
| 33 | + [--build-dir BUILD_DIR] [--cef-build-dir CEF_BUILD_DIR] | ||
| 34 | 34 | [--ninja-jobs JOBS] [--gyp-generators GENERATORS] | |
| 35 | 35 | [--gyp-msvs-version MSVS] | |
| 36 | 36 | automate.py (-h | --help) [type -h to show full description for options] | |
@@ -900,7 +900,7 @@ def run_command(command, working_dir, env=None): | |||
| 900 | 900 | env = getenv() | |
| 901 | 901 | # When passing list of args shell cannot be True on eg. Linux, read | |
| 902 | 902 | # notes in build.py | |
| 903 | - shell=(platform.system() == "Windows") | ||
| 903 | + shell = (platform.system() == "Windows") | ||
| 904 | 904 | return subprocess.check_call(args, cwd=working_dir, env=env, shell=shell) | |
| 905 | 905 | ||
| 906 | 906 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments