[webkit-help] Problem compiling WebKit --wx on Snow Leopard 10.6.2

Deron Johnson deronj at comcast.net
Wed Feb 24 16:10:25 PST 2010


I brought over the webkit svn today and executed the command:

./WebKitTools/Scripts/build-webkit --wx

I got the following build error on ImageWx.cpp:

./platform/graphics/wx/ImageWx.cpp: In member function ‘bool WebCore::FrameData::clear(bool)’:
../platform/graphics/wx/ImageWx.cpp:60: warning: possible problem detected in invocation of delete operator:
../platform/graphics/wx/ImageWx.cpp:60: warning: invalid use of undefined type ‘struct wxGraphicsBitmap’
../platform/graphics/ImageSource.h:35: warning: forward declaration of ‘struct wxGraphicsBitmap’
../platform/graphics/wx/ImageWx.cpp:60: note: neither the destructor nor the class-specific operator delete will be called, even if they are declar\
ed when the class is defined.
../platform/graphics/wx/ImageWx.cpp: In member function ‘virtual void WebCore::BitmapImage::draw(WebCore::GraphicsContext*, const WebCore::FloatRec\
t&, const WebCore::FloatRect&, WebCore::ColorSpace, WebCore::CompositeOperator)’:
../platform/graphics/wx/ImageWx.cpp:138: error: ‘class wxGraphicsContext’ has no member named ‘DrawGraphicsBitmap’
../platform/graphics/wx/ImageWx.cpp: In member function ‘virtual void WebCore::Image::drawPattern(WebCore::GraphicsContext*, const WebCore::FloatRe\
ct&, const WebCore::AffineTransform&, const WebCore::FloatPoint&, WebCore::ColorSpace, WebCore::CompositeOperator, const WebCore::FloatRect&)’:
../platform/graphics/wx/ImageWx.cpp:223: error: ‘class wxGraphicsContext’ has no member named ‘DrawGraphicsBitmap’
Waf: Leaving directory `/Users/dj/WebKit/WebCore/build'
Build failed
 -> task failed (err #1):
        {task: cxx ImageWx.cpp -> ImageWx_1.o}

The errant line number (138) has the following code:

#if wxCHECK_VERSION(2,9,0)
    gc->DrawBitmap(*bitmap, adjustedDestRect.x(), adjustedDestRect.y(), adjustedDestRect.width(), adjustedDestRect.height());
#else
    gc->DrawGraphicsBitmap(*bitmap, adjustedDestRect.x(), adjustedDestRect.y(), adjustedDestRect.width(), adjustedDestRect.height());
#endif

I have wxWidgets 2.8 installed in /usr/include/wx-2.8 and graphics.h doesn't have any member DrawGraphicsBitmap defined. 
It only has DrawBitmap defined.

Can anyone help me with this? Many thanks.

-Deron Johnson




More information about the webkit-help mailing list