按照你的方法编译5.5,部分模块编译成功,一部分出错(qttools 出错,其他依赖它的模块也编译不过去),错误如下,有谁知道什么原因?查了很久没查到什么原因导致的。
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xutility(263) : error C2678: 二进制“<”: 没有找到接受“const QString”类型的左操作数的运算符(或没有可接受的转换)
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qchar.h(533): 可能是“bool operator <(QChar,QChar)”[通过使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qbytearray.h(599): 或 “bool operator <(const QByteArray &,const QByteArray &)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qbytearray.h(601): 或 “bool operator <(const QByteArray &,const char *)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qbytearray.h(603): 或 “bool operator <(const char *,const QByteArray &)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(625): 或 “bool operator <(const QString &,const QString &)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(694): 或 “bool operator <(const char *,const QString &)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(701): 或 “bool operator <(const char *,const QStringRef &)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(1121): 或 “bool operator <(QLatin1String,QLatin1String)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(1178): 或 “bool operator <(const char *,QLatin1String)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(1504): 或 “bool operator <(const QStringRef &,const QStringRef &)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qcollator.h(72): 或 “bool operator <(const QCollatorSortKey &,const QCollatorSortKey &)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qelapsedtimer.h(80): 或 “bool operator <(const QElapsedTimer &,const QElapsedTimer &) throw()”[使用参数相关的查找找到]
.\qhelpsearchindexwriter_clucene.cpp(329): 或 “bool fulltextsearch::clucene::operator <(const fulltextsearch::clucene::QTextHtmlEntity &,const QString &)”[使用参数相关的查找找到]
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(632): 或 “bool QString::operator <(QLatin1String) const”
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(680): 或 “bool QString::operator <(const char *) const”
f:\qt\qt5\qtbase\include\qtcore\../../src/corelib/tools/qstring.h(687): 或 “bool QString::operator <(const QByteArray &) const”