WebKitGTK+-2.4.8

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

Package Information

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

  • Download MD5 sum: bcdcef8e1ba28dbd5bb05f86c79f76b8

  • Download size: 9.4 MB

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

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

WebKitGTK+ Dependencies

Required

gst-plugins-base-1.4.5, GTK+-2.24.26 or GTK+-3.14.8, ICU-54.1, libsecret-0.18, libsoup-2.48.1, libwebp-0.4.2, MesaLib-10.4.5, Ruby-2.2.0, SQLite-3.8.8.2, udev-extras (from eudev) (for GUdev) and Which-2.20

[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.21, Harfbuzz-0.9.38, LLVM-3.5.1, GeoClue2, and MathML

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

Installation of WebKitGTK+

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

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

Upstream standard now is to link this package against GTK+ 3. However, for backward compatibility, manu users need also another instance, linked to GTK+ 2. Both can be installed in the same system, without problem. 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.0.so, libjavascriptcoregtk-3.0.so, libwebkit2gtk-3.0.so, libwebkitgtk-1.0.so, and libwebkitgtk-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 2015-02-26 16:54:24 -0500