[webkit-dev] Webkit Building on Windows

Jith Thomas jiththomas at gmail.com
Fri Oct 5 02:01:48 PDT 2007


Hello All,

I am beginner with webkit and wanted to build it for windows.  I followed
the given steps and is still getting the following errors. Please tell me
how to proceed and correct me in case I am  wrong.

*Steps I followed*
1) Downloaded the webkit source from webkit  site.
2) Downloaded support libraries for windows and placed it in the webkit
folder.
3) Installed microsoft visual studio 2005 Service Pack 1
4) Installed Cygwin (Please note I have used old version  available with me
and haven't downloaded from the webkit site. Later I replaced the cygwin
with one from the site also but still error was there.)
5) I placed webkit folder in the cygwin/home/<user>/ folder.
6) I opened the WebKit\WebKit\win\WebKit.vcproj/WebKit.vcproj in Visual
studio 2005  and set all the include and library path.
7)Opened cygwin bash shell and typed the command

*$ WebKit/WebKitTools/Scripts/update-webkit*
and the result was,

*Updating OpenSource
svn: Working copy '.' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
Died at ./update-webkit line 45.*

8) Then I continued with

*$ WebKit/WebKitTools/Scripts/build-webkit *
and got the following errors.

**************************************************************************************

>------ Build started: Project: JavaScriptCore, Configuration: Release Win32
--
---
>------ Build started: Project: WTF, Configuration: Release Win32 ------
>Compiling...
>Constructing generated files...
>build-generated-files.sh: line 2: $'\r': command not found
>build-generated-files.sh: line 5: $'\r': command not found
>mkdir: cannot create directory `/cygdrive/d/webkit/WebKitBuild\r': No such
fil
 or directory
>build-generated-files.sh: line 9: $'\r': command not found
>build-generated-files.sh: line 11: $'\r': command not found
>build-generated-files.sh: line 71: syntax error: unexpected end of file
>dftables: failed to open
d:\webkit\WebKitBuild\obj\JavaScriptCore\Release\Deri
edSources\chartables.c for writing
>TCSystemAlloc.cpp
>0 File(s) copied
>0 File(s) copied
>0 File(s) copied
>0 File(s) copied
>0 File(s) copied
>0 File(s) copied
>0 File(s) copied
>0 File(s) copied
>0 File(s) copied
>Compiling...
>c_utility.cpp
>d:\webkit\javascriptcore\wtf\TCSpinLock.h(156) : fatal error C1083: Cannot
ope
 include file: 'pthread.h': No such file or directory
>FastMalloc.cpp
>..\..\wtf\FastMalloc.cpp(70) : fatal error C1083: Cannot open include file:
'p
hread.h': No such file or directory
>Build log was saved at "
file://d:\webkit\WebKitBuild\obj\WTF\Release\BuildLog<file:///d:/webkit/WebKitBuild/obj/WTF/Release/BuildLog>
.
tm"
>WTF - 2 error(s), 0 warning(s)
>..\..\bindings\c\c_utility.cpp(41) : fatal error C1083: Cannot open include
fi
e: 'unicode/ucnv.h': No such file or directory
>string_object.cpp

'string_object.lut.h': No such file or directory
>regexp_object.cpp
>..\..\kjs\regexp_object.cpp(25) : fatal error C1083: Cannot open include
file:
'regexp_object.lut.h': No such file or directory
>number_object.cpp
>..\..\kjs\number_object.cpp(24) : fatal error C1083: Cannot open include
file:
'number_object.lut.h': No such file or directory
>math_object.cpp
>..\..\kjs\math_object.cpp(24) : fatal error C1083: Cannot open include
file: '
ath_object.lut.h': No such file or directory
>lexer.cpp
>d:\WebKit\JavaScriptCore\wtf/unicode/icu/UnicodeIcu.h(28) : fatal error
C1083:
Cannot open include file: 'unicode/uchar.h': No such file or directory
>JSLock.cpp
>..\..\kjs\JSLock.cpp(28) : fatal error C1083: Cannot open include file:
'pthre
d.h': No such file or directory
>grammarWrapper.cpp
>.\grammarWrapper.cpp(7) : fatal error C1083: Cannot open include file:
'gramma
.cpp': No such file or directory
>function.cpp
>d:\WebKit\JavaScriptCore\wtf/unicode/icu/UnicodeIcu.h(28) : fatal error
C1083:
Cannot open include file: 'unicode/uchar.h': No such file or directory
>date_object.cpp
>..\..\kjs\date_object.cpp(24) : fatal error C1083: Cannot open include
file: '
ate_object.lut.h': No such file or directory
>collector.cpp
>..\..\kjs\collector.cpp(36) : fatal error C1083: Cannot open include file:
'pt
read.h': No such file or directory
>array_object.cpp
>..\..\kjs\array_object.cpp(27) : fatal error C1083: Cannot open include
file:
array_object.lut.h': No such file or directory
>Build log was saved at "
file://d:\webkit\WebKitBuild\obj\JavaScriptCore\Releas<file:///d:/webkit/WebKitBuild/obj/JavaScriptCore/Releas>
\BuildLog.htm"
>JavaScriptCore - 12 error(s), 0 warning(s)
>------ Build started: Project: WebCore, Configuration: Release Win32 ------
>------ Build started: Project: testkjs, Configuration: Release Win32 ------
>Linking...
>LINK : fatal error LNK1181: cannot open input file 'JavaScriptCore.lib'
>Build log was saved at "
file://d:\webkit\WebKitBuild\obj\JavaScriptCore\testkj<file:///d:/webkit/WebKitBuild/obj/JavaScriptCore/testkj>
\Release\BuildLog.htm"
>testkjs - 1 error(s), 0 warning(s)
>Performing Pre-Build Event...
>cl : Command line warning D9040 : ignoring option '/analyze'; Code Analysis
wa
nings are not available in this edition of the compiler
>tmp.cpp
>build-generated-files.sh: line 2: $'\r': command not found
>build-generated-files.sh: line 4: $'\r': command not found
>realpath: No such file or directory
>cygpath: cannot create short name of
>build-generated-files.sh: line 11: export: `XSRCROOT': not a valid
identifier
>build-generated-files.sh: line 13: $'\r': command not found
>build-generated-files.sh: line 15: export: `XDSTROOT': not a valid
identifier
>cygpath: cannot create short name of d:\webkit\WebKitBuild
>build-generated-files.sh: line 20: export: `XDSTROOT': not a valid
identifier
>build-generated-files.sh: line 21: $'\r': command not found
>build-generated-files.sh: line 23: export: `SDKROOT': not a valid
identifier
>cygpath: cannot create short name of d:\webkit\WebKitLibraries\win
>build-generated-files.sh: line 28: export: `SDKROOT': not a valid
identifier
>build-generated-files.sh: line 29: $'\r': command not found
>build-generated-files.sh: line 31: $'\r': command not found
>build-generated-files.sh: line 44: syntax error: unexpected end of file
>Project : error PRJ0019: A tool returned an error code from "Performing
Pre-Bu
ld Event..."
>Project : warning PRJ0018 : The following environment variables were not
found

