标题:VS2012静态编译qt5,报错,求解答
作者:渡世白玉
日期:2013-01-22 00:32
内容:
下面是命令窗口报错的信息,高手分析下、、好像在qtwebkit这个模块下、、
我用的配置:configure -prefix F:\Qt\SDK\X64-Static-VS2012 -opensource -confirm-license-fast -static -platform win32-msvc2012-debug-and-release -c++11 -icu -opengl desktop -openssl -qt-zlib -qt-libpng -qt-libjpeg -qt-sql-sqlite -plugin-sql-sqlite -nomake tests -nomake examples -mp
我是在64位命令下编译的,欲静态编译64位版的、、、开始在opengl那块有问题在论坛里找到方法了,在这的问题没找到解决方案、、、
perl,pyhon都配置X64的,rupy好像是32的、、icu和openssl都是在vs2012下自己编译的,64和32的都编译了,连接的是64位的、、、
icu是4c-50_1__2最新的,OpenSSL是1.01,pyhon是33,perl是ActiveState Per最新的,ruby是rubyinstaller-1.9.3-p374
求高手指点、、
cd Source\WebCore\ && ( if not exist Makefile.WebCore f:\Qt\src\qtbase\b
in\qmake F:\Qt\src\qtwebkit\Source\WebCore\WebCore.pro -o Makefile.WebCore ) &&
"C:\Program Files (x86)\Microsoft Visual Studio\VC\BIN\amd64\nmake.exe" -f Makef
ile.WebCore
Microsoft (R) 程序维护实用工具 11.00.50727.1 版
版权所有 (C) Microsoft Corporation。保留所有权利。
( if not exist Makefile.WebCore.DerivedSources f:\Qt\src\qtbase\bin\qmak
e F:\Qt\src\qtwebkit\Source\WebCore\DerivedSources.pri -o Makefile.WebCore.Deriv
edSources ) && "C:\Program Files (x86)\Microsoft Visual Studio\VC\BIN\amd64\nmak
e.exe" -f Makefile.WebCore.DerivedSources
Microsoft (R) 程序维护实用工具 11.00.50727.1 版
版权所有 (C) Microsoft Corporation。保留所有权利。
python F:/Qt/src/qtwebkit/Source/WebCore/inspector/generate-inspector-pr
otocol-version -o generated\InspectorProtocolVersion.h inspector\Inspector.json
Self-test failedNMA ..
#1 [渡世白玉 01-22 09:44]
无奈啊、、、又试了了几次,上面那个问题没了。有报错了新的问题、、、
错误信息:
xt@QWebFrameAdapter@@QEBA?AVQString@@XZ (public: class QString __cdecl QWebFrame
Adapter::toPlainText(void)const ) 在函数 "public: class QString __cdecl QWebFram
e::toPlainText(void)const " (?toPlainText@QWebFrame@@QEBA?AVQString@@XZ) 中导入
Qt5WebKitWidgets.lib(qwebframe.obj) : warning LNK4217: 本地定义的符号 ?setConten
t@QWebFrameAdapter@@QEAAXAEBVQByteArray@@AEBVQString@@AEBVQUrl@@@Z (public: void
__cdecl QWebFrameAdapter::setContent(class QByteArray const &,class QString con
st &,class QUrl const &)) 在函数 "public: void __cdecl QWebFrame::setContent(cla
ss QByteArray const &,class QString const &,class QUrl const &)" (?setContent@QW
ebFrame@@QEAAXAEBVQByteArray@@AEBVQString@@AEBVQUrl@@@Z) 中导入
Qt5WebKitWidgets.lib(qwebframe.obj) : warning LNK4217: 本地定义的符号 ?setHtml@Q
WebFrameAdapter@@QEAAXAEBVQString@@AEBVQUrl@@@Z (public: void __cdecl QWebFrameA
dapter::setHtml(class QString const &,class QUrl const &)) 在函数 "public: void
__cdecl QWebFrame::setHtml(class QString const &,class QUrl const &)" (?setHtml@
QWebFrame@@QEAAXAEBVQString@@AEBVQUrl@@@Z) 中导入
Qt5WebKitWidgets.lib(qwebframe.obj) : warning LNK4217: 本地定义的符号 ?metaData@
QWebFrameAdapter@@QEBA?AV?$QMultiMap@VQString@@V1@@@XZ (public: class QMultiMap<
class QString,class QString> __cdecl QWebFrameAdapter::metaData(void)const ) 在
函数 "public: class QMultiMap __cdecl QWebFrame::me
taData(void)const " (?metaData@QWebFrame@@QEBA?AV?$QMultiMap@VQString@@V1@@@XZ)
中导入
Qt5WebKitWidgets.lib(qwebframe.obj) : warning LNK4217: 本地定义的符号 ?hitTestCo
ntent@QWebFrameAdapter@@QEBAPEAVQWebHitTestResultPrivate@@AEBVQPoint@@@Z (public
: class QWebHitTestResultPrivate * __cdecl QWebFrameAdapter::hitTestContent(clas
s QPoint const &)const ) 在函数 "public: class QWebHitTestResu ..
#2 [呆呆很呆 01-22 17:38]
一楼的问题 安装python
二楼的问题 搜索并删除qwebframe.obj
#3 [渡世白玉 01-22 18:32]
不行啊、、二楼的、、一楼的我重新设置下环境变量行了、、
二楼的删除后编译还会出现的、、、还是错误、、
#4 回 3楼(渡世白玉) 的帖子 [呆呆很呆 01-22 19:07]
一楼的道理一样 安装了python不设置环境变量 和不安装一样 (除非用完整路径)
二楼错误信息变了吗?
#5 回 3楼(渡世白玉) 的帖子 [呆呆很呆 01-22 19:08]
PluginViewWin.obj文件也要删除