ariya/phantomjs — comment on commit 1531595d2e2a44c3b9ef425d78fa38614e3ab493
File:  line 0
By lfranchi:

You can actually build QtWebkit (since it is a part of Webkit) completely separately from Qt. Here's how:

http://trac.webkit.org/wiki/BuildingQtOnLinux

Once you have it built, you can copy the libQtWebkit.so* into your QTDIR/lib, or you can do

chrpath -d bin/phantomjs
LD_LIBRARY_PATH=/path/to/qtwebkit/Build/WebKitBuild/Debug/lib/:$LD_LIBRARY_PATH bin/phantomjs