Compile Webkit in Ubuntu

Source: Internet
Author: User
Tags gtk gstreamer
Webkit is a browser kernel, and google chrome is based on it. The following describes how to compile the Webkit source code under Ubuntu11.04. There is a lot of online information about how to compile Webkit in Windows or how to use Qt. This article does not describe how to compile the Webkit source code in the command line: 1. Download: download the latest Webkit source code at http://nightly.webkit.org/ Webkit is a browser kernel, and google chrome is based on it. The following describes how to compile the Webkit source code under Ubuntu 11.04. There are a lot of questions on how to compile Webkit in Windows or using Qt on the Internet. This article does not introduce this, but only describes how to compile Webkit source code in the command line:   1. Download: In Http://nightly.webkit.org/Download the latest webkit source code, my WebKit-r96832

2. Compile:
/WebKit-r96832/Tools/Scripts/build-webkit -- gtk

Under normal circumstances, there will be a lack of various libraries, it doesn't matter, one by one. The following lists some of my problems:

Sudo apt-get install libtool
Sudo apt-get install gtk-doc-tools

Error: undefined macro XXX (do not remember ~~)
Solution: sudo apt-get install libgtkhtml * (all installed)

Error: configure: error: JPEG library (libjpeg) not found
Solution: sudo apt-get install libjpeg8-dev (when I compile libjpeg is the latest version of 8, you need to select the current version of the compilation, the same below !)

Error: Cannot find icu-config. The ICU library is needed.
Solution: sudo apt-get install libicu-dev



Error: configure: error: Package requirements (gail-3.0> = 3.0) were not met: No package 'Gail-100' found
Solution: sudo apt-get install libgail-3-dev



Error: configure: error: X Toolkit Intrinsics library (libXt) not found
Solution: sudo apt-get install libxt-dev



Error: configure: error: Package requirements (libsoup-2.4> = 2.33.6) were not met: No package 'libsoup-100' found
Solution: sudo apt-get install libsoup2.4-dev



Error: configure: error: SQLite3 is required for the Database related features
Solution: sudo apt-get install libsqlite3-dev



Error: configure: error: Package requirements (libxslt> = 1.1.7) were not met: No package 'libxslt 'found
Solution: sudo apt-get install libxslt-dev



Error: configure: error: Package requirements (geoclue) were not met: No package 'geoclue 'found
Solution: sudo apt-get install libgeoclue-dev



Error: configure: error: Package requirements (gstreamer-0.10> = 0.10
Gstreamer-app-0.10
Gstreamer-base-0.10
Gstreamer-interfaces-0.10
Gstreamer-pbutils-0.10
Gstreamer-plugins-base-0.10> = 0.10.30
Gstreamer-video-0.10) were not met:


No package 'gstreamer-0.10 'found
No package 'gstreamer-app-0.10 'found
No package 'gstreamer-base-0.10 'found
No package 'gstreamer-interfaces-0.10 'found
No package 'gstreamer-pbutils-0.10 'found
No package 'gstreamer-plugins-base-0.10 'found
No package 'gstreamer-video-0.10 'found
Solution: sudo apt-get install libgstreamer *


Finally, there is no problem. The compilation started!
/WebKit-r96832/Tools/Scripts/build-webkit -- gtk

After a long wait (a whole hour !), The compilation is successful !!!
Record the compiled output:
========================================================== ==============================
WebKit is now built (1 h: 01 m: 41 s ).
To run GtkLauncher with this newly-built code, use
"Tools/Scripts/run-launcher" script.
========================================================== ==============================


How to run it?
./Tools/Scripts/run-launcher -- gtkYou can!

Stickers:





Done!
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.