WebKitGTK+-2.4.9

Introduction to WebKitGTK+

The WebKitGTK+ is the port of the portable web rendering engine WebKit to the GTK+ 3 and/or GTK+ 2 platforms.

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

Package Information

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

  • Download MD5 sum: 312fd29eb7f5970660c6a64b8bf8420e

  • Download size: 9.4 MB

  • Estimated disk space required: 1.6 GB (both built)

  • Estimated build time: 40 SBU (using parallelism=4, both built, webkitgtk-3.0 takes a little longer than webkitgtk-1.0)

WebKitGTK+ Dependencies

Required

gst-plugins-base-1.6.3, GTK+-2.24.29 or GTK+-3.18.7, ICU-56.1, libgudev-230, libsecret-0.18.4, libsoup-2.52.2, libwebp-0.5.0, Mesa-11.1.2, Ruby-2.3.0, SQLite-3.11.0 and Which-2.21

[Note]

Note

WebKit2 links againstGTK+ 2 (even if GTK+ 3 is being used), in order to be able to use NPAPI plugins such as Adobe Flash.

Recommended

Optional

GTK-Doc-1.24, Harfbuzz-1.1.3, LLVM-3.7.1, GeoClue2, and MathML

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

Installation of WebKitGTK+

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

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

Upstream standard now is to link this package against GTK+ 3. However, for backward compatibility, many users need also another instance, linked to GTK+ 2. Both can be installed in the same system, without any problems. However, some packages can alternatively be linked to either one. Here, both build methods are presented and recommended to be built, but if you know which one you need, just jump to the respective part.

Build and install WebKitGTK+ against GTK+ 3

Install WebKitGTK+ by running the following commands:

mkdir -vp build-3           &&
cp -a Documentation build-3 &&
cd build-3                  &&

../configure --prefix=/usr --enable-introspection &&
make

This package does not have a working testsuite. However, there are two useable basic graphical web browsers in the build directory, Programs/GtkLauncher and Programs/MiniBrowser. If launching any one fails, there is a problem with the build.

[Note]

Note

When installing, the Makefile does some additional compiling and linking. If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH variables need to be defined for the root user. If using sudo to assume root, use the -E option to pass your current environment variables for the install process.

Now, as the root user:

make install

Finally, leave the buid directory:

cd ..

Build and install WebKitGTK+ against GTK+ 2

Install WebKitGTK+ by running the following commands:

mkdir -vp build-1

If you have built and installed the package against GTK+ 3. skip the following command, because the previous docummentation also applies here:

cp -a Documentation build-1

Now, change into the build directory and effectively start the build and install:

cd build-1  &&

../configure --prefix=/usr  \
             --with-gtk=2.0 \
             --disable-webkit2 &&
make

This package does not have a working testsuite. However, there is one useable basic graphical web browser in the build directory, Programs/GtkLauncher. If launching it fails, there is a problem with the build.

[Note]

Note

When installing, the Makefile does some additional compiling and linking. If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH variables need to be defined for the root user. If using sudo to assume root, use the -E option to pass your current environment variables for the install process.

Now, as the root user:

make install

Finally, leave the buid directory:

cd ..

Command Explanations

--enable-introspection: This switch enables support for Gobject Introspection and is required for a GNOME Desktop. Remove if you don't have Gobject Introspection installed or you don't want to install GNOME.

--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.

Contents

Installed Programs: jsc-1 and jsc-3
Installed Libraries: libjavascriptcoregtk-{1,3}.0.so, libwebkit2gtk-3.0.so, and libwebkitgtk-{1,3}.0.so
Installed Directories: /usr/include/webkitgtk-{1,3}.0, /usr/lib/webkit2gtk-3.0, /usr/share/gtk-doc/html/webkit{2,dom,}gtk, and /usr/share/webkitgtk-{1,3}.0

Short Descriptions

jsc-1

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

jsc-3

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

libjavascriptcoregtk-1.0.so

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

libjavascriptcoregtk-3.0.so

contains core JavaScript API functions used by jsc-3 and libwebkitgtk-3.0.so.

libwebkitgtk-1.0.so

contains the WebKitGTK+ API functions for GTK+ 2.

libwebkitgtk-3.0.so

contains the WebKitGTK+ API functions for GTK+ 3.

libwebkit2gtk-3.0.so

contains the WebKit2 API functions.

Last updated on 2016-02-25 17:45:38 -0800