[webkit-help] Building Cairo port

Eric Fortin 2 eric.fortin at ubisoft.com
Wed Apr 25 06:41:55 PDT 2012


Hi,

I'm currently trying to build the Cairo port of WebKit and I run into compilation errors. I am currently on revision 115022 which is a nightly build and I can build and run Apple Windows port.

Here are some of the errors I get:

error C2065: 'CGDataConsumerRef' : undeclared identifier
10>..\WebProcess\WebPage\WebPage.cpp(2896): error C3861: 'CGDataConsumerCreateWithCFData': identifier not found
10>..\WebProcess\WebPage\WebPage.cpp(2896): error C2514: 'WTF::RetainPtr' : class has no constructors
10>          C:\Cygwin\home\efortin2\WebKit\WebKitBuild\Debug_Cairo_CFLite\Include\private\wtf/RetainPtr.h(55) : see declaration of 'WTF::RetainPtr'
10>..\WebProcess\WebPage\WebPage.cpp(2898): error C2065: 'CGRect' : undeclared identifier
10>..\WebProcess\WebPage\WebPage.cpp(2898): error C2146: syntax error : missing ';' before identifier 'mediaBox'
10>..\WebProcess\WebPage\WebPage.cpp(2898): error C2065: 'mediaBox' : undeclared identifier
10>..\WebProcess\WebPage\WebPage.cpp(2898): error C3861: 'CGRectMake': identifier not found
10>..\WebProcess\WebPage\WebPage.cpp(2899): error C2065: 'CGContextRef' : undeclared identifier
10>..\WebProcess\WebPage\WebPage.cpp(2899): error C2662: 'WTF::RetainPtr<T>::get' : cannot convert 'this' pointer from 'WTF::RetainPtr' to 'const WTF::RetainPtr<T> &'

I understand the error and know that it fails because it hasn't seen the definition of CGDataConsumer but I'm wondering why the Cairo build is trying to include CoreGraphics stuff. The errors I get are currently all in WebKit2/WebProcess/WebPage/WebPage.cpp which I think, with my little understanding, is supposed to be for all ports.

Here's more info:

OS: Windows 7
Config: Cairo Debug
Caveat: I'm building on VS2010 but as I said, I'm able to build the Apple Windows port.


I must be missing something. Did anyone get this error ?

Thanks,

Eric Fortin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120425/e77add01/attachment.html>


More information about the webkit-help mailing list