[Solved] Error while compiling QtWebKit 2.2 with 3D canvas
-
Hi! I'm trying to build QtWebKit 2.2 with 3D canvas and support for WebGL for Qt Embedded against Qt 4.7.2. This is what I get:
@../../WebCore/release/libwebcore.a(CanvasRenderingContext2D.o): In function
void WTF::derefIfNotNull<WebCore::SharedGraphicsContext3D>(WebCore::SharedGraphicsContext3D*)': CanvasRenderingContext2D.cpp:(.text._ZN3WTF14derefIfNotNullIN7WebCore23SharedGraphicsContext3DEEEvPT_[void WTF::derefIfNotNull<WebCore::SharedGraphicsContext3D>(WebCore::SharedGraphicsContext3D*)]+0x20): undefined reference to
WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()'
../../WebCore/release/libwebcore.a(CanvasRenderingContext2D.o): In functionWebCore::CanvasRenderingContext2D::paintsIntoCanvasBuffer() const': CanvasRenderingContext2D.cpp:(.text._ZNK7WebCore24CanvasRenderingContext2D22paintsIntoCanvasBufferEv+0xc): undefined reference to
WebCore::SharedGraphicsContext3D::paintsIntoCanvasBuffer() const'
../../WebCore/release/libwebcore.a(CanvasRenderingContext2D.o): In functionWebCore::CanvasRenderingContext2D::setGlobalCompositeOperation(WTF::String const&)': CanvasRenderingContext2D.cpp:(.text._ZN7WebCore24CanvasRenderingContext2D27setGlobalCompositeOperationERKN3WTF6StringE+0x7c): undefined reference to
WebCore::SharedGraphicsContext3D::supportsCompositeOp(WebCore::CompositeOperator) const'
CanvasRenderingContext2D.cpp:(.text._ZN7WebCore24CanvasRenderingContext2D27setGlobalCompositeOperationERKN3WTF6StringE+0x118): undefined reference toWebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()' ../../WebCore/release/libwebcore.a(CanvasRenderingContext2D.o): In function
WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D(WebCore::HTMLCanvasElement*, bool, bool)':
CanvasRenderingContext2D.cpp:(.text._ZN7WebCore24CanvasRenderingContext2DC1EPNS_17HTMLCanvasElementEbb+0x1b8): undefined reference toWebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()' ../../WebCore/release/libwebcore.a(CanvasRenderingContext2D.o): In function
WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D(WebCore::HTMLCanvasElement*, bool, bool)':
CanvasRenderingContext2D.cpp:(.text._ZN7WebCore24CanvasRenderingContext2DC2EPNS_17HTMLCanvasElementEbb+0x1b8): undefined reference toWebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()' ../../WebCore/release/libwebcore.a(CanvasRenderingContext2D.o): In function
WebCore::CanvasRenderingContext2D::~CanvasRenderingContext2D()':
CanvasRenderingContext2D.cpp:(.text._ZN7WebCore24CanvasRenderingContext2DD1Ev+0x288): undefined reference toWebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()' ../../WebCore/release/libwebcore.a(CanvasRenderingContext2D.o): In function
WebCore::CanvasRenderingContext2D::~CanvasRenderingContext2D()':
CanvasRenderingContext2D.cpp:(.text._ZN7WebCore24CanvasRenderingContext2DD2Ev+0x288): undefined reference toWebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()' ../../WebCore/release/libwebcore.a(CanvasRenderingContext2D.o):CanvasRenderingContext2D.cpp:(.text._ZN7WebCore24CanvasRenderingContext2DD0Ev+0x290): more undefined references to
WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()' follow
../../WebCore/release/libwebcore.a(Page.o): In functionWebCore::Page::sharedGraphicsContext3D()': Page.cpp:(.text._ZN7WebCore4Page23sharedGraphicsContext3DEv+0x30): undefined reference to
WebCore::SharedGraphicsContext3D::create(WebCore::HostWindow*, unsigned int)'
Page.cpp:(.text._ZN7WebCore4Page23sharedGraphicsContext3DEv+0x8c): undefined reference toWebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()' Page.cpp:(.text._ZN7WebCore4Page23sharedGraphicsContext3DEv+0xa4): undefined reference to
WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()'
../../WebCore/release/libwebcore.a(Page.o): In functionWebCore::Page::~Page()': Page.cpp:(.text._ZN7WebCore4PageD1Ev+0x614): undefined reference to
WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()'
../../WebCore/release/libwebcore.a(Page.o): In functionWebCore::Page::~Page()': Page.cpp:(.text._ZN7WebCore4PageD2Ev+0x780): undefined reference to
WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D()'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtWebKit.so.4.9.0] Error 1
make[1]: Leaving directory `/home/luca/Qt/QtWebKit-2.2.0/WebKitBuild/Release/WebKit/qt'
make: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2@Any idea why I'm getting this error? I found nothing around.
Thanks!