WebKitGTK+-2.4.5

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

Package Information

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

  • Download MD5 sum: c2e1687bb0314a0948fbf78e2d1e931f

  • Download size: 9.4 MB

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

  • Estimated build time: 138 SBU (both built, webkitgtk-3.0 takes a little longer than webkitgtk-1.0)

WebKitGTK+ Dependencies

Required

gst-plugins-base-1.4.1, GTK+-2.24.24 or GTK+-3.12.2, ICU-53.1, libsecret-0.18, libsoup-2.46.0, libwebp-0.4.1, MesaLib-10.2.7, Ruby-2.1.2, SQLite-3.8.6, 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.20, Harfbuzz-0.9.35, LLVM-3.5.0, GeoClue2, and MathML

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

Installation of WebKitGTK+

If you have not installed GTK-Doc-1.20, 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, libwebkitgtk-3.0.so, and webkit2gtk-3.0/injected-bundle/libwebkit2gtkinjectedbundle.so
Installed Directories: /usr/include/webkitgtk-1.0, /usr/include/webkitgtk-3.0, /usr/lib/webkit2gtk-3.0, /usr/share/gtk-doc/html/webkit2gtk, /usr/share/gtk-doc/html/webkitdomgtk, /usr/share/gtk-doc/html/webkitgtk, /usr/share/webkitgtk-1.0, and /usr/share/webkitgtk-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 2014-09-16 20:49:04 +0000