主题 : ubuntu 编译X86-qtopia 错误 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 75900
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2012-08-15
最后登录: 2016-09-20
楼主  发表于: 2015-09-14 12:58

 ubuntu 编译X86-qtopia 错误

ubuntu 14.4 下编译的  错误 怎么解决

make[1]: 正在进入目录 `/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src'
g++  -c -I/usr/X11R6/include -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include -I/usr/X11R6/include -pipe -O2 -Wall -W -DNO_DEBUG -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT -DQT_NO_XKB  -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/3rdparty/zlib -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/3rdparty/libpng  -I3rdparty/kernel -I3rdparty/tools -o tmp/release-shared-linux-g++/widgets/qtextbrowser.o widgets/qtextbrowser.cpp
In file included from widgets/qtextbrowser.cpp:53:0:
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include/qimage.h: In member function ‘int QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include/qimage.h:58:45: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  { return key < other.key || key==other.key && lang < other.lang; }
                                             ^
In file included from widgets/qtextbrowser.cpp:46:0:
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include/qvaluestack.h: In instantiation of ‘void QValueStack<T>::push(const T&) [with T = QString]’:
widgets/qtextbrowser.cpp:238:21:   required from here
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include/qvaluestack.h:52:40: error: ‘append’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
     void  push( const T& d ) { append(d); }
                                        ^
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include/qvaluestack.h:52:40: note: declarations in dependent base ‘QValueList<QString>’ are not found by unqualified lookup
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include/qvaluestack.h:52:40: note: use ‘this->append’ instead
make[1]: *** [tmp/release-shared-linux-g++/widgets/qtextbrowser.o] 错误 1