天嵌 ARM开发社区

 找回密码
 注册
查看: 3819|回复: 6

編譯QT時錯誤

[复制链接]
ansspend 发表于 2009-7-31 10:35:00 | 显示全部楼层 |阅读模式
我按照光碟裡面的講義編譯QT ./build 完出現以下錯誤,請問要如何解決

make[2]: *** [/opt/EmbedSky/Qte/x86-qtopia/qt-x11/bin/uic] Error 1
make[2]: Leaving directory `/opt/EmbedSky/Qte/x86

-qtopia/qt-x11/tools/designer/uic'
make[1]: *** [uic] Error 2
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-

qtopia/qt-x11/tools/designer'
make: *** [all] Error 2
make: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia/qt-

x11/tools/designer'
make: Entering directory `/opt/EmbedSky/Qte/x86-qtopia/qt-x11/tools/qvfb'
/opt/EmbedSky/Qte/x86-

qtopia/qt-x11/bin/uic config.ui -o ./config.h
make: /opt/EmbedSky/Qte/x86-qtopia/qt-x11/bin/uic: Command not found
make: *** [config.h] Error 127
make: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia/qt-x11/tools/qvfb'
cp: 無法 stat

『tools/qvfb/qvfb』: 沒有此一檔案或目錄
cp: 無法 stat 『tools/qembed/qembed』: 沒有此一檔案或目錄
strip: 'bin/uic':

No such file
strip: 'bin/designer': No such file
strip: 'bin/qvfb': No such file
strip: 'bin/qembed': No such file
rm

.buildopts
rm: 無法移除 『.buildopts』: 沒有此一檔案或目錄
make: [clean] Error 1 (ignored)
cd src/moc; make clean
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia/qt/src/moc'
make[1]: *** No rule to make target `clean'.  

Stop.
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia/qt/src/moc'
make: *** [clean] Error 2




make:

Entering directory `/opt/EmbedSky/Qte/x86-qtopia/qt/src'
echo '#include "kernel/qt.h"' >allmoc.cpp
g++  -E -

DQT_MOC_CPP -I/opt/EmbedSky/Qte/x86-qtopia/qt/include  -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG

-fPIC -DQT_NO_IMAGEIO_MNG -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MACH64 -DQT_NO_QWS_MATROX -DQT_NO_QWS_VNC -

DQT_NO_QWS_VGA_16 -DQT_NO_QWS_DEPTH_4 -DQT_NO_QWS_DEPTH_8 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_IMAGEIO_MNG -

DQT_NO_SM_SUPPORT  -I/usr/X11R6/include -I3rdparty/kernel -I3rdparty/tools >allmoc.h allmoc.cpp
/opt/EmbedSky/Qte/x86-qtopia/qt/bin/moc -o allmoc.cpp allmoc.h
perl -pi -e 's{"allmoc.h"}{"kernel/qt.h"}' allmoc.cpp
rm allmoc.h
g++  -c -I/opt/EmbedSky/Qte/x86-qtopia/qt/include  -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -

DNO_DEBUG -fPIC -DQT_NO_IMAGEIO_MNG -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MACH64 -DQT_NO_QWS_MATROX -DQT_NO_QWS_VNC -

DQT_NO_QWS_VGA_16 -DQT_NO_QWS_DEPTH_4 -DQT_NO_QWS_DEPTH_8 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_IMAGEIO_MNG -

DQT_NO_SM_SUPPORT  -I/usr/X11R6/include -I3rdparty/kernel -I3rdparty/tools -o allmoc.o allmoc.cpp
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qdatetime.h:51: 警告:「class QDate」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qjpunicode.h:91: 警告:「class QJpUnicodeConv」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qsortedlist.h: In destructor 「QSortedList<type>::~QSortedList()」:
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qsortedlist.h:51: 錯誤:「clear」 的引數不依賴範本參數,所以 「clear」 的宣告

必須可用
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qsortedlist.h:51: 錯誤:(如果您使用 「-fpermissive」,G++ 會接受您的

程式碼,但是允許使用未定義的名稱是過時的風格)
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qasyncimageio.h: At global

scope:
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qasyncimageio.h:48: 警告:「class QImageConsumer」 有虛函式卻沒有虛解

構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qpolygonscanner.h:48: 警告:「class QPolygonScanner」 有虛函式卻沒有虛

解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qrangecontrol.h:52: 警告:「class QRangeControl」 有虛函式卻沒有虛解

構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qtooltip.h:87: 警告:「class QToolTip」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qxml.h:214: 警告:「class QXmlReader」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qxml.h:402: 警告:「class QXmlContentHandler」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qxml.h:419: 警告:「class QXmlErrorHandler」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qxml.h:428: 警告:「class QXmlDTDHandler」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qxml.h:436: 警告:「class QXmlEntityResolver」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qxml.h:443: 警告:「class QXmlLexicalHandler」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qxml.h:456: 警告:「class QXmlDeclHandler」 有虛函式卻沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qwindowsystem_qws.h:220: 警告:「class QWSServer::KeyboardFilter」 有虛函式卻

沒有虛解構函式
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qwindowsystem_qws.h:229: 錯誤:「QWSInputMethod」 未宣告
make:

*** [allmoc.o] Error 1
make: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia/qt/src'
Makefiles will be regenerated.


checking for extra includes... no
checking for extra libs... added
checking for libz... -lz
checking for libpng...

-lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (library qte) not found. Please check your installation!
For more details about this problem, look at the

end of config.log.
make: *** No targets specified and no makefile found.  Stop.
fanciedboy 发表于 2009-7-31 11:19:10 | 显示全部楼层
本帖最后由 fanciedboy 于 2009-7-31 11:20 编辑

:sleepy:楼主,你的资料版本好象比较老,按天嵌出的那个QT手册上下载1.7的源码,rathat要完全安装.
在/opt/EmbedSky/目录下解qtopia-1.7.0-20090525.tar.bz2(下载的是rar,要rename)
解压后进入/opt/EmbedSky/Qte/
分别解压后缀是.bz2 的文件(我是这样做的)
然后按手册上修改/etc/ld.so.conf
接着运行./x86-build_qtopia进行编译,我的正常通过
完成后要执行ldconfig

我是这样做的,要用点心;P注意编译器是3.4.5的61版
回复

使用道具 举报

 楼主| ansspend 发表于 2009-7-31 15:25:41 | 显示全部楼层
@@
我是用fedora8,而編譯器也是他們光碟裡面的,3.4.1的編譯器
如果用fedora8可以編譯成功嗎?
回复

使用道具 举报

fanciedboy 发表于 2009-7-31 22:20:34 | 显示全部楼层
3# ansspend


手册上明确说明用rathat9哦,FC8内核是2.6的
回复

使用道具 举报

亚瑟王 发表于 2009-8-4 01:12:40 | 显示全部楼层
FC8也可以,不过需要保证里面提供的系统库是完整的。
回复

使用道具 举报

 楼主| ansspend 发表于 2009-8-6 12:39:08 | 显示全部楼层
請問你所謂的系統庫是必需要安裝什麼東西
回复

使用道具 举报

亚瑟王 发表于 2009-8-8 19:38:47 | 显示全部楼层
比如uuid库,比如ligpng库,libz库等等,
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2025-6-18 11:24 , Processed in 2.037029 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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