WebKit 内核编译

本文档详细记录了在Windows环境下编译WebKit内核的过程,包括安装Visual Studio 2005、Cygwin、QuickTime SDK、DirectX SDK等步骤,以及解决编译过程中遇到的错误和警告。在安装和编译过程中,特别提到了Cygwin的环境变量设置、异常处理、库文件链接错误等问题,并提供了相应的解决方案。
摘要由CSDN通过智能技术生成

WebKit内核编译实在是一项折磨人的事情,虽然webkit.org官方有一个文档,但是有时候机器本身配置环境还是和教程有差别。

经过三天三夜平均每天2点钟的奋斗,今天终于搞定了。


其实,官方的描述已经非常到位,只要保证每一步都执行了,差别应该不大,需要多加处理的就是本机实际环境导致的具体问题。


首先按照官方文档进行操作

http://www.webkit.org/building/tools.html

一、安装Visual 2005

  1. If you own Visual Studio 2005 (newer versions of Visual Studio are currently unsupported):

    Install Microsoft Visual Studio 2005 Team Suite Service Pack 1.

    If you are building from Vista, install Service Pack 1 Update for Windows Vista.

    Install Visual Studio 2005 Service Pack 1 ATL Security Update.

    Install the following hotfixes to improve Visual Studio's performance and responsiveness:

    1. KB918559
    2. KB935225
    3. KB943969
    4. KB947315

    Use the default options for these installations.

(我在装下面四个补丁的时候提示找不到升级的程序,我装的是2005 中文版,估计补丁有问题,后来没有理会了)

二、安装cygwin

  1. Install Cygwin

    Cygwin is a collection of utilities for Windows that includes not only a Subversionclient, but also additional tools that are required to build the WebKit source. Wehave made a downloader available that automatically collects all of the requiredpackages.

    Download cygwin-downloader.zip.

    Extract the content of the archive to some folder and start cygwin-downloader.exe from that folder.This will download all the Cygwin packages you need.

    When all the packages have finished downloading, the Cygwin installer will launch. ChooseInstall from Local Directory, then clickNext until theinstall is complete. If you are running Vista, the installer won't be able to launch automatically, so you will have to manually launch Cygwin's Setup.exe.

    Note: If you are behind a proxy you need to set the http_proxy environment variable to the URL of the proxy. This wouldlikely match this pattern:http[s]://[username[:password]@]somehost.com[:port]. Where the square brackets ([]) are not part of the url but enclose url elements that are optional indicating that those elements might be missing in your case together with their enclosed delimiter such as @ and :.

    Note: Vista may warn you that Cygwin did not install correctly. Ignore this warning and tell Vista that the install was successful.

    Warning: If you are running Vista or Windows 7, Cygwin may have trouble with implementingfork(the POSIX function frequently used to start child processes, needed by many of the WebKit build tools).In order to enablecygwin1.dll to implement fork successfully it is better if no DLL loaded in the parent process is relocated at runtime.One way to achive this is to rebase all cygwin dlls exceptcyglsa64.dll andcygwin1.dll to base addresses that cause them to not overlap in memory.

    In order to rebase all cygwin dlls a rebaseall script is provided in the cygwin installation'sbin directory(usuallyC:\cygwin\bin).This script must be run fromash.exe (found in the same directory) while no other cygwin application is running.
    ash.exe has very limited command line editing features so cutting and pasting to the commandline is recommended.
    The PATH environment variable may not contain the /bi

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值