Sunday, June 5, 2011

WebKit Build Issues

Steps to build webkit gtk port (I am doing this on Ubunty Natty )are :
Installing dependencies ->
sudo apt-get install build-essential vim subversion libglib2.0-dev gtk-doc-tools bison flex gperf libicu-dev libjpeg62-dev libpng12-dev libxml2-dev libpango1.0-dev libgail-dev libxt-dev libsoup2.4-dev libsqlite3-dev libxslt1-dev libgstreamer-plugins-base-0.10-dev

you can enable/disable different features by passing the parameters to autogen.sh
like -> sh autogen.sh --enable-3d-transforms=yes
NOTE that if some feature is turned OFF by default and you enable it then there is no guarantee that your build will go through; that feature could be work in progress or an unstable one.

for default build options
sh autogen.sh && make

but there are times when it is not as simple as that..some of the errors you might get i will list them down and their fixes:

If you get this error while building gtk port of webkit

error: webkitmarshal.h: No such file or directory..
work around to fix this is
touch ./Source/WebKit/gtk/webkitmarshal.list

if you get an error like
ld terminated by signal 9 ..you need to increase swap space do the below:
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
sudo mkswap /swapfile
If you want to have this change after reboot as well, add below line at the end to /etc/fstab
/swapfile none swap sw 0 0

sudo swapon -a to turn on the swap space

No comments:

Post a Comment