PDA

View Full Version : Qt 4.8.4 Webkit error while building



sonulohani
22nd June 2013, 08:57
Hello,

I am getting this error while building qt 4.8.4:-


./tmp\obj\debug_shared\qwebelement.o:qwebelement.cpp :(.text+0x1c3a): undefined r
eference to `WebCore::CSSStyleSelector::styleRulesForElement(W ebCore::Element*,
bool, bool, WebCore::CSSRuleFilter)'
..\..\WebCore\debug/libwebcore.a(StyleMedia.o):StyleMedia.cpp:(.text+0 x145): und
efined reference to `WebCore::CSSStyleSelector::styleForElement(WebCor e::Element
*, WebCore::RenderStyle*, bool, bool, bool)'
..\..\WebCore\debug/libwebcore.a(WebKitCSSMatrix.o):WebKitCSSMatrix.cp p:(.text+0
x2cd): undefined reference to `WebCore::CSSStyleSelector::createTransformOperati
ons(WebCore::CSSValue*, WebCore::RenderStyle*, WebCore::RenderStyle*, WebCore::T
ransformOperations&)'
..\..\WebCore\debug/libwebcore.a(Node.o):Node.cpp:(.text+0x35ae): undefined refe
rence to `WebCore::CSSStyleSelector::styleForElement(WebCor e::Element*, WebCore:
:RenderStyle*, bool, bool, bool)'
..\..\WebCore\debug/libwebcore.a(Node.o):Node.cpp:(.text+0x4943): undefined refe
rence to `WebCore::CSSStyleSelector::SelectorChecker::Selec torChecker(WebCore::D
ocument*, bool)'
..\..\WebCore\debug/libwebcore.a(Node.o):Node.cpp:(.text+0x4a39): undefined refe
rence to `WebCore::CSSStyleSelector::SelectorChecker::check Selector(WebCore::CSS
Selector*, WebCore::Element*) const'
..\..\WebCore\debug/libwebcore.a(Node.o):Node.cpp:(.text+0x4aef): undefined refe
rence to `WebCore::CSSStyleSelector::SelectorChecker::check Selector(WebCore::CSS
Selector*, WebCore::Element*) const'
c:/qt-4.8.4/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w
64-mingw32/bin/ld.exe: ..\..\WebCore\debug/libwebcore.a(Node.o): bad reloc addre
ss 0x4c in section `.xdata'
collect2.exe: error: ld returned 1 exit status
jom: C:\qt-4.8.4\4.8.4-qt-x64-build\src\3rdparty\webkit\Source\WebKit\qt\Makefil
e.WebKit.QtWebKit.Debug [..\..\..\..\..\..\lib\QtWebKitd4.dll] Error 1
jom: Leaving directory 'C:\qt-4.8.4\4.8.4-qt-x64-build\src\3rdparty\webkit\Sourc
e\WebKit\qt'
jom: C:\qt-4.8.4\4.8.4-qt-x64-build\src\3rdparty\webkit\Source\WebKit\qt\Makefil
e.WebKit.QtWebKit [debug-all] Error 2
jom: Leaving directory 'C:\qt-4.8.4\4.8.4-qt-x64-build\src\3rdparty\webkit\Sourc
e\WebKit\qt'
jom: C:\qt-4.8.4\4.8.4-qt-x64-build\src\3rdparty\webkit\Source\Makefile.WebKit [
sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
jom: Leaving directory 'C:\qt-4.8.4\4.8.4-qt-x64-build\src\3rdparty\webkit\Sourc
e'
jom: C:\qt-4.8.4\4.8.4-qt-x64-build\Makefile [sub-webkit-make_default-ordered] E
rror 2
jom: Leaving directory 'C:\qt-4.8.4\4.8.4-qt-x64-build'


Anyone has the solution for this?

Thankyou

saman_artorious
22nd June 2013, 10:01
Did you bother to google?
if not, add this to your project file, it may because of that:


QT += webkit