天嵌 ARM开发社区

 找回密码
 注册
查看: 3002|回复: 3

工程师进:在安装qt的时候是不是用3.3.2版本的交叉编译器?

[复制链接]
xgbchdk 发表于 2009-9-19 14:20:24 | 显示全部楼层 |阅读模式
本帖最后由 xgbchdk 于 2009-9-19 14:22 编辑

额,累死我了
把命令搜索路径改为3.3.2后在编译安装qt,运行build的文件的时候出现编译错误
到网上查啊查,都没解决
然后我按照build脚本的命令一步一步执行,到make -C src/moc这一步还能编译出来,到下一步的make就出现错误了,然后我又重新一步一步来,又是到这个点,我执行make clean 然后再执行的下一步,妈的,还是错误,我真的无语了
我自问我的操作步骤都没问题,学Linux有一段时间了
-----------------
我用的是红旗Linux7。0版,之前安装的,因为怕麻烦,所以没安装RedHat9
------------
问题:在装qt的时候不需要原来系统中的qt动态链接库吧?
--------------------
有没有可能是光盘里的安装文件出问题了?
-------------------
跟Linux版本没大问题吧?虽然版本之间有一些小区别,但是不会很大吧,像那些配置文件什么的都差不多,而且红旗Linux也是用rpm 包系统管理的
----------------------
天嵌工程师,装qt需要一些什么依赖,能跟我说说么?谢谢啦
 楼主| xgbchdk 发表于 2009-9-20 15:27:31 | 显示全部楼层
额,还是自己不够用心啊
qtx11的是用系统上的编译器
另外两个看平台了
这些新版的手册上都有,刚下下来看

看来应该是系统上的一些软件包没安装吧
正在安装中

路漫漫其修远兮,吾将上下而求索
感觉自己很幼稚 啊
回复

使用道具 举报

亚瑟王 发表于 2009-9-22 11:39:41 | 显示全部楼层
你检查一下libuuid等库是否缺少。一般说来是缺少libuuid库。
回复

使用道具 举报

 楼主| xgbchdk 发表于 2009-9-26 15:11:14 | 显示全部楼层
放弃。
在xp下安装了redhat9,编译通过了
红旗下的libuuid原本就有了,应该不是这个问题吧
--------------------------------------
/opt/EmbedSky/Qte/x86-qtopia/qt-x11/include/qvaluestack.h:57: 错误:不能将‘int remove(const char*)’的实参‘1’从‘QValueListIterator<QMap<QString, QString> >’转换到‘const char*’  
make: *** [xml/qxml.o] 错误 1                                                               
make: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia/qt-x11/src'         
make: Entering directory `/opt/EmbedSky/Qte/x86-qtopia/qt-x11/tools/qembed'                  
g++  -o qembed qembed.o   -L/opt/EmbedSky/Qte/x86-qtopia/qt-x11/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm                                                                                
/usr/bin/ld: cannot find -lqt                                                               
collect2: ld 返回 1                                                                          
make: *** [qembed] 错误 1   
-------------------------
/usr/bin/ld: cannot find -lqt                                                               
collect2: ld 返回 1                                                                          
make[2]: *** [/opt/EmbedSky/Qte/x86-qtopia/qt-x11/bin/uic] 错误 1                           
make[2]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia/qt-x11/tools/designer/uic'         
make[1]: *** [uic] 错误 2                                                                    
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia/qt-x11/tools/designer'              
make: *** [all] 错误 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:命令未找到                                
make: *** [config.h] 错误 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                                                                                
cd src/moc; make clean                                                                       
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia/qt/src/moc'
-------------------------------------
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qsortedlist.h:51: 错误:‘clear’的实参不依赖模板参数,所以‘clear’的声明必须可用                                                                    
/opt/EmbedSky/Qte/x86-qtopia/qt/include/qsortedlist.h:51: 错误:(如果您使用‘-fpermissive’,G++ 会接受您的代码,但是允许使用未定义的名称是不建议使用的风格)                                
In file included from kernel/qt.h:303,                                                      
                 from allmoc.cpp:16:                        
-------------------------------------------------
make -C libraries/qtopia
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia/qtopia/src/libraries/qtopia'
/opt/EmbedSky/Qte/x86-qtopia/qt/bin/uic passwordbase_p.ui -o ./passwordbase_p.h      
make[1]: /opt/EmbedSky/Qte/x86-qtopia/qt/bin/uic:命令未找到                          
make[1]: *** [passwordbase_p.h] 错误 127                                             
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia/qtopia/src/libraries/qtopia'
make: *** [libraries/qtopia] 错误 2   
---------------------------
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: *** 没有指明目标并且找不到 makefile。 停止。
----------------------------
自己能力若此,实在是没办法了,在虚拟机下玩玩redhat9吧
以后若有能力了,再来解决
心情跌入低谷,555
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2025-8-21 10:37 , Processed in 2.037443 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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