• 4525阅读
  • 0回复

[提问]编译qt/e4.8.1时qurl.h出现错误?? [复制链接]

上一主题 下一主题
离线wangmingxiao
 

只看楼主 倒序阅读 楼主  发表于: 2015-12-01
    如题,编译qt/e时老是出错,换了电脑也一样。配置命令./configure -prefix /opt/qt-embedded -embedded x86 -qvfb -opengl    
    提示的问题如下:自己电脑上问题一直拷不下来,使用下网上拷贝下来的,问题是一样的。。。

./../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()'
。。。。。。。。。。。。。。。。。。。。
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








网上说宏定义出错了??不知道怎么修改??或者是gcc编译器版本不对?还望大神指点下。。。。
    
能不能简单点
快速回复
限100 字节
 
上一个 下一个