Use Qt to compile WebKit in Fedora8

Source: Internet
Author: User
Webkit is the core of AppleSafari and KDEKonqueror browsers. As an excellent lightweight browser Layout Engine, WebKit has been integrated with the Webkit engine in the new Qt version 4.4. next we will compile the Qt-based WebKit. dependencies the following software is required to compile WebKit: Qtversion4.3orlater. gperf. sqllite.

Webkit is the core of Apple Safari and KDE Konqueror browsers. As an excellent lightweight browser Layout Engine, Webkit has been supported by Qt. In the new Qt version 4.4, the WebKit engine has been integrated. next we will compile the Qt-based WebKit.

Dependencies

The following software is required to compile WebKit:

Qt version 4.3 or later.

Gperf.

Sqllite.

Bison.

Flex version 2.5.33 or later.

Libxslt.

Since I used the Fedora 8 platform, it was basically installed, and I only needed gperf and Qt.

Download

Qt-x11-preview-opensource-src-4.4.0-tp1.tar.gz

Ftp://ftp.trolltech.com/qt/source/qt-x11-preview-opensource-src-4.4.0-tp1.tar.gz

Extract

Tar-zxvf qt-x11-preview-opensource-src-4.4.0-tp1.tar.gz

Cd qt-x11-preview-opensource-src-4.4.0-t

Configuration

./Configure \

-Prefix/opt/QtX11-4.4-tp1 /\

-Release-shared \

-Fast \

-System-sqlite \

-No-openssl \

-Nomake examples-nomake demos \

-Optimized-qmake \

-No-nis \

-No-cups \

-No-separate-debug-info

Compile

Gmake

Note: The main force has to wait for a long time :)

Install

Gmake install

Build Qt

Build WebKit preparation

Download WebKit source code from webkit.org

Http://nightly.webkit.org/files/trunk/src/WebKit-r29336.tar.bz2

Set the QTDIR environment variable, FC8 installed by default is Qt 3.3.8, the default QTDIR variable is set to/usr/lib/qt-3.3

QTDIR =/usr/lib/qt-3.3

We want to set the installation location for the new version of QT.

Here is/opt/QtX11-4.4-tp1/

Export QTDIR =/opt/QtX11-4.4-tp1/

You also need to talk about the qt-3.3.8 bin directory removed from the PATH, otherwise it will reference the qt-3.3.8's qmake caused by the failure to generate Makefile file File

Export PATH = $ QTDIR/bin: $ PATH

Compile

QTDIR =/opt/QtX11-4.4-tp1/./WebKitTools/Scripts/build-webkit

After a long wait, the QtLauncher will be generated under WebKitBuild/Release/bin.

Test

In xwindows

Cd WebKitBuild/Release/bin

./QtLauncher about: blank

./QtLauncher www.linuxidc.com

The display speed is very fast. Test sina. The Chinese display is normal. Success :)

Note:

Firefox is based on the Gecko engine for Web Page Layout

IE uses Trident as its webpage Layout Engine

Konqueror uses KHTML as the engine

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.