Introduction to WebKitGTK+

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

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

Package Information

Additional Downloads

WebKitGTK+ Dependencies


Gperf-3.0.4, gst-plugins-base-0.10.36, GTK+-2.24.20, ICU-51.2, libsoup-2.42.2, MesaLib-9.2.0, Ruby-2.0.0, SQLite- and Which-2.20



cURL-7.32.0, gobject-introspection-1.36.0, GTK-Doc-1.19 and MathML

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

Installation of WebKitGTK+



If you are building WebKitGTK+ with make 3.82, make sure that you have built it with the following patch applied or WebKitGTK+ build will fail.

If you have not installed GTK-Doc-1.19, fix a bug that will cause make install to fail:

sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in

Install WebKitGTK+ by running the following commands:

sed -i '/parse-param/ a%lex-param {YYLEX_PARAM}' \
             Source/ThirdParty/ANGLE/src/compiler/glslang.y &&
patch -Np1 -i ../webkitgtk-1.10.2-fix_librt_linking-1.patch &&
./configure --prefix=/usr \
            --libexecdir=/usr/lib/webkitgtk2 \
            --with-gtk=2.0 \
            --disable-webkit2 &&

This package does not have a working testsuite.

Now, as the root user:

make install

Command Explanations

sed ... Source/ThirdParty/ANGLE/src/compiler/glslang.y: This command corrects a problem caused by the most recent version of Bison.

--with-gtk=2.0 --disable-webkit2: These parameters force WebKitGTK+ to compile against GTK+ 2, even if GTK+ 3 is also installed.

--disable-geolocation: Use this option if you did not install GeoClue-0.12.0 or configure will fail.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.


Installed Program: jsc-1
Installed Libraries: libjavascriptcoregtk-1.0.so and libwebkit-1.0.so
Installed Directories: /usr/include/webkit-1.0, /usr/share/webkit-1.0 and /usr/lib/webkitgtk2

Short Descriptions


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


contains core JavaScript API functions used by jsc-1 and libwebkitgtk-1.0.so.


contains the WebKitGTK+ API functions for GTK+ 2.

Last updated on 2013-09-05 06:19:00 -0700