Skip to content

Support linking to GTK 3 when building CEF from sources and when building cefpython module. PATCH attached in comments. #446

Open
@cztomczak

Description

@cztomczak

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:

  1. cython_setup.py (and Mac section as well)
  2. cpp_utils/Makefile
  3. subprocess/Makefile
  4. subprocess/Makefile-libcefpythonapp
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions