Introduction to WebKitGTK+

The WebKitGTK+ is the port of the portable web rendering engine WebKit to the GTK+ 3 platform.

This package is known to build and work properly using an LFS-7.7-systemd platform.

Package Information

  • Download (HTTP): http://webkitgtk.org/releases/webkitgtk-2.12.2.tar.xz

  • Download MD5 sum: 41e018d651413fdbcd4b6480ab1fbd7b

  • Download size: 11.2 MB

  • Estimated disk space required: 925 MB (109 MB installed)

  • Estimated build time: 38 SBU (with parallelism=4, estimated 90+ SBU using one core)

WebKitGTK+ Dependencies


CMake-3.5.2, gst-plugins-base-1.8.1, GTK+-3.20.4, ICU-57.1, libgudev-230, libsecret-0.18.4, libsoup-2.54.1, libwebp-0.5.0, Mesa-11.2.2, Ruby-2.3.1, SQLite-3.13.0 and Which-2.21



GTK-Doc-1.25. HarfBuzz-1.2.7, libnotify-0.7.6, LLVM-3.8.0, Hyphen, and MathML



Note that WebKitGTK+ links against GTK+ 2 in order to be able to use NPAPI plugins such as Adobe Flash.

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/webkitgtk

Installation of WebKitGTK+

Install WebKitGTK+ by running the following commands:

mkdir build &&
cd    build &&

cmake -DCMAKE_BUILD_TYPE=Release  \
      -DCMAKE_SKIP_RPATH=ON       \
      -DPORT=GTK                  \
      -DLIB_INSTALL_DIR=/usr/lib  \
      -DUSE_LIBHYPHEN=OFF         \
      -Wno-dev .. &&

This package does not have a working testsuite.

Now, as the root user:

make install &&
install -vdm755 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 &&
install -vm644 ../Documentation/webkitgtk2-4.0/html/*  \
               /usr/share/gtk-doc/html/webkit2gtk-4.0        &&
install -vm644 ../Documentation/webkitdomgtk-4.0/html/* \

Command Explanations

-DCMAKE_BUILD_TYPE=Release: This switch is used to apply higher level of the compiler optimizations.

-DCMAKE_SKIP_RPATH=ON: This switch is used to prevent hardcoding a runtime path into the built executables.

-DLIB_INSTALL_DIR=/usr/lib: This switch is used to get libraries to install to /usr/lib instead of /usr/lib64 on a 64 bit system.

-DENABLE_SPELLCHECK=OFF: Use this switch if you don't want to install enchant-1.6.0 and don't need the spell checking feature.

-DENABLE_GEOLOCATION=OFF: Use this switch if you don't want to install GeoClue-0.12.0 or GeoClue-2.2.0 and don't need the geolocation feature.

-DENABLE_GTKDOC=ON: Use this switch if you have installed GTK-Doc-1.25 and wish to build the API manuals.


Installed Programs: jsc and MiniBrowser
Installed Libraries: libjavascriptcoregtk-4.0.so and libwebkit2gtk-4.0.so
Installed Directories: /usr/include/webkitgtk-4.0, /usr/lib/webkit2gtk-4.0, /usr/libexec/webkit2gtk-4.0, /usr/share/gtk-doc/html/webkit2gtk-4.0 and /usr/share/gtk-doc/html/webkitdomgtk-4.0

Short Descriptions


is a command-line utility that allows you to run JavaScript programs outside of the context of a web browser.


is a very simple graphical browser, useful for testing.


contains core JavaScript API functions used by jsc and libwebkit2gtk-4.0.so.


contains the WebKit2 API functions.

Last updated on 2016-05-07 15:10:29 -0500