Just got similar issue on the latest sync. The WebKit project failed to build due to problems in webkit\source\webkit2\uiprocess\BackingStore.h
It has code specific for Cairo: #if USE(CAIRO) && !PLATFORM(WIN_CAIRO) #include <RefPtrCairo.h> #include <WebCore/WidgetBackingStore.h> #endif First, it could not find the <RefPtrCairo.h> in the default include folders. After replacing this with <WebCore/RefPtrCairo.h> (where is it really located), this transformed to the error of not finding WebCore/WidgetBackingStore.h: it is not present in forwarding headers. And if you resolve this, you will get the PlatformWidget not defined error similar to the below. On Sun, Nov 20, 2011 at 1:35 AM, Chris Waldron <christy.wald...@gmail.com>wrote: > I’m getting a build failure because the variable PlatformWidget in > WidgetBackingStore.h is undefined for CAIRO builds. And this was after I > resolved several include file resolution errors. I had to add the > following include directors to the WebKit project to resolve several > include files > (..\..;..\..\WebCore\platform\graphics\cairo;..\..\WebCore\platform\graphics;) > **** > > ** ** > > Here’s the failing code …**** > > ** ** > > #ifndef WidgetBackingStore_h**** > > #define WidgetBackingStore_h**** > > ** ** > > #include "IntRect.h"**** > > #include "IntSize.h"**** > > #include <wtf/FastAllocBase.h>**** > > #include <wtf/Noncopyable.h>**** > > #include <wtf/PassOwnPtr.h>**** > > ** ** > > #if PLATFORM(GTK)**** > > #include <gtk/gtk.h>**** > > #elif PLATFORM(EFL)**** > > #include <Evas.h>**** > > #endif**** > > ** ** > > namespace WebCore {**** > > ** ** > > class WidgetBackingStorePrivate;**** > > ** ** > > #if PLATFORM(GTK)**** > > typedef GtkWidget* PlatformWidget;**** > > #elif PLATFORM(EFL)**** > > typedef Evas_Object* PlatformWidget;**** > > #endif**** > > ** ** > > class WidgetBackingStore {**** > > WTF_MAKE_NONCOPYABLE(WidgetBackingStore);**** > > WTF_MAKE_FAST_ALLOCATED;**** > > ** ** > > public:**** > > ** ** > > // PlatformWidget is undefined causing a syntax error. How can I > resolve this?**** > > static PassOwnPtr<WidgetBackingStore> create(PlatformWidget, const > IntSize&); **** > > ~WidgetBackingStore();**** > > cairo_surface_t* cairoSurface();**** > > void scroll(const IntRect& scrollRect, const IntSize& scrollOffset);** > ** > > const IntSize& size() { return m_size; }**** > > ** ** > > private:**** > > WidgetBackingStore(PlatformWidget, const IntSize&);**** > > ** ** > > OwnPtr<WidgetBackingStorePrivate> m_private;**** > > IntSize m_size;**** > > };**** > > ** ** > > } // namespace WebCore**** > > ** ** > > #endif // WidgetBackingStore_h**** > > ** ** > > ** ** > > ####### COMPILING 4 FILES USING AT MOST 1 PARALLEL INSTANCES OF cl.exe > ###########**** > > WebView.cpp**** > > c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStore.h(49) > : error C2061: syntax error : identifier 'PlatformWidget'**** > > c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStore.h(57) > : error C2061: syntax error : identifier 'PlatformWidget'**** > > DrawingAreaProxyImpl.cpp**** > > c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStore.h(49) > : error C2061: syntax error : identifier 'PlatformWidget'**** > > c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStore.h(57) > : error C2061: syntax error : identifier 'PlatformWidget'**** > > BackingStoreWin.cpp**** > > c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStore.h(49) > : error C2061: syntax error : identifier 'PlatformWidget'**** > > c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStore.h(57) > : error C2061: syntax error : identifier 'PlatformWidget'**** > > BackingStore.cpp**** > > c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStore.h(49) > : error C2061: syntax error : identifier 'PlatformWidget'**** > > c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStore.h(57) > : error C2061: syntax error : identifier 'PlatformWidget'**** > > Generating Code...**** > > Build log was saved at > "file://C:\cygwin\home\webkit\WebKit\WebKitBuild\Release_Cairo_CFLite\obj\WebKit\BuildLog.htm" > **** > > WebKit - 8 error(s), 0 warning(s)**** > > _______________________________________________ > webkit-help mailing list > webkit-help@lists.webkit.org > http://lists.webkit.org/mailman/listinfo.cgi/webkit-help > >
_______________________________________________ webkit-help mailing list webkit-help@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-help