Building WebKitGdk

Check out the code from Subversion version control and build it for Gtk:

  • svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit

  • WebKit/WebKitTools/Scripts/build-webkit --gdk

If you want to build faster, you can enable parallel compilation in the call to make (for example, make -j 4 for a dual-core processor) at the very end of WebKitTools/Scripts/webkitdirs.pm before running build-webkit.

Test by launching the demo browser:

  • WebKit/WebKitTools/Scripts/run-launcher --gdk

Install as root:

  • cd WebKit/WebKitBuild/Release/

  • make install

If you want to install elsewhere than /, you can set INSTALL_ROOT to a path like ~/inst:

  • INSTALL_ROOT=~/inst make install

Building PyWebKitGtk

Check out the code from Git version control and build:

  • git clone git://repo.or.cz/pywebkitgtk.git

  • cd pywebkitgtk

  • WEBKITGDK_CFLAGS=-I/usr/include/qt4/WebKitGtk WEBKITGDK_LIBS="-lWebKitGdk" ./autogen.sh

  • make

If you want to install elsewhere than /usr such as ~/inst, you can give autogen.sh the standard flag like --prefix ~/inst

If you installed WebKitGdk elsewhere than / such as $HOME/inst, you need to prepend that and give the lib dir too for autogen.sh:

  • WEBKITGDK_CFLAGS=-I$HOME/inst/usr/include/qt4/WebKitGtk WEBKITGDK_LIBS="-L$HOME/inst/usr/lib -lWebKitGdk" ./autogen.sh

Test by launching the demo browser:

  • PYTHONPATH=.libs/ ./webbrowser.py

If you installed WebKitGdk elsewehere than / such as ~/inst, you need to set LD_LIBRARY_PATH too:

  • LD_LIBRARY_PATH=~/inst/usr/lib PYTHONPATH=.libs ./webbrowser.py

Optionally, install:

  • make install

Attic/PyWebKitGtk/BuildSteps (last edited 2013-11-23 00:08:36 by WilliamJonMcCann)