Problem Compiling 4.5.2 in Visual Studio 2008

来源:互联网 发布:矩阵有乘法分配律吗 编辑:程序博客网 时间:2024/06/05 17:43

Problem Compiling 4.5.2 in Visual Studio 2008

 (4 posts)
  • Started 1 month ago by pbagwell
  • Latest reply from jiapei100

Tags:

  • VS2008 
  • compile 
  • 4.5.2
  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. jiapei100
    jiapei100
    Member

    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

原创粉丝点击