%general-entities; libbacktrace"> ]> WebKitGTK-&webkitgtk-version; WebKitGTK Introduction to WebKitGTK The WebKitGTK package is a port of the portable web rendering engine WebKit to the GTK+ 3 and GTK 4 platforms. &lfs121_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &webkitgtk-md5sum; Download size: &webkitgtk-size; Estimated disk space required: &webkitgtk-buildsize; Estimated build time: &webkitgtk-time; WebKitGTK Dependencies Required , , , , , , , , , , , , , , , , , , and Recommended , , , &gobject-introspection;, , , , , and Optional , , , , ccache, Hyphen, &libbacktrace;, and libmanette Installation of WebKitGTK Installation of WebKitGTK This package allows building with either GTK-3 or GTK-4, but not both in the same build. The GTK-4 version is needed for packages such as . Other packages, such as or , require the GTK-3 version. Both versions can be installed side by side on the same system. We give build instructions for both cases below, but the only difference is the setting of -DUSE_GTK4 If you want to install the GTK+-3 version of WebKitGTK, run the following commands: mkdir -vp build && cd build && cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_RPATH=ON \ -DPORT=GTK \ -DLIB_INSTALL_DIR=/usr/lib \ -DUSE_LIBBACKTRACE=OFF \ -DUSE_LIBHYPHEN=OFF \ -DENABLE_GAMEPAD=OFF \ -DENABLE_MINIBROWSER=ON \ -DENABLE_DOCUMENTATION=OFF \ -DUSE_WOFF2=OFF \ -DUSE_GTK4=OFF \ -DENABLE_BUBBLEWRAP_SANDBOX=ON \ -Wno-dev -G Ninja .. && ninja mkdir -vp build && cd build && cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_RPATH=ON \ -DPORT=GTK \ -DLIB_INSTALL_DIR=/usr/lib \ -DUSE_LIBBACKTRACE=OFF \ -DUSE_LIBHYPHEN=OFF \ -DENABLE_GAMEPAD=OFF \ -DENABLE_MINIBROWSER=ON \ -DENABLE_DOCUMENTATION=OFF \ -DUSE_WOFF2=OFF \ -DUSE_GTK4=OFF \ -DENABLE_JOURNALD_LOG=OFF \ -DENABLE_BUBBLEWRAP_SANDBOX=ON \ -Wno-dev -G Ninja .. && ninja This package does not have a working test suite. However, there is a usable basic graphical web browser in the build directory, build/bin/MiniBrowser. If launching it fails, there is a problem with the build. Now, as the root user: ninja install If you want to install the GTK4 version of WebKitGTK, run the following commands: rm -rf * .[^.]* && cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_RPATH=ON \ -DPORT=GTK \ -DLIB_INSTALL_DIR=/usr/lib \ -DUSE_LIBBACKTRACE=OFF \ -DUSE_LIBHYPHEN=OFF \ -DENABLE_GAMEPAD=OFF \ -DENABLE_MINIBROWSER=ON \ -DENABLE_DOCUMENTATION=OFF \ -DUSE_WOFF2=OFF \ -DUSE_GTK4=ON \ -DENABLE_BUBBLEWRAP_SANDBOX=ON \ -Wno-dev -G Ninja .. && ninja rm -rf * .[^.]* && cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_RPATH=ON \ -DPORT=GTK \ -DLIB_INSTALL_DIR=/usr/lib \ -DUSE_LIBBACKTRACE=OFF \ -DUSE_LIBHYPHEN=OFF \ -DENABLE_GAMEPAD=OFF \ -DENABLE_MINIBROWSER=ON \ -DENABLE_DOCUMENTATION=OFF \ -DUSE_WOFF2=OFF \ -DUSE_GTK4=ON \ -DENABLE_JOURNALD_LOG=OFF \ -DENABLE_BUBBLEWRAP_SANDBOX=ON \ -Wno-dev -G Ninja .. && ninja Now, as the root user: ninja install As the option is used, the documentation is not rebuilt nor installed now. If you need the documentation, you can either install and remove this option from the cmake command, or install the pre-built documentation (only for the GTK-4 version) instead: install -vdm755 /usr/share/gtk-doc/html && cp -rv ../Documentation/* /usr/share/gtk-doc/html Command Explanations -DUSE_LIBBACKTRACE=OFF: This switch disables the use of libbacktrace for dumping a stack trace when a crash happens. You need to install &libbacktrace; if you wish to enable it (replacing OFF with ON or just removing the switch). -DUSE_LIBHYPHEN=OFF: This switch disables the default automatic hyphenation implementation. You need to install Hyphen if you wish to enable it (replacing OFF with ON or just removing the switch). -DENABLE_DOCUMENTATION=OFF: This switch disables regenerating the documentation. Remove this switch if you have installed and wish to regenerate the documentation. -DENABLE_GAMEPAD=OFF: This switch disables gamepad support. Remove this switch if you have libmanette installed and wish to enable it. -DENABLE_MINIBROWSER=ON: This switch enables compiling and installing the MiniBrowser. -DENABLE_BUBBLEWRAP_SANDBOX=ON: This switch enables the Bubblewrap sandbox, which helps mitigate the impact of most security vulnerabilities in this package. Change this switch to OFF if you do not want to install , , or , but note that this may put you at risk. -DENABLE_JOURNALD_LOG=OFF: This switch disables using the systemd journal for logging errors and debugging information since it is not available on SysV systems. : This switch enables building against the system installed malloc. : Use this switch if you don't want to install . : Use this switch if you don't want to install . Note that you will not have support for AVIF images if you do this. : Use this switch if the optional package is installed. This adds additional support for fonts. : Use this switch if the recommended package is not installed. Note that you will not have support for JPEG XL images if this option is passed. Contents Installed Program Installed Libraries Installed Directories WebKitWebDriver libjavascriptcoregtk-4.1.so, libjavascriptcoregtk-6.0.so, libwebkit2gtk-4.1.so, and libwebkitgtk-6.0.so /usr/include/webkitgtk-4.1, /usr/include/webkitgtk-6.0, /usr/lib{,exec}/webkit2gtk-4.1, /usr/lib{,exec}/webkitgtk-6.0, /usr/share/gtk-doc/html/{jsc-glib,webkit2gtk{,-web-extension}}-4.1 (optional), and /usr/share/gtk-doc/html/{jsc-glib,webkit2gtk{,-web-process-extension}}-6.0 Short Descriptions WebKitWebDriver allows debugging and automation of web pages and browsers WebKitWebDriver libjavascriptcoregtk-4.1.so contains core JavaScript API functions used by jsc and libwebkit2gtk-4.1 libjavascriptcoregtk-4.1.so libjavascriptcoregtk-6.0.so contains core JavaScript API functions used by jsc and libwebkitgtk-6.0 libjavascriptcoregtk-6.0.so libwebkit2gtk-4.1.so contains the WebKit2 API functions libwebkit2gtk-4.1.so libwebkitgtk-6.0.so contains the WebKit API functions for GTK-4 applications libwebkitgtk-6.0.so