Problem Compiling 4.5.2 in Visual Studio 2008

Problem Compiling 4.5.2 in Visual Studio 2008

  (4 posts)

Tags:

  1. pbagwell
    pbagwell
    Member

    I am trying to compile the Qt 4.5.2 libraries for Visual Studio 2008.

    I copied the qt directory into a new folder, ran configure and then nmake.
    The libraries compiled normally until reaching the QtWebKitd4 library.
    Then the link failed with multiple unresolved external symbol messages.
    All previous libraries compiled with no problems.

    Any suggestions on possible work arounds?

    Phil

    Full text of the last library compile:

    qrc_WebKit.cpp
    qrc_WebCore.cpp
    Generating Code...
    link /LIBPATH:"c:QtQt4.5_200903qtlib" /LIBPATH:"c:QtQt4.5_200903q
    tlib" /NOLOGO /DEBUG /DLL /MANIFEST /MANIFESTFILE:"tmpobjdebug_sharedQtWebKi
    td.intermediate.manifest" /VERSION:4.52 /OUT:........libQtWebKitd4.dll @C:
    TEMPnm35D.tmp
    Creating library ........libQtWebKitd4.lib and object ........libQt
    WebKitd4.exp
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual struct QMetaObject const * __thiscall WebCore::FormDataIODevice::metaObjec
    t(void)const " (?metaObject@FormDataIODevice@WebCore@@UBEPBUQMetaObject@@XZ)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual void * __thiscall WebCore::FormDataIODevice::qt_metacast(char const *)" (?
    qt_metacast@FormDataIODevice@WebCore@@UAEPAXPBD@Z)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual int __thiscall WebCore::FormDataIODevice::qt_metacall(enum QMetaObject::Ca
    ll,int,void * *)" (?qt_metacall@FormDataIODevice@WebCore@@UAEHW4Call@QMetaObject
    @@HPAPAX@Z)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual struct QMetaObject const * __thiscall WebCore::QNetworkReplyHandler::metaO
    bject(void)const " (?metaObject@QNetworkReplyHandler@WebCore@@UBEPBUQMetaObject@
    @XZ)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual void * __thiscall WebCore::QNetworkReplyHandler::qt_metacast(char const *)
    " (?qt_metacast@QNetworkReplyHandler@WebCore@@UAEPAXPBD@Z)
    QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
    rtual int __thiscall WebCore::QNetworkReplyHandler::qt_metacall(enum QMetaObject
    ::Call,int,void * *)" (?qt_metacall@QNetworkReplyHandler@WebCore@@UAEHW4Call@QMe
    taObject@@HPAPAX@Z)
    FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol "protected:
    void __thiscall QWebPage::unsupportedContent(class QNetworkReply *)" (?unsupport
    edContent@QWebPage@@IAEXPAVQNetworkReply@@@Z) referenced in function "public: vi
    rtual void __thiscall WebCore::FrameLoaderClientQt::download(class WebCore::Reso
    urceHandle *,struct WebCore::ResourceRequest const &,struct WebCore::ResourceReq
    uest const &,class WebCore::ResourceResponse const &)" (?download@FrameLoaderCli
    entQt@WebCore@@UAEXPAVResourceHandle@2@ABUResourceRequest@2@1ABVResourceResponse
    @2@@Z)
    FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol "protected:
    void __thiscall QWebPage::downloadRequested(class QNetworkRequest const &)" (?do
    wnloadRequested@QWebPage@@IAEXABVQNetworkRequest@@@Z) referenced in function "pu
    blic: virtual void __thiscall WebCore::FrameLoaderClientQt::startDownload(struct
    WebCore::ResourceRequest const &)" (?startDownload@FrameLoaderClientQt@WebCore@
    @UAEXABUResourceRequest@2@@Z)
    ........libQtWebKitd4.dll : fatal error LNK1120: 8 unresolved externals
    NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio 9.0VCBIN
    link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio 9.0VCBIN
    nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    Posted: 1 month  #
  2. rec
    rec
    Member

    I had the same problem and it's easily fixed. Remove the following files and run nmake again:

    src/3rdparty/webkit/WebCore/tmp/moc/{debug,release}_shared/mocinclude.tmp

    Posted: 1 month  #
  3. Exactly the same problem!!!

    Those two files in src/3rdparty/webkit/WebCore/tmp/moc/{debug,release}_shared/mocinclude.tmp
    contains some directories for QT 4.5.0 .

    Yes, remove these two files!!!

    Posted: 2 days  #
  4. jiapei100

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值