天嵌 ARM开发社区

 找回密码
 注册
查看: 4520|回复: 4

编译qtopia-2.2.0时的错误 麻烦解决一下

[复制链接]
victor.jiang 发表于 2014-1-9 13:07:13 | 显示全部楼层 |阅读模式
错误 1:

release-shared-linux-32-g++/widgets/qtextbrowser.o widgets/qtextbrowser.cpp
In file included from widgets/qtextbrowser.cpp:53:0:
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qimage.h: In member function ‘int QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/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/EmbedSky/Qte/x86-qtopia-2.2.0/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/EmbedSky/Qte/x86-qtopia-2.2.0/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/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qvaluestack.h:52:40: note: declarations in dependent base ‘QValueList<QString>’ are not found by unqualified lookup
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qvaluestack.h:52:40: note: use ‘this->append’ instead
make[1]: *** [tmp/release-shared-linux-32-g++/widgets/qtextbrowser.o] 错误 1
make[1]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/src'
* ---------------------------------------------------------------------------
*
*               ERROR: Building Qtopia Tools has failed.
*
* Please investigate the problem by looking at the error messages in the
* make output.
* The Qtopia tools can be build using the separate buildQtopiaTools script
* which can be found in the qtopia/scripts directory of the package. The
* script is also invoked with the command 'make tools' from the package root
* directory.
*
* On most machines the default configuration options in the script works fine.
* In case this doesn't work the configure parameters in the buildQtopiaTools
* script need to be tweaked to fit the environment/compiler used on the machine
* and then run manually from the cmd line.
*
* Please make sure that the following binaries exist before trying to build
* Qtopia:
*   /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/moc
*   /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/uic
*   /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/qvfb
*   /opt/EmbedSky/Qte/x86-qtopia-2.2.0/dqt/bin/lrelease
*   /opt/EmbedSky/Qte/x86-qtopia-2.2.0/dqt/bin/lupdate
*
* As a rule, these tools need to be built only once.
*

错误 2:

In file included from widgets/qtextbrowser.cpp:46:0:
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/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/EmbedSky/Qte/x86-qtopia-2.2.0/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/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qvaluestack.h:52:40: note: declarations in dependent base ‘QValueList<QString>’ are not found by unqualified lookup
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qvaluestack.h:52:40: note: use ‘this->append’ instead
make[1]: *** [tmp/release-shared-linux-generic32-g++-no-keypad/widgets/qtextbrowser.o] 错误 1
make[1]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/src'

***********************************************************************
*  
*                  ERROR: Building Qtopia has failed.
*  
* Please search the make output for any error messages.
*  
* Hint: If the configuration has changed since the last successfull
* build consider using make clean to ensure that all binaries
* are rebuilt using the new configuration.
*  
* For more information about the build process please use a browser
* and go to the getting started section in:
*     /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/doc/html/index.html
*  
***********************************************************************

错误 3:

There is an installation error in jpeg support. You seem to have only one
of either the headers _or_ the libraries installed. You may need to either
provide correct --with-extra-... options, or the development package of
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
Disabling JPEG support.

checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
TQ-ZQL 发表于 2014-1-9 13:40:34 | 显示全部楼层
Qtopia 2.2用的已经很少了,建议改用qt4.5  
回复

使用道具 举报

TQ-lkp 发表于 2014-1-9 13:42:06 | 显示全部楼层
建议使用qt4.5,qtopia太古老了
回复

使用道具 举报

 楼主| victor.jiang 发表于 2014-1-9 13:54:00 | 显示全部楼层
TQ-ZQL 发表于 2014-1-9 13:40
Qtopia 2.2用的已经很少了,建议改用qt4.5

我也安装了4.5的 但是执行时出现报错

./qtcreator.bin: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
回复

使用道具 举报

天嵌_support1 发表于 2014-1-10 16:07:13 | 显示全部楼层
先用软件中心搜索libgthread,安装下libgthread-2.0.so.0先。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-17 23:28 , Processed in 2.033400 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表