Description
UPDATE: Patch attached in comments.
Currently there are some issues when running GTK 3 example, like for example Issue #434 ("Print support in GTK 3 example (gtk3.py) on Linux"). The solution is to link to GTK 3 library when building CEF/Chromium from sources. This issue is to add --use-gtk3
flag to automate.py
script. For further instructions on building see the Build-instructions.md document.
Additionally add support for the --use-gtk3
flag in the build.py
and cython_setup.py
scripts used for building the cefpython3 module. Currently the cefpython3 module links to GTK 2 libraries as found in the cython_setup.py file:
libraries.extend([
"X11",
"gobject-2.0",
"glib-2.0",
"gtk-x11-2.0",
"gdk-x11-2.0",
Also there are multiple places with include headers pointing to GTK 2 locations:
- cython_setup.py (and Mac section as well)
- cpp_utils/Makefile
- subprocess/Makefile
- subprocess/Makefile-libcefpythonapp
- client_handler/Makefile
We might consider providing cefpython releases for GTK 3 in the future. See Issue #447 for details ("Provide CEF Python releases for GTK 3 on Linux and Mac").
Related issue: #467 ("GTK 2 dependency will be removed in CEF v70+").
Related patch by Joseph Kogut that removes GTK 2 dependency in cefpython: jakogut@f35475f