[webkit-dev] cairo.h not found when building on Windows (and some other errors)

Maciej Kołodziej mkol at ceti.pl
Thu Nov 16 02:08:59 PST 2006


All,

I'm trying to build WebKit on my Windows machine.

I have cygwin installed, load the vcvars32.bat and run 
WebKitToos/Scripts/build-webkit. Everything goes fine for some time (I 
get over 300 MB in the build output folder) but then I get this in 
BuildLog.htm:

...
HTMLAreaElement.cpp
HTMLAppletElement.cpp
HTMLAnchorElement.cpp
FormDataList.cpp
CanvasStyle.cpp
CanvasRenderingContext2D.cpp
c:\Projects\eudora\WebKit\WebCore\platform\graphics\AffineTransform.h(36) 
: fatal error C1083: Cannot open include file: 'cairo.h': No such file 
or directory
CanvasPattern.cpp
Compiling...
CanvasGradient.cpp
...

And then below:

...
PageWin.cpp
..\..\bridge\win\PageWin.cpp(42) : error C2027: use of undefined type 
'WebCore::FrameView'
         c:\projects\eudora\webkit\webcore\rendering\RenderObject.h(48) 
: see declaration of 'WebCore::FrameView'
..\..\bridge\win\PageWin.cpp(42) : error C2227: left of 
'->containingWindow' must point to class/struct/union/generic type
..\..\bridge\win\PageWin.cpp(48) : error C2039: 'windowRect' : is not a 
member of 'WebCore::Page'
         c:\Projects\eudora\WebKit\WebCore\page\Page.h(42) : see 
declaration of 'WebCore::Page'
..\..\bridge\win\PageWin.cpp(49) : error C2270: 'windowRect' : modifiers 
not allowed on nonmember functions
..\..\bridge\win\PageWin.cpp(50) : error C3861: 'mainFrame': identifier 
not found
..\..\bridge\win\PageWin.cpp(55) : error C2440: 'return' : cannot 
convert from 'RECT' to 'WebCore::FloatRect'
         No user-defined-conversion operator available that can perform 
this conversion, or the operator cannot be called
..\..\bridge\win\PageWin.cpp(58) : error C2039: 'setWindowRect' : is not 
a member of 'WebCore::Page'
         c:\Projects\eudora\WebKit\WebCore\page\Page.h(42) : see 
declaration of 'WebCore::Page'
..\..\bridge\win\PageWin.cpp(60) : error C3861: 'mainFrame': identifier 
not found
FrameWin.cpp
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(39) : error 
C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(39) : error 
C2143: syntax error : missing ',' before '&'
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(41) : error 
C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(41) : error 
C2143: syntax error : missing ',' before '*'
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(58) : error 
C2146: syntax error : missing ';' before identifier 'objectContentType'
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(58) : error 
C2433: 'WebCore::FrameWin::ObjectContentType' : 'virtual' not permitted 
on data declarations
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(58) : error 
C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(58) : error 
C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(58) : warning 
C4183: 'objectContentType': missing return type; assumed to be a member 
function returning 'int'
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(59) : error 
C2143: syntax error : missing ';' before '*'
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(59) : error 
C2433: 'WebCore::FrameWin::Plugin' : 'virtual' not permitted on data 
declarations
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(59) : error 
C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(59) : error 
C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
c:\projects\eudora\webkit\webcore\bridge\win\FrameWin.h(59) : warning 
C4183: 'createPlugin': missing return type; assumed to be a member 
function returning 'int'
..\..\bridge\win\FrameWin.cpp(62) : error C3861: 
'clearRecordedFormValues': identifier not found
..\..\bridge\win\FrameWin.cpp(75) : error C2039: 'm_submittedFormURL' : 
is not a member of 'WebCore::FramePrivate'
         c:\Projects\eudora\WebKit\WebCore\page\FramePrivate.h(41) : see 
declaration of 'WebCore::FramePrivate'
..\..\bridge\win\FrameWin.cpp(77) : error C2039: 'm_submittedFormURL' : 
is not a member of 'WebCore::FramePrivate'
         c:\Projects\eudora\WebKit\WebCore\page\FramePrivate.h(41) : see 
declaration of 'WebCore::FramePrivate'
..\..\bridge\win\FrameWin.cpp(80) : error C2102: '&' requires l-value
..\..\bridge\win\FrameWin.cpp(82) : error C3861: 
'clearRecordedFormValues': identifier not found
..\..\bridge\win\FrameWin.cpp(96) : error C2027: use of undefined type 
'WebCore::FrameView'
         c:\projects\eudora\webkit\webcore\rendering\RenderObject.h(48) 
: see declaration of 'WebCore::FrameView'
..\..\bridge\win\FrameWin.cpp(96) : error C2227: left of 
'->containingWindow' must point to class/struct/union/generic type
..\..\bridge\win\FrameWin.cpp(105) : error C2027: use of undefined type 
'WebCore::FrameView'
         c:\projects\eudora\webkit\webcore\rendering\RenderObject.h(48) 
: see declaration of 'WebCore::FrameView'
..\..\bridge\win\FrameWin.cpp(105) : error C2227: left of 
'->containingWindow' must point to class/struct/union/generic type
..\..\bridge\win\FrameWin.cpp(128) : error C3861: 
'prepareForUserAction': identifier not found
..\..\bridge\win\FrameWin.cpp(155) : error C2660: 
'WebCore::FrameWinClient::createNewWindow' : function does not take 3 
arguments
XMLTokenizer.cpp
...

Anyone knows how to fix those errors? These files are present in the 
source tree, so I guess there's somethng wrong with the build paths. 
There's also one more error which I think is connected with the first one:

...
RenderThemeWin.cpp
..\..\rendering\RenderThemeWin.cpp(26) : fatal error C1083: Cannot open 
include file: 'cairo-win32.h': No such file or directory
...

Thanks,
Maciej.




More information about the webkit-dev mailing list