• 6260阅读
  • 1回复

交叉编译Qt4.7.1时,qurl.h出现错误?请大家看看是什么原因? [复制链接]

上一主题 下一主题
离线qkwqkw
 

只看楼主 倒序阅读 楼主  发表于: 2012-08-18
工具链是:arm-none-linux-gnueabi-4.5.1
ubuntu-10.10

make[1]: 正在进入目录 `/home/newdisk/qt-everywhere-opensource-src-4.7.1/qt-everywhere-opensource-src-4.7.1/src/opengl'
arm-linux-g++ -c -pipe -I/home/newdisk/dbus1.6.4-arm-gcc4.5.1/include/dbus-1.0 -I/home/newdisk/dbus1.6.4-arm-gcc4.5.1/lib/dbus-1.0/include -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/include/glib-2.0 -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/lib/glib-2.0/include -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/include/glib-2.0 -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/lib/glib-2.0/include -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/include/glib-2.0 -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/lib/glib-2.0/include -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/include/glib-2.0 -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/lib/glib-2.0/include -I/home/newdisk/gstreamer-0.10.36-arm-gcc4.5.1/include/gstreamer-0.10 -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/include/glib-2.0 -I/home/newdisk/glib2.31.22-arm-gcc4.5.1/lib/glib-2.0/include -I/home/newdisk/gstreamer-plugins-base0.10.36-arm-gcc4.5.1/include/gstreamer-0.10 -I/home/newdisk/gstreamer-0.10.36-arm-gcc4.5.1/include/gstreamer-0.10 -fno-exceptions -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_QWS_CLIENTBLIT -DQT_NO_QWS_CURSOR -DQT_BUILD_OPENGL_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_FREETYPE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include/QtCore -I../../include/QtGui -I../../include -I../../include/QtOpenGL -I.rcc/release-shared-emb-arm -I../3rdparty/harfbuzz/src -I.moc/release-shared-emb-arm -o .obj/release-shared-emb-arm/qgl.o qgl.cpp
In file included from ../../include/QtCore/qurl.h:1:0,
                 from ../../include/QtGui/private/../../../src/gui/text/qtextdocument_p.h:69,
                 from ../../include/QtGui/private/qtextdocument_p.h:1,
                 from ../../include/QtGui/private/../../../src/gui/text/qtextengine_p.h:70,
                 from ../../include/QtGui/private/qtextengine_p.h:1,
                 from ../../include/QtGui/private/../../../src/gui/text/qfontengine_p.h:60,
                 from ../../include/QtGui/private/qfontengine_p.h:1,
                 from gl2paintengineex/qpaintengineex_opengl2_p.h:63,
                 from qgl.cpp:71:
../../include/QtCore/../../src/corelib/io/qurl.h:70:9: error: expected identifier before numeric constant
../../include/QtCore/../../src/corelib/io/qurl.h:70:9: error: expected '}' before numeric constant
../../include/QtCore/../../src/corelib/io/qurl.h:70:9: error: expected unqualified-id before numeric constant
../../include/QtCore/../../src/corelib/io/qurl.h:83:5: error: 'FormattingOption' was not declared in this scope
../../include/QtCore/../../src/corelib/io/qurl.h:83:5: error: template argument 1 is invalid
../../include/QtCore/../../src/corelib/io/qurl.h:83:5: error: invalid type in declaration before ';' token
../../include/QtCore/../../src/corelib/io/qurl.h:85:10: error: expected unqualified-id before ')' token
../../include/QtCore/../../src/corelib/io/qurl.h:89:10: error: expected unqualified-id before 'const'
../../include/QtCore/../../src/corelib/io/qurl.h:89:10: error: expected ')' before 'const'
../../include/QtCore/../../src/corelib/io/qurl.h:90:10: error: expected unqualified-id before 'const'
../../include/QtCore/../../src/corelib/io/qurl.h:90:10: error: expected ')' before 'const'
../../include/QtCore/../../src/corelib/io/qurl.h:92:10: error: expected unqualified-id before 'const'
../../include/QtCore/../../src/corelib/io/qurl.h:92:10: error: expected ')' before 'const'
../../include/QtCore/../../src/corelib/io/qurl.h:93:38: error: 'QUrl& operator=(const QUrl&)' must be a nonstatic member function
../../include/QtCore/../../src/corelib/io/qurl.h:95:40: error: 'QUrl& operator=(const QString&)' must be a nonstatic member function
../../include/QtCore/../../src/corelib/io/qurl.h:97:12: error: expected constructor, destructor, or type conversion before ';' token
../../include/QtCore/../../src/corelib/io/qurl.h:100:37: error: 'ParsingMode' has not been declared
../../include/QtCore/../../src/corelib/io/qurl.h:103:47: error: 'ParsingMode' has not been declared
../../include/QtCore/../../src/corelib/io/qurl.h:106:20: error: non-member function 'bool isValid()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:108:20: error: non-member function 'bool isEmpty()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:113:22: error: non-member function 'QString scheme()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:116:25: error: non-member function 'QString authority()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:119:24: error: non-member function 'QString userInfo()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:122:24: error: non-member function 'QString userName()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:124:34: error: non-member function 'QByteArray encodedUserName()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:127:24: error: non-member function 'QString password()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:129:34: error: non-member function 'QByteArray encodedPassword()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:132:20: error: non-member function 'QString host()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:134:30: error: non-member function 'QByteArray encodedHost()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:137:16: error: non-member function 'int port()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:138:31: error: non-member function 'int port(int)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:142:20: error: non-member function 'QString path()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:144:30: error: non-member function 'QByteArray encodedPath()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:146:21: error: non-member function 'bool hasQuery()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:149:31: error: non-member function 'QByteArray encodedQuery()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:152:32: error: non-member function 'char queryValueDelimiter()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:153:31: error: non-member function 'char queryPairDelimiter()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:157:50: error: non-member function 'QList<QPair<QString, QString> > queryItems()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:158:43: error: non-member function 'bool hasQueryItem(const QString&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:159:48: error: non-member function 'QString queryItemValue(const QString&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:160:56: error: non-member function 'QStringList allQueryItemValues(const QString&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:166:63: error: non-member function 'QList<QPair<QByteArray, QByteArray> > encodedQueryItems()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:167:53: error: non-member function 'bool hasEncodedQueryItem(const QByteArray&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:168:61: error: non-member function 'QByteArray encodedQueryItemValue(const QByteArray&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:169:72: error: non-member function 'QList<QByteArray> allEncodedQueryItemValues(const QByteArray&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:174:24: error: non-member function 'QString fragment()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:176:34: error: non-member function 'QByteArray encodedFragment()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:177:24: error: non-member function 'bool hasFragment()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:179:41: error: non-member function 'QUrl resolved(const QUrl&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:181:23: error: non-member function 'bool isRelative()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:182:38: error: non-member function 'bool isParentOf(const QUrl&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:185:27: error: non-member function 'QString toLocalFile()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:187:56: error: non-member function 'QString toString(FormattingOptions)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:189:60: error: non-member function 'QByteArray toEncoded(FormattingOptions)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:191:52: error: 'ParsingMode' has not been declared
../../include/QtCore/../../src/corelib/io/qurl.h:197:23: error: non-member function 'bool isDetached()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:199:38: error: non-member function 'bool operator<(const QUrl&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:199:38: error: 'bool operator<(const QUrl&)' must take exactly two arguments
../../include/QtCore/../../src/corelib/io/qurl.h:200:39: error: non-member function 'bool operator==(const QUrl&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:200:39: error: 'bool operator==(const QUrl&)' must take exactly two arguments
../../include/QtCore/../../src/corelib/io/qurl.h:201:39: error: non-member function 'bool operator!=(const QUrl&)' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:201:39: error: 'bool operator!=(const QUrl&)' must take exactly two arguments
../../include/QtCore/../../src/corelib/io/qurl.h:215:43: error: non-member function 'QString protocol()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:218:39: error: non-member function 'QString user()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:219:39: error: non-member function 'bool hasUser()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:220:43: error: non-member function 'bool hasPassword()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:221:39: error: non-member function 'bool hasHost()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:222:39: error: non-member function 'bool hasPort()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:223:39: error: non-member function 'bool hasPath()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:228:40: error: non-member function 'QString query()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:232:38: error: non-member function 'QString ref()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:234:38: error: non-member function 'bool hasRef()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:237:36: error: non-member function 'QString fileName()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:238:35: error: non-member function 'QString dirPath()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h: In function 'void decode(QString&)':
../../include/QtCore/../../src/corelib/io/qurl.h:241:15: error: 'fromPercentEncoding' is not a member of 'QUrl'
../../include/QtCore/../../src/corelib/io/qurl.h: In function 'void encode(QString&)':
../../include/QtCore/../../src/corelib/io/qurl.h:245:35: error: 'toPercentEncoding' is not a member of 'QUrl'
../../include/QtCore/../../src/corelib/io/qurl.h: At global scope:
../../include/QtCore/../../src/corelib/io/qurl.h:247:43: error: non-member function 'operator QString()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:247:43: error: 'operator QString()' must be a nonstatic member function
../../include/QtCore/../../src/corelib/io/qurl.h: In function 'bool cdUp()':
../../include/QtCore/../../src/corelib/io/qurl.h:250:10: error: invalid use of 'this' in non-member function
../../include/QtCore/../../src/corelib/io/qurl.h:250:50: error: no matching function for call to 'QUrl::QUrl(QLatin1String)'
../../include/QtCore/../../src/corelib/io/qurl.h:61:1: note: candidates are: QUrl::QUrl()
../../include/QtCore/../../src/corelib/io/qurl.h:61:1: note:                 QUrl::QUrl(const QUrl&)
../../include/QtCore/../../src/corelib/io/qurl.h: In function 'bool isRelativeUrl(const QString&)':
../../include/QtCore/../../src/corelib/io/qurl.h:255:24: error: no matching function for call to 'QUrl::QUrl(const QString&)'
../../include/QtCore/../../src/corelib/io/qurl.h:61:1: note: candidates are: QUrl::QUrl()
../../include/QtCore/../../src/corelib/io/qurl.h:61:1: note:                 QUrl::QUrl(const QUrl&)
../../include/QtCore/../../src/corelib/io/qurl.h: At global scope:
../../include/QtCore/../../src/corelib/io/qurl.h:259:27: error: non-member function 'QString errorString()' cannot have cv-qualifier
../../include/QtCore/../../src/corelib/io/qurl.h:261:1: error: expected unqualified-id before 'protected'
../../include/QtCore/../../src/corelib/io/qurl.h:266:1: error: expected unqualified-id before 'private'
../../include/QtCore/../../src/corelib/io/qurl.h:268:1: error: expected unqualified-id before 'public'
../../include/QtCore/../../src/corelib/io/qurl.h:270:12: error: 'DataPtr' does not name a type
../../include/QtCore/../../src/corelib/io/qurl.h:271:1: error: expected declaration before '}' token
../../include/QtCore/../../src/corelib/io/qurl.h:184:17: warning: 'QUrl fromLocalFile(const QString&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:190:17: warning: 'QUrl fromEncoded(const QByteArray&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:191:17: warning: 'QUrl fromEncoded(const QByteArray&, int)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:194:17: warning: 'QUrl fromUserInput(const QString&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:203:20: warning: 'QString fromPercentEncoding(const QByteArray&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:204:23: warning: 'QByteArray toPercentEncoding(const QString&, const QByteArray&, const QByteArray&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:207:20: warning: 'QString fromPunycode(const QByteArray&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:208:23: warning: 'QByteArray toPunycode(const QString&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:209:20: warning: 'QString fromAce(const QByteArray&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:210:23: warning: 'QByteArray toAce(const QString&)' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:211:24: warning: 'QStringList idnWhitelist()' declared 'static' but never defined
../../include/QtCore/../../src/corelib/io/qurl.h:212:17: warning: 'void setIdnWhitelist(const QStringList&)' declared 'static' but never defined
make[1]: *** [.obj/release-shared-emb-arm/qgl.o] 错误 1
make[1]:正在离开目录 `/home/newdisk/qt-everywhere-opensource-src-4.7.1/qt-everywhere-opensource-src-4.7.1/src/opengl'
make: *** [sub-opengl-make_default-ordered] 错误 2
root@qkwqkw-virtual-machine:/home/newdisk/qt-everywhere-opensource-src-4.7.1/qt-eve
离线qkwqkw

只看该作者 1楼 发表于: 2012-08-18
新手,不好意思,发错地方了!
快速回复
限100 字节
 
上一个 下一个