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)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 #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 #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 #
- Problem Compiling 4.5.2 in Visual Studio 2008
- Compiling Lua with Visual Studio 2010
- Compiling a MEX file with Visual Studio
- ActiveX in Visual studio 2008
- C++--How to configure Visual Studio for compiling drivers
- Compiling the OpenSSL under Windows 32 + Visual Studio 2010
- Compiling Cuda-convnet based CUDA5 on Visual Studio 2010/2012
- Silverlight in Visual Studio 2008 安装
- WPF in Action with Visual Studio 2008
- NodeJS in Visual Studio
- Cygwin in Visual Studio
- Linux kernel compiling problem!
- problem compiling libjingle
- Debugging JavaScript in Visual Studio
- WPF in Visual Studio 2010
- Qt -visual studio add-in
- Advanced Debugging in Visual Studio
- Advanced Debugging in Visual Studio
- 常用DOS命令
- MATLAB 画球面
- FOJ--1573--大学自习室--解题报告
- 本人BLOG地址
- 网站如何快速实现繁体和简体间的切换
- Problem Compiling 4.5.2 in Visual Studio 2008
- 安装两个光驱--安装打印机
- 论程序员的时间分配问题
- asp.net to excel
- 五大必读赚钱经验博客
- Integracja Qt z MS Visual Studio 2008
- 取TreeView節點
- 常用DOS网络命令
- 程序员办网站创业,几个问题你想好了吗?