用VS 2010静态编译Qt 4.8.0,带
webkit和openssl,
编译选项为:
configure -platform win32-msvc2010 -debug-and-release -opensource -static -fast -no-qt3support -qt-style-windowsxp -qt-style-windowsvista -webkit -openssl -I D:\Qt\openssl-1.0.1\include -L D:\Qt\openssl-1.0.1\lib -nomake examples -nomake docs -nomake demos
中间编译
出错,手动修改过两次地方,最终出现6个link错误,不知道咋解:
webcore.lib(XMLDocumentParserQt.obj) : error LNK2019: 无法解析的外部符号 "__decl
spec(dllimport) public: class QXmlStreamAttribute const & __thiscall QVector<cla
ss QXmlStreamAttribute>::operator[](int)const " (
__imp_??A?$QVector@VQXmlStreamAttribute@@@@QBEABVQXmlStreamAttribute@@H@Z),该符号在函数 "void __cdecl WebCore:
:handleElementAttributes(class WebCore::Element *,class QXmlStreamAttributes con
st &,int &,enum WebCore::FragmentScriptingPermission)" (?handleElementAttributes
@WebCore@@YAXPAVElement@1@ABVQXmlStreamAttributes@@AAHW4FragmentScriptingPermiss
ion@1@@Z) 中被引用
webcore.lib(ImageBufferQt.obj) : error LNK2019: 无法解析的外部符号 "__declspec(d
llimport) public: class QPixmap __thiscall QPixmap::scaled(int,int,enum Qt::Aspe
ctRatioMode,enum Qt::TransformationMode)const " (
__imp_?scaled@QPixmap@@QBE?AV1@
HHW4AspectRatioMode@Qt@@W4TransformationMode@3@@Z),该符号在函数 "private: void
__thiscall WebCore::ImageBuffer::clip(class WebCore::GraphicsContext *,class Web
Core::FloatRect const &)const " (
?clip@ImageBuffer@WebCore@@ABEXPAVGraphicsContext@2@ABVFloatRect@2@@Z) 中被引用
webcore.lib(DragImageQt.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dll
import) public: class QPixmap __thiscall QPixmap::scaled(int,int,enum Qt::Aspect
RatioMode,enum Qt::TransformationMode)const " (
__imp_?scaled@QPixmap@@QBE?AV1@HHW4AspectRatioMode@Qt@@W4TransformationMode@3@@Z)
webcore.lib(ContextShadowQt.obj) : error LNK2019: 无法解析的外部符号 "__declspec
(dllimport) public: void __thiscall
QPainter::drawImage(class QPointF const &,cl
ass QImage const &,class QRectF const &,class QFlags<enum Qt::ImageConversionFla
g>)" (
__imp_?drawImage@QPainter@@QAEXABVQPointF@@ABVQImage@@ABVQRectF@@V?$QFlags@W4ImageConversionFlag@Qt@@@@@Z),该符号在函数 "public: void __thiscall WebCore:
:ContextShadow::endShadowLayer(class WebCore::GraphicsContext *)" (?endShadowLay
er@ContextShadow@WebCore@@QAEXPAVGraphicsContext@2@@Z) 中被引用
webcore.lib(UUID.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
public: class
QString __thiscall QUuid::toString(void)const " (__imp_?toString@
QUuid@@QBE?AVQString@@XZ),该符号在函数 "class WTF::String __cdecl WebCore::crea
teCanonicalUUIDString(void)" (
?createCanonicalUUIDString@WebCore@@YA?AVString@WTF@@XZ) 中被引用
webcore.lib(UUID.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
public: static struct QUuid __cdecl QUuid::createUuid(void)" (__imp_?createUuid
@QUuid@@SA?AU1@XZ),该符号在函数 "class WTF::String __cdecl WebCore::createCanon
icalUUIDString(void)" (
?createCanonicalUUIDString@WebCore@@YA?AVString@WTF@@XZ)
中被引用
webcore.lib(PlatformScreenQt.obj) : error LNK2019: 无法解析的外部符号 "__declspe
c(dllimport) public: int __thiscall QPaintDevice::colorCount(void)const " (__imp
_?colorCount@QPaintDevice@@QBEHXZ),该符号在函数 "bool __cdecl WebCore::screenIs
Monochrome(class WebCore::Widget *)" (
?screenIsMonochrome@WebCore@@YA_NPAVWidget@1@@Z) 中被引用
release\tst_qwebframe.exe : fatal error LNK1120: 6 个无法解析的外部命令
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 10.
0\VC\BIN\link.EXE"”: 返回代码“0x460”