To build recent webkit codebase for qt, qt 4.8 is required.Currently to pre-built binaries for qt 4.8 is available, so you have to build it manually.
The steps to build webkit with qt4.8 on linux (mine is ubuntu Natty version) are as follows:-
Step 1. Get the qt 4.8 source:-
Get the qt 4.8 source from here in tar.gz format.
Step 2. Uncompress it:-
Uncompress it by using the below commands:-
- gunzip qt-everywhere-opensource-src-%VERSION%.tar.gz
- tar xvf qt-everywhere-opensource-src-%VERSION%.tar
Step 3. Building the qt 4.8 library:-
Move to the qt source home folder and use following commands:-
- cd qt-everywhere-opensource-src-%VERSION%
- ./configure // Deafault confing can be used
- make // create the library
- make install // install the library
Step 4: Set the Environment Variables:-
- export PATH=/usr/local/Trolltech/Qt-4.8.0/bin:$PATH
With this step qt library is set-up is complete.
Step 5. Now build the webkit library
Get the webkit source from www.webkit.org.
From the home folder (which contains the "Source", "Tools" folder etc) use the below command:-
- export QTDIR="/usr/local/Trolltech/Qt-4.8.0" // Set the Qt Dir
- ./Tools/Scripts/build-webkit --qt [--debug]
Step 5. Launch qtwebkit
Now to launch the webkit library use the below command:-
- ./Tools/Scripts/run-launcher --qt [--debug]
No comments:
Post a Comment