[webkit-help] WebKit build failure
Chris Waldron
christy.waldron at gmail.com
Sun Nov 20 01:35:11 PST 2011
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/WidgetBackingStor
e.h(49) : error C2061: syntax error : identifier 'PlatformWidget'
c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStor
e.h(57) : error C2061: syntax error : identifier 'PlatformWidget'
DrawingAreaProxyImpl.cpp
c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStor
e.h(49) : error C2061: syntax error : identifier 'PlatformWidget'
c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStor
e.h(57) : error C2061: syntax error : identifier 'PlatformWidget'
BackingStoreWin.cpp
c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStor
e.h(49) : error C2061: syntax error : identifier 'PlatformWidget'
c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStor
e.h(57) : error C2061: syntax error : identifier 'PlatformWidget'
BackingStore.cpp
c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStor
e.h(49) : error C2061: syntax error : identifier 'PlatformWidget'
c:\cygwin\home\webkit\WebKit\Source\WebCore/platform/cairo/WidgetBackingStor
e.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\We
bKit\BuildLog.htm"
WebKit - 8 error(s), 0 warning(s)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20111120/e45a8fe0/attachment.html>
More information about the webkit-help
mailing list