天嵌 ARM开发社区

 找回密码
 注册
查看: 3068|回复: 12

QT编译出错

[复制链接]
陨落 发表于 2010-4-14 19:47:13 | 显示全部楼层 |阅读模式
编译QT/E的时候出现: X11/extensions/shape.h: No such file or directory  怎么解决啊,我已经apt-get install libx11-dev,可是还是缺少shape.h。这到底是怎么回事呢?哪位高手可以帮忙解决下呢,感激不尽!!
亚瑟王 发表于 2010-4-15 10:45:15 | 显示全部楼层
你编译的是qtopia-2.2.0还是qt4.5呢?
 楼主| 陨落 发表于 2010-4-15 20:23:30 | 显示全部楼层
qt4.5     还有就是在编译 arm版本的QT4时,在相应目录下执行“./arm_qt4.5_build”  编译到一半的时候提示:The tslib functionality test failed!    是不是没有添加“tslib”这个库呢 ,改怎么添加呢?这个没有解决的话QTCreator用不了啊 !很急哦。。谢谢了!
亚瑟王 发表于 2010-4-16 10:56:09 | 显示全部楼层
你用的编译器是什么版本的?是天嵌科技提供的编译器吗?
 楼主| 陨落 发表于 2010-4-16 16:25:39 | 显示全部楼层
是啊 所有资料都是天嵌科技提供的,我是在虚拟机下安装Ubuntu9.10的平台下开发的。目前还没编译qtopia-2.2.0,这会不会有影响呢?
亚瑟王 发表于 2010-4-16 19:18:38 | 显示全部楼层
编译qt4和编译qtopia-2.2.0是独立的两件事情。我问你的问题你还没有回答我。
 楼主| 陨落 发表于 2010-4-16 22:48:08 | 显示全部楼层
就是用你们提供的交叉编译器安装包EABI-4.3.3_Embedsky_20091210.tar.bz2
亚瑟王 发表于 2010-4-17 16:54:30 | 显示全部楼层
在编译x11的时候使用的是PC的Linux自带的编译器,你用的开发环境呢?
亚瑟王 发表于 2010-4-17 16:54:44 | 显示全部楼层
在编译x11的时候使用的是PC的Linux自带的编译器,你用的开发环境呢?
 楼主| 陨落 发表于 2010-4-20 16:22:12 | 显示全部楼层
QT4编译成功了 ,之前是由于没有用root身份编译才出错的。现在编译qtopia-2.2.0的时候出现了如下错误:
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/uic: error while loading shared libraries: libqt.so.2: cannot open shared object file: No such file or directory
make[5]: *** [../../../include/qtopia/private/passwordbase_p.h] Error 127
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[4]: *** [all] Error 2

……
……cp: cannot create regular file `qtopia/image/opt/Qtopia/lib/fonts/': No such file or directory
done !
the konqueror directory is already !
Build konqueror , please wait ...

.: 46: setQpeEnv: not found



还望指教,谢谢~~~
亚瑟王 发表于 2010-4-23 15:46:11 | 显示全部楼层
以上错误是你的PC的Linux环境缺少系统组件导致的,主要错误信息不在这里,在前面的编译信息中。你把那不行信息贴出来才知道因为缺少什么组件导致的。
 楼主| 陨落 发表于 2010-4-27 18:00:39 | 显示全部楼层
Symlinking header files to include directory
Creating qmake...No makedepend available
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/qmake'
.make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/qmake'

Creating pngscale...make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/util/pngscale'
...make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/util/pngscale'

Generating makefiles................................................................................................................
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'
make[2]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[3]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
cd qt && make -f Makefile
make[4]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[5]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[4]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
cd libraries/qtopia && make -f Makefile
make[4]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[5]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/uic passwordbase_p.ui -o ../../../include/qtopia/private/passwordbase_p.h
make[5]: /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/uic: Command not found
make[5]: *** [../../../include/qtopia/private/passwordbase_p.h] Error 127
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[3]: *** [sub-libraries-qtopia] Error 2
make[3]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'

***********************************************************************
*  
*                  ERROR: Building Qtopia has failed.



这样能知道原因吗?或者换一个qtopia 版本能避免这些问题吗?
亚瑟王 发表于 2010-5-8 19:19:29 | 显示全部楼层
make[5]: /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/uic: Command not found
这个uic编译的PC版本的,错误信息再向前找,找到编译uic时的信息。然后看提示什么。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-6-19 03:13 , Processed in 1.078125 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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