新桑塔纳手扶箱改装:webkit编译

来源:百度文库 编辑:中财网 时间:2024/05/04 13:03:33
webkit的代码,每天都是日新月异,编译也随着代码的不同,总会出现一些不同。经过自己的一些捣鼓,终于也编译成功了!我使用的版本是r92782。下边是我的编译步骤:
  一、环境安装
  1、安装vs2005,并安装
  href="http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC" target="_blank">sp1,
  2.按照官网,进行打补丁,
  1、 Visual Studio 2005 Service Pack 1 ATL Security Update.补丁是sp1系统安全相关,未安装。
  
  2)、 KB918559 无中文版,无法在中文版VS中安装(KB918559 FIX: You may experience slow performance and increased memory usage)
  
  3)、 KB935225无中文版,无法在中文版VS中安装(KB935225 FIX: Visual C++ based projects take longer to compile after you install Visual Studio 2005 Service Pack 1)
  
  4)、 KB943969 可以安装,已放在服务器上(FIX: Visual Studio 2005 stops responding or performance is slow when you use the IntelliSense feature)
  
  
  5)、 KB947315可以安装,已放在服务器上(KB947315 C++ Intellisense hangs when hotfix KB943969 is installed. Since many customers are encountering this problem and KB943969 is widely used publically downloadable fix, the product group would like to fix this hang.)
  
  6)、 instructions for installing the 32-bit version of Debugging Tools for Windows. 可选(Optional: Install the 32-bit version of Debugging Tools for Windows)
  3、下载安装
  cygwin-downloader.zip。下载完后启动
  cygwin-downloader.exe,待下载完毕会自行跳出安装窗口,请选择本地安装选项
  4、下载Install QuickTime SDK,需要到http://developer.apple.com/quicktime/download/注册账号后下载。
  5、安装DirectX SDK ,http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=2c7da5fb-ffbb-4af6-8c66-651cbd28ca15,需要安装此项。记得之前弄过一个版本好像不需要安装,可惜现在的版本都需要安装此SDK
  
  
  二、获取代码及编译
  1、http://nightly.webkit.org/下载源代码。
  2、下载 WebKit Support Libraries,http://developer.apple.com/opensource/internet/webkit_sptlib_agree.html, 此包放在源码的根目录下无需解压
  3、设置环境变量WEBKITOUTPUTDIR 如D:\WebKit-r94213\WebKitBuild;WEBKITLIBRARIESDIR 如:D:\WebKit-r94213\WebKitLibraries\win
  4、更新webkit,启动 cgwin shell 进入源码目录, 运行./update-webkit,./update-webkit-support-libs, 其中./update-webkit-support-libs 可以不需要执行,我编的时候没有执行这条命令。
  5、编译./build-webkit --debug
  6、编译过程中会遇到 警告当错误处理 导致编译不过,请进入D:\WebKit-r92782\Source\WebKit\win\WebKit.vcproj,启动WebKit.sln; 选择debug 选项,将所有工程的c/c++编译选项-》将警告视为错误-》否;再次执行5步骤。
  编到最后若无错误,恭喜你 可以开始运行了,
  运行之前还需要 下载安装safari, 安装完后请到C:\Program Files\Common Files\Apple\Apple Application Support,拷贝ASL.dll,CFNetwork.dll,CoreFoundation.dll,CoreGraphics.dll,CoreVideo.dll,icudt46.dll,libdispatch.dll,libicuin.dll,libicuuc.dll,libxml2.dll,objc.dll,pthreadVC2.dll,QuartzCore.dll,SQLite3.dll,WebKitQuartzCoreAdditions.dll,zlib1.dll。若还有提示某个dll没有,请继续拷贝,我使用这个版本时,只需要如上几个dll。
  
  后记: 不知道怎么回事, 这个版本编译完后启动WinLauncher.exe,不响应按键。可是miniBrowser.exe是可以的。推荐使用vs2005 编译,可以不用编译所有, 只需要编译javascriptcore,webcore,WinLauncher即可编译生成WinLauncher.exe,若想miniBrowser.exe可选择编译miniBrowser。