webkit的代碼,每天都是日新月異,編譯也隨著代碼的不同,總會出現(xiàn)一些不同。經(jīng)過自己的一些搗鼓,終于也編譯成功了!我使用的版本是r92782。下邊是我的編譯步驟: 一、環(huán)境安裝 1、安裝vs2005,并安裝 target="_blank">sp1, 2.按照官網(wǎng),進(jìn)行打補(bǔ)丁, 1、 Visual Studio 2005 Service Pack 1 ATL Security Update.補(bǔ)丁是sp1系統(tǒng)安全相關(guān),未安裝。 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 可以安裝,已放在服務(wù)器上(FIX: Visual Studio 2005 stops responding or performance is slow when you use the IntelliSense feature) 5)、 KB947315可以安裝,已放在服務(wù)器上(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,待下載完畢會自行跳出安裝窗口,請選擇本地安裝選項(xiàng) 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,需要安裝此項(xiàng)。記得之前弄過一個(gè)版本好像不需要安裝,可 惜現(xiàn)在的版本都需要安裝此SDK 二、獲取代碼及編譯 1、http://nightly./下載源代碼。 2、下載 WebKit Support Libraries,http://developer.apple.com/opensource/internet/webkit_sptlib_agree.html, 此包放在源碼的根目錄下無需解壓 3、設(shè)置環(huán)境變量WEBKITOUTPUTDIR 如D:\WebKit-r94213\WebKitBuild;WEBKITLIBRARIESDIR 如:D:\WebKit-r94213\WebKitLibraries\win 4、更新webkit,啟動 cgwin shell 進(jìn)入源碼目錄, 運(yùn)行./update-webkit,./update-webkit-support-libs, 其中./update-webkit-support-libs 可以不需要執(zhí)行,我編的時(shí)候沒有執(zhí)行這條命令。 5、編譯./build-webkit --debug 6、編譯過程中會遇到 警告當(dāng)錯(cuò)誤處理 導(dǎo)致編譯不過,請進(jìn)入D:\WebKit-r92782\Source\WebKit\win\WebKit.vcproj,啟動WebKit.sln; 選擇debug 選項(xiàng),將所有工程的c/c++編譯選項(xiàng)-》將警告視為錯(cuò)誤-》否;再次執(zhí)行5步驟。 編到最后若無錯(cuò)誤,恭喜你 可以開始運(yùn)行了, 運(yùn)行之前還需要 下載安裝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。 若還有提示某個(gè)dll沒有,請繼續(xù)拷貝,我使用這個(gè)版本時(shí),只需要如上幾個(gè)dll。 后記: 不知道怎么回事, 這個(gè)版本編譯完后啟動WinLauncher.exe,不響應(yīng)按鍵??墒莔iniBrowser.exe是可以的。推薦使用vs2005 編譯,可以不用編譯所有, 只需要編譯javascriptcore,webcore,WinLauncher即可編譯生成WinLauncher.exe,若想 miniBrowser.exe可選擇編譯miniBrowser。 |
|