ubuntu14.04编译qtopia-2.2.0遇到问题 求大神帮忙

开发基于GTK+或QT的应用程序
回复
lei1803330176
帖子: 1
注册时间: 2015-09-17 16:08
系统: win7
送出感谢: 0
接收感谢: 0

ubuntu14.04编译qtopia-2.2.0遇到问题 求大神帮忙

#1

帖子 lei1803330176 » 2015-09-17 16:45

在朋友找了一个mini2440 开发,根据它光盘 编译x86-qtopia-2.2.0,遇到下面错误不知道怎么解决,百度没有找到解决方法,求助呀

代码: 全选

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
make[1]:正在离开目录 `/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src'
头像
astolia
论坛版主
帖子: 3295
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 552 次

Re: ubuntu14.04编译qtopia-2.2.0遇到问题 求大神帮忙

#2

帖子 astolia » 2015-09-25 13:27

没有C++基础?把/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include/qvaluestack.h第52行的append改成this->append
回复

回到 “GTK+和QT”