[webkit-dev] Help! I can't survive building WebKit in Visual Studio 2005 IDE!

Takeshi Yoshino tyoshino at google.com
Wed Jun 17 02:31:57 PDT 2009


Or just run WebKitTools/Scripts/update-webkit and then
WebKitTools/Scripts/update-webkit-support-libs to fetch and extract both
WebKitAuxiliaryLibrary.zip and WebKitSupportLibrary.zip .
And then you'll be able to build using WebKit/win/WebKit.vcproj/WebKit.sln .

Thanks,

Takeshi


2009/6/17 Ryosuke Niwa <rniwa at google.com>

> You should still be able to use VS.net debugger with it.
>
> 2009/6/17 Ryosuke Niwa <rniwa at google.com>
>
> Instead of trying to build from Visual Studio, try
>> WebKitTools/Scripts/build-webkit --debug on cygwin.
>> Ryosuke
>>
>> On Tue, Jun 16, 2009 at 8:55 PM, 张雷 <zhang.lei at kortide.com.cn> wrote:
>>
>>>  I tried several times, but failed always! God damn!
>>> I read all the instructions detailedly. These are my steps:
>>>
>>> Note: I already have VS2005 Professional Edition with sp1(Microsoft
>>> Visual Studio 2005 Team Suite Service Pack 1<http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en>)
>>> patched(But I don't have the other four suggested hotfixes intalled, for
>>> some reason).
>>>
>>> 1)Install Cygwin with Cygwin downloader(All as instructed to do. Use Unix
>>> style line ending for my Cygwin.).
>>> 2)Installthe QuickTime SDK.
>>> 3)Get source code from Nightly Builds(I tried r41121 and the latest
>>> r44697 but failed building either).
>>> 4)Place WebKit Support Libraries<http://developer.apple.com/opensource/internet/webkit_sptlib_agree.html>in the root of WebKit soruce tree.
>>> 5)Set WEBKITOUTPUTDIR and WEBKITLIBRARIESDIR
>>> 6)Open WebKit.sln in VS2005 IDE and choose "Debug" and build solution.
>>> Then I get error message complainint that "cannot open include file
>>> 'unicode/uchar.h'". Detailed log message is as follows(errors are marked
>>> with red color):
>>>
>>> 1>------ 已启动生成: 项目: JavaScriptCoreGenerated, 配置: Release Win32 ------
>>> 2>------ 已启动生成: 项目: record-memory-win, 配置: Release Win32 ------
>>> 1>正在执行生成文件项目操作
>>> 2>正在编译...
>>> 1> xcopy /y/d/e/i "..\..\..\WebKitLibraries\win\tools"
>>> "D:\WebKit-r41121\WebKitLibraries\win\tools"
>>> 1>不能执行周期性复制
>>> 1>复制了 0 个文件
>>> 1> touch "D:\WebKit-r41121\Output\buildfailed"
>>> 1> bash build-generated-files.sh "D:\WebKit-r41121\Output"
>>> "D:\WebKit-r41121\WebKitLibraries\win"
>>> 2>main.cpp
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/create_hash_table
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/ArrayPrototype.cpp -i >
>>> ArrayPrototype.lut.h
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/pcre/dftables chartables.c
>>> 1>Creating hashtable for
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/ArrayPrototype.cpp
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/create_hash_table
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/DatePrototype.cpp -i >
>>> DatePrototype.lut.h
>>> 1>Creating hashtable for
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/DatePrototype.cpp
>>> 1>bison -d -p jscyy /cygdrive/d/WEBKIT~1/JAVASC~1/parser/Grammar.y -o
>>> Grammar.cpp > bison_out.txt 2>&1
>>> 2>正在链接...
>>> 2>正在生成代码
>>> 1>perl -p -e 'END { if ($conflict) { unlink "Grammar.cpp"; die; } }
>>> $conflict ||= /conflict/' < bison_out.txt
>>> 2>已完成代码的生成
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/create_hash_table
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/parser/Keywords.table > Lexer.lut.h
>>> 1>Creating hashtable for
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/parser/Keywords.table
>>> 2>正在嵌入清单...
>>> 1>touch Grammar.cpp.h
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/create_hash_table
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/MathObject.cpp -i > MathObject.lut.h
>>> 2>生成日志保存在“file://D:\WebKit-r41121\Output\obj\record-memory-win\Release\BuildLog.htm”
>>> 2>record-memory-win - 0 个错误,0 个警告
>>> 1>touch Grammar.hpp
>>> 1>Creating hashtable for
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/MathObject.cpp
>>> 1>cat Grammar.cpp.h Grammar.hpp > Grammar.h
>>> 1>rm -f Grammar.cpp.h Grammar.hpp bison_out.txt
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/create_hash_table
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/NumberConstructor.cpp -i >
>>> NumberConstructor.lut.h
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/create_hash_table
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/RegExpConstructor.cpp -i >
>>> RegExpConstructor.lut.h
>>> 1>Creating hashtable for
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/NumberConstructor.cpp
>>> 1>Creating hashtable for
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/RegExpConstructor.cpp
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/create_hash_table
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/RegExpObject.cpp -i >
>>> RegExpObject.lut.h
>>> 1>Creating hashtable for
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/RegExpObject.cpp
>>> 1>/cygdrive/d/WEBKIT~1/JAVASC~1/create_hash_table
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/StringPrototype.cpp -i >
>>> StringPrototype.lut.h
>>> 1>perl /cygdrive/d/WEBKIT~1/JAVASC~1/docs/make-bytecode-docs.pl
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/interpreter/Interpreter.cpp docs/bytecode.html
>>> 1>Creating hashtable for
>>> /cygdrive/d/WEBKIT~1/JAVASC~1/runtime/StringPrototype.cpp
>>> 1>UNDOCUMENTED: get_by_id_self_list
>>> 1>UNDOCUMENTED: get_by_id_proto_list
>>> 1> mkdir 2>NUL
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1> xcopy /y /d "..\..\API\APICast.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\APICast.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JavaScript.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JavaScript.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JSBase.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JSBase.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JSContextRef.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JSContextRef.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JSObjectRef.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JSObjectRef.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JSStringRef.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JSStringRef.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JSStringRefCF.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JSStringRefCF.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JSStringRefBSTR.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JSStringRefBSTR.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JSValueRef.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JSValueRef.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JavaScriptCore.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JavaScriptCore.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\JSRetainPtr.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\JSRetainPtr.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\OpaqueJSString.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\OpaqueJSString.h
>>> 1>复制了 1 个文件
>>> 1> xcopy /y /d "..\..\API\WebKitAvailability.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\JavaScriptCore"
>>> 1>..\..\API\WebKitAvailability.h
>>> 1>复制了 1 个文件
>>> 1> del "D:\WebKit-r41121\Output\include\JavaScriptCore\stdbool.h"
>>> "D:\WebKit-r41121\Output\include\JavaScriptCore\stdint.h"
>>> 1>找不到 D:\WebKit-r41121\Output\include\JavaScriptCore\stdbool.h
>>> 1> del "D:\WebKit-r41121\Output\buildfailed"
>>> 1>生成日志保存在“file://D:\WebKit-r41121\Output\obj\JavaScriptCoreGenerated\Release\BuildLog.htm”
>>> 1>JavaScriptCoreGenerated - 0 个错误,0 个警告
>>> 3>------ 已启动生成: 项目: WTF, 配置: Debug Win32 ------
>>> 3>正在执行预生成事件...
>>> 3>正在编译...
>>> 3>Assertions.cpp
>>> 3>ByteArray.cpp
>>> 3>CollatorDefault.cpp
>>> 3>d:\WebKit-r41121\JavaScriptCore\wtf/unicode/icu/UnicodeIcu.h(27) :
>>> fatal error C1083: 无法打开包括文件:“unicode/uchar.h”: No such file or directory
>>> 3>CollatorICU.cpp
>>> 3>d:\WebKit-r41121\JavaScriptCore\wtf/unicode/icu/UnicodeIcu.h(27) :
>>> fatal error C1083: 无法打开包括文件:“unicode/uchar.h”: No such file or directory
>>> 3>CurrentTime.cpp
>>> 3>dtoa.cpp
>>> 3>FastMalloc.cpp
>>> 3>..\..\wtf\FastMalloc.cpp(82) : fatal error C1083: 无法打开包括文件:“pthread.h”:
>>> No such file or directory
>>> 3>HashTable.cpp
>>> 3>项目 : warning PRJ0018 : 未找到下列环境变量:
>>> 3>$(PRODUCTION)
>>> 3>生成日志保存在“file://D:\WebKit-r41121\Output\obj\WTF\Debug\BuildLog.htm”
>>> 3>WTF - 3 个错误,0 个警告
>>>
>>> Building Webkit is a DAYMARE to me, and I'm afraid I cann't survive! Any
>>> help is appreciated! I've been nearly driven mad!!
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> webkit-dev mailing list
>>> webkit-dev at lists.webkit.org
>>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>>
>>>
>>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090617/2389a9ea/attachment.html>


More information about the webkit-dev mailing list