[Qt-interest] Cannot build Qt 4.5.2 with Visual Studio 2008 (QtWebKitd4.dll linker errors)

Robert Caldecott robert.caldecott at gmail.com
Tue Jun 30 11:00:34 CEST 2009


I want to test the MS tools integration with Qt Creator 1.2 so have
downloaded the latest full Qt SDK and installed it into a separate
folder.  I then fired up the Visual Studio Command Prompt and did the
following:

    C:\Qt\4.5.2-vc\qt>configure -platform win32-msvc2008
    C:\Qt\4.5.2-vc\qt>nmake

Eventually I get the following linker errors when attempting to link
QtWebKitd4.dll:

QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
"public: virtual struct QMetaObject const * __thisc
all WebCore::FormDataIODevice::metaObject(void)const "
(?metaObject at FormDataIODevice@WebCore@@UBEPBUQMetaObject@@XZ)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
"public: virtual void * __thiscall WebCore::FormDat
aIODevice::qt_metacast(char const *)"
(?qt_metacast at FormDataIODevice@WebCore@@UAEPAXPBD at Z)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
"public: virtual int __thiscall WebCore::FormDataIO
Device::qt_metacall(enum QMetaObject::Call,int,void * *)"
(?qt_metacall at FormDataIODevice@WebCore@@UAEHW4Call at QMetaObject
@@HPAPAX at Z)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
"public: virtual struct QMetaObject const * __thisc
all WebCore::QNetworkReplyHandler::metaObject(void)const "
(?metaObject at QNetworkReplyHandler@WebCore@@UBEPBUQMetaObject@
@XZ)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
"public: virtual void * __thiscall WebCore::QNetwor
kReplyHandler::qt_metacast(char const *)"
(?qt_metacast at QNetworkReplyHandler@WebCore@@UAEPAXPBD at Z)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
"public: virtual int __thiscall WebCore::QNetworkRe
plyHandler::qt_metacall(enum QMetaObject::Call,int,void * *)"
(?qt_metacall at QNetworkReplyHandler@WebCore@@UAEHW4Call at QMe
taObject@@HPAPAX at Z)
FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol
"protected: void __thiscall QWebPage::unsupportedCon
tent(class QNetworkReply *)"
(?unsupportedContent at QWebPage@@IAEXPAVQNetworkReply@@@Z) referenced in
function "public: vi
rtual void __thiscall WebCore::FrameLoaderClientQt::download(class
WebCore::ResourceHandle *,struct WebCore::ResourceReq
uest const &,struct WebCore::ResourceRequest const &,class
WebCore::ResourceResponse const &)" (?download at FrameLoaderCli
entQt at WebCore@@UAEXPAVResourceHandle at 2@ABUResourceRequest at 2@1ABVResourceResponse at 2@@Z)
FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol
"protected: void __thiscall QWebPage::downloadReques
ted(class QNetworkRequest const &)"
(?downloadRequested at QWebPage@@IAEXABVQNetworkRequest@@@Z) referenced
in function "pu
blic: virtual void __thiscall
WebCore::FrameLoaderClientQt::startDownload(struct
WebCore::ResourceRequest const &)" (?st
artDownload at FrameLoaderClientQt@WebCore@@UAEXABUResourceRequest at 2@@Z)
..\..\..\..\lib\QtWebKitd4.dll : fatal error LNK1120: 8 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

Can anyone help get 4.5.2 to build with webkit support?  I have
managed to build 4.5.1 in the past OK (though I did build static libs
in that case).



More information about the Qt-interest-old mailing list