[Qt-interest] Error linking 4.5.2 in Windows with Visual C++ 2008SP1

Kimitake kimitake at gmail.com
Mon Jun 29 18:32:28 CEST 2009


Hi RFOG,

You may have already found the reason, but I just let you know.
I encountered the same issue with VC 2005, I added -direct3d and
-phonon option for configure.

I checked 3rdparty\webkit\WebCore\tmp\moc\debug_shared folder and
moc_QNetworkReplyHandler.cpp's size is 0, and moc_qwebpage.cpp is different from
release_shared one.

I'm not sure but even if I deleted the folder, the issue was not
fixed, so finally
copied them from release_shared to debug_shared and touch them, and did nmake.
So it seems to be OK.

Regards,
Kimitake

On Sun, Jun 28, 2009 at 11:20 AM, RFOG<no at mail.com> wrote:
> Nope.
>
> I continue getting the same error. I will search for fault symbols (When I
> had time to do).
>
> On Sun, 28 Jun 2009 18:30:22 +0200, Benjamin Sonnemann
> <benjamin at sonnemann-it.de> wrote:
>
>> To me it looks like moc didnt run fine. Do a confclean in webkit and
>> nmake
>> again, perhaps it helps.
>>
>> 2009/6/28 RFOG <no at mail.com>
>>
>>> Nope. Still getting unreferenced symbols in Webkit.
>>>
>>>         link /LIBPATH:"c:\Qt\4.5.2-vc\qt\lib"
>>> /LIBPATH:"c:\Qt\4.5.2-vc\qt\lib" /
>>> NOLOGO /DEBUG /DLL /MANIFEST
>>> /MANIFESTFILE:"tmp\obj\debug_shared\QtWebKitd.inter
>>> mediate.manifest" /VERSION:4.52 /OUT:..\..\..\..\lib\QtWebKitd4.dll
>>> @C:\Users\RF
>>> OG\AppData\Local\Temp\nm90A3.tmp
>>>     Creating library ..\..\..\..\lib\QtWebKitd4.lib and object
>>> ..\..\..\..\lib\Qt
>>> WebKitd4.exp
>>> QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
>>> "public: virtual struct QMetaObject const * __thiscall
>>> WebCore::FormDataIODevice::metaObject(void)const "
>>> (?metaObject at FormDataIODevice@WebCore@@UBEPBUQMetaObject@@XZ)
>>>
>>> QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
>>> "public: virtual void * __thiscall
>>> WebCore::FormDataIODevice::qt_metacast(char const *)"
>>> (?qt_metacast at FormDataIODevice@WebCore@@UAEPAXPBD at 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 at FormDataIODevice@WebCore@@UAEHW4Call at QMetaObject
>>> @@HPAPAX at Z)
>>> QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
>>> "public: vi
>>> rtual struct QMetaObject const * __thiscall
>>> WebCore::QNetworkReplyHandler::metaO
>>> bject(void)const "
>>> (?metaObject at QNetworkReplyHandler@WebCore@@UBEPBUQMetaObject@
>>> @XZ)
>>> QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
>>> "public: vi
>>> rtual void * __thiscall WebCore::QNetworkReplyHandler::qt_metacast(char
>>> const *)
>>> " (?qt_metacast at QNetworkReplyHandler@WebCore@@UAEPAXPBD at Z)
>>> QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol
>>> "public: vi
>>> rtual int __thiscall WebCore::QNetworkReplyHandler::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::unsupportedContent(class QNetworkReply *)"
>>> (?unsupport
>>> edContent at 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 at FrameLoaderCli
>>> entQt at WebCore@@UAEXPAVResourceHandle at 2@ABUResourceRequest at 2
>>> @1ABVResourceResponse
>>> @2@@Z)
>>> FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol
>>> "protected:
>>> void __thiscall QWebPage::downloadRequested(class QNetworkRequest const
>>> &)" (?do
>>> wnloadRequested at QWebPage@@IAEXABVQNetworkRequest@@@Z) referenced in
>>> function "pu
>>> blic: virtual void __thiscall
>>> WebCore::FrameLoaderClientQt::startDownload(struct
>>>  WebCore::ResourceRequest const &)"
>>> (?startDownload at FrameLoaderClientQt@WebCore@
>>> @UAEXABUResourceRequest at 2@@Z)
>>> ..\..\..\..\lib\QtWebKitd4.dll : fatal error LNK1120: 8 unresolved
>>> externals
>>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
>>> Studio 9.0\
>>> VC\BIN\link.EXE"' : return code '0x460'
>>> Stop.
>>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
>>> Studio 9.0\
>>> VC\BIN\nmake.exe"' : return code '0x2'
>>> Stop.
>>> NMAKE : fatal error U1077: 'cd' : return code '0x2'
>>> Stop.
>>>
>>>
>>> On Sun, 28 Jun 2009 09:54:20 +0200, RFOG <no at mail.com> wrote:
>>>
>>> > Nope.
>>> >
>>> > I'm going to test this.
>>> >
>>> > On Sat, 27 Jun 2009 23:01:13 +0100, Tiago Correia <tiago at cnotinfor.pt>
>>> > wrote:
>>> >
>>> >> I'm using the SDK that comes with Visual Studio. But for compiling
>>> >> phonon
>>> >> plugin you need DirectX SDK. Do you have it installed?
>>> >>
>>> >> On Sat, Jun 27, 2009 at 10:53 AM, RFOG <no at mail.com> wrote:
>>> >>
>>> >>> I've reinstalled and now got other undefined symbols at link time.
>>> >>>
>>> >>> Are you using SDK 6.0A (That comes with Visual Studio) or the
>>> >>> definitive for Vista: 6.1?
>>> >>>
>>> >>> I'm using last one. 6.0A has some bugs that 6.1 not.
>>> >>>
>>> >>> On Fri, 26 Jun 2009 00:01:43 +0100, Tiago Correia
>>> <tiago at cnotinfor.pt>
>>> >>> wrote:
>>> >>>
>>> >>> >Hi,
>>> >>> >I've just downloaded from git server the master version of Qt
>>> 4.5.2,
>>> >>> and
>>> >>> >I've compiled Qt with out any problems. Same configuration Windows
>>> +
>>> >>> Visual
>>> >>> >Studio 2008 SP1.
>>> >>> >
>>> >>> >On Thu, Jun 25, 2009 at 9:43 PM, RFOG <no at mail.com> wrote:
>>> >>> >
>>> >>> >> Hello all.
>>> >>> >>
>>> >>> >> I'm trying to recompile QT 4.5.2 with Visual C++ 2008SP1 but I
>>> get
>>> >>> >> some unresolved symbols while linking WebKit.
>>> >>> >>
>>> >>> >> First error is:
>>> >>> >>
>>> >>> >> QNetworkReplyHandler.obj : error LNK2001: unresolved external
>>> symbol
>>> >>> >> "public: virtual struct QMetaObject const * __thiscall
>>> >>> >> WebCore::FormDataIODevice::metaObject(void)const "
>>> >>> >> (?metaObject at FormDataIODevice@WebCore@@UBEPBUQMetaObject@@XZ)
>>> >>> >>
>>> >>> >>
>>> >>> >> Full error message:
>>> >>> >>
>>> >>> >>        link /LIBPATH:"c:\Qt\4.5.2-vc\qt\lib"
>>> >>> >> /LIBPATH:"c:\Qt\4.5.2-vc\qt\lib" /
>>> >>> >> NOLOGO /DEBUG /DLL /MANIFEST
>>> >>> >> /MANIFESTFILE:"tmp\obj\debug_shared\QtWebKitd.inter
>>> >>> >> mediate.manifest" /VERSION:4.52
>>> /OUT:..\..\..\..\lib\QtWebKitd4.dll
>>> >>> >> @C:\Users\RF
>>> >>> >> OG\AppData\Local\Temp\nm5570.tmp
>>> >>> >>   Creating library ..\..\..\..\lib\QtWebKitd4.lib and object
>>> >>> >> ..\..\..\..\lib\Qt
>>> >>> >> WebKitd4.exp
>>> >>> >> QNetworkReplyHandler.obj : error LNK2001: unresolved external
>>> symbol
>>> >>> >> "public: vi
>>> >>> >> rtual struct QMetaObject const * __thiscall
>>> >>> >> WebCore::FormDataIODevice::metaObjec
>>> >>> >> t(void)const "
>>> >>> >> (?metaObject at FormDataIODevice@WebCore@@UBEPBUQMetaObject@@XZ)
>>> >>> >> QNetworkReplyHandler.obj : error LNK2001: unresolved external
>>> symbol
>>> >>> >> "public: vi
>>> >>> >> rtual void * __thiscall
>>> WebCore::FormDataIODevice::qt_metacast(char
>>> >>> >> const *)" (?
>>> >>> >> qt_metacast at FormDataIODevice@WebCore@@UAEPAXPBD at 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 at FormDataIODevice@WebCore@@UAEHW4Call at QMetaObject
>>> >>> >> @@HPAPAX at Z)
>>> >>> >> QNetworkReplyHandler.obj : error LNK2001: unresolved external
>>> symbol
>>> >>> >> "public: vi
>>> >>> >> rtual struct QMetaObject const * __thiscall
>>> >>> >> WebCore::QNetworkReplyHandler::metaO
>>> >>> >> bject(void)const "
>>> >>> >> (?metaObject at QNetworkReplyHandler@WebCore@@UBEPBUQMetaObject@
>>> >>> >> @XZ)
>>> >>> >> QNetworkReplyHandler.obj : error LNK2001: unresolved external
>>> symbol
>>> >>> >> "public: vi
>>> >>> >> rtual void * __thiscall
>>> >>> >> WebCore::QNetworkReplyHandler::qt_metacast(char const *)
>>> >>> >> " (?qt_metacast at QNetworkReplyHandler@WebCore@@UAEPAXPBD at Z)
>>> >>> >> QNetworkReplyHandler.obj : error LNK2001: unresolved external
>>> symbol
>>> >>> >> "public: vi
>>> >>> >> rtual int __thiscall
>>> WebCore::QNetworkReplyHandler::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::unsupportedContent(class QNetworkReply
>>> *)"
>>> >>> >> (?unsupport
>>> >>> >> edContent at 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 at FrameLoaderCli
>>> >>> >> entQt at WebCore@@UAEXPAVResourceHandle at 2@ABUResourceRequest at 2
>>> >>> >> @1ABVResourceResponse
>>> >>> >> @2@@Z)
>>> >>> >> FrameLoaderClientQt.obj : error LNK2019: unresolved external
>>> symbol
>>> >>> >> "protected:
>>> >>> >> void __thiscall QWebPage::downloadRequested(class QNetworkRequest
>>> >>> >> const &)" (?do
>>> >>> >> wnloadRequested at QWebPage@@IAEXABVQNetworkRequest@@@Z) referenced
>>> in
>>> >>> >> function "pu
>>> >>> >> blic: virtual void __thiscall
>>> >>> >> WebCore::FrameLoaderClientQt::startDownload(struct
>>> >>> >>  WebCore::ResourceRequest const &)"
>>> >>> >> (?startDownload at FrameLoaderClientQt@WebCore@
>>> >>> >> @UAEXABUResourceRequest at 2@@Z)
>>> >>> >> ..\..\..\..\lib\QtWebKitd4.dll : fatal error LNK1120: 8
>>> unresolved
>>> >>> >> externals
>>> >>> >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft
>>> Visual
>>> >>> >> Studio 9.0\
>>> >>> >> VC\BIN\link.EXE"' : return code '0x460'
>>> >>> >> Stop.
>>> >>> >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft
>>> Visual
>>> >>> >> Studio 9.0\
>>> >>> >> VC\BIN\nmake.exe"' : return code '0x2'
>>> >>> >> Stop.
>>> >>> >> NMAKE : fatal error U1077: 'cd' : return code '0x2'
>>> >>> >> Stop.
>>> >>> >> ÿþM
>>> >>> >> _______________________________________________
>>> >>> >> Qt-interest mailing list
>>> >>> >> Qt-interest at trolltech.com
>>> >>> >> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>> >>> >>
>>> >>> ÿþM
>>> >>> _______________________________________________
>>> >>> Qt-interest mailing list
>>> >>> Qt-interest at trolltech.com
>>> >>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>> >>>
>>> > ÿþM
>>>
>>>
>>>
>>> --
>>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>
>
>
> --
> Microsoft Visual C++ MVP => http://geeks.ms/blogs/rfog
> ========================================
> Vive tu memoria y asómbrate.
>                -- Jack Kerouac. (1922-1969) Novelista estadounidense.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list