>$(AnalyzeWithLargeStack)
>Build log was saved at "
file://d:\webkit\WebKitBuild\obj\WebCore\Release\Build<file:///d:/webkit/WebKitBuild/obj/WebCore/Release/Build>
og.htm"
>WebCore - 1 error(s), 1 warning(s)
>------ Build started: Project: WebKit, Configuration: Release Win32 ------
>Performing Pre-Build Event...
>cl : Command line warning D9040 : ignoring option '/analyze'; Code Analysis
wa
nings are not available in this edition of the compiler
>tmp.cpp
>File not found - *
>0 File(s) copied
>auto-version.sh: line 2: $'\r': command not found
>auto-version.sh: line 25: $'\r': command not found
>mkdir: cannot create directory
`/cygdrive/d/webkit/WebKitBuild/obj/WebKit/Rele
se\r': No such file or directory
>auto-version.sh: line 31: $'\r': command not found
>cat: /cygdrive/d/WebKit/WebKit/win/WebKit.vcproj//PRODUCTVERSION: No such
file
or directory
>sed: can't read
/cygdrive/d/WebKit/WebKit/win/WebKit.vcproj//PRODUCTVERSION: N
 such file or directory
>sed: can't read
/cygdrive/d/WebKit/WebKit/win/WebKit.vcproj//PRODUCTVERSION: N
 such file or directory
>sed: can't read
/cygdrive/d/WebKit/WebKit/win/WebKit.vcproj//PRODUCTVERSION: N
 such file or directory
>auto-version.sh: line 97: syntax error: unexpected end of file
>Project : error PRJ0019: A tool returned an error code from "Performing
Pre-Bu
ld Event..."
>Project : warning PRJ0018 : The following environment variables were not
found

>$(BuildBot)
>Build log was saved at "
file://d:\webkit\WebKitBuild\obj\WebKit\Release\BuildL<file:///d:/webkit/WebKitBuild/obj/WebKit/Release/BuildL>
g.htm"
>WebKit - 1 error(s), 1 warning(s)
>------ Build started: Project: DumpRenderTree, Configuration: Release Win32
--
---
>------ Build started: Project: TestNetscapePlugin, Configuration: Release
Win3
 ------
>Compiling...
>Compiling...
>WorkQueueItem.cpp
>TestObject.c
>d:\webkit\webkittools\dumprendertree\testnetscapeplugin.subproj\TestObject.h(3
) : fatal error C1083: Cannot open include file: 'WebKit/npapi.h': No such
file
or directory
>PluginObject.c
>d:\webkit\webkittools\dumprendertree\testnetscapeplugin.subproj\PluginObject.h
34) : fatal error C1083: Cannot open include file: 'WebKit/npfunctions.h':
No s
ch file or directory
>main.c
>d:\WebKit\WebKitTools\DumpRenderTree\TestNetscapePlugin.subproj\PluginObject.h
34) : fatal error C1083: Cannot open include file: 'WebKit/npfunctions.h':
No s
ch file or directory
>Build log was saved at "
file://d:\webkit\WebKitBuild\obj\TestNetscapePlugin\Re<file:///d:/webkit/WebKitBuild/obj/TestNetscapePlugin/Re>
ease\BuildLog.htm"
>TestNetscapePlugin - 3 error(s), 0 warning(s)
>.\WorkQueueItem.cpp(32) : fatal error C1083: Cannot open include file:
'WebCor
/COMPtr.h': No such file or directory
>WorkQueue.cpp
>.\WorkQueue.cpp(34) : fatal error C1083: Cannot open include file:
'wtf/Platfo
m.h': No such file or directory
>DumpRenderTree.cpp
>.\DumpRenderTree.cpp(31) : fatal error C1083: Cannot open include file:
'wtf/V
ctor.h': No such file or directory
>LayoutTestController.cpp
>.\LayoutTestController.cpp(36) : fatal error C1083: Cannot open include
file:
WebCore/COMPtr.h': No such file or directory
>GCController.cpp
>.\GCController.cpp(32) : fatal error C1083: Cannot open include file:
'wtf/Pla
form.h': No such file or directory
>EventSender.cpp
>.\EventSender.cpp(34) : fatal error C1083: Cannot open include file:
'WebCore/
OMPtr.h': No such file or directory
>WaitUntilDoneDelegate.cpp
>.\WaitUntilDoneDelegate.cpp(39) : fatal error C1083: Cannot open include
file:
'WebCore/COMPtr.h': No such file or directory
>EditingDelegate.cpp
>.\EditingDelegate.cpp(32) : fatal error C1083: Cannot open include file:
'WebC
re/COMPtr.h': No such file or directory
>Build log was saved at "
file://d:\webkit\WebKitBuild\obj\DumpRenderTree\Releas<file:///d:/webkit/WebKitBuild/obj/DumpRenderTree/Releas>
\BuildLog.htm"
>DumpRenderTree - 8 error(s), 0 warning(s)
========= Build: 0 succeeded, 7 failed, 3 up-to-date, 0 skipped ==========

*************************************************************************************************************

Please help me in building the webkit. Also tell me if  the steps I followed
are not proper.

Thanks in Advance,

With Best Regards,
Jith Thomas .T
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/webkit-dev/attachments/20071005/0d250653/attachment.html


More information about the webkit-dev mailing list