天嵌 ARM开发社区

 找回密码
 注册
查看: 15362|回复: 36

统计Qt编译错误情况(已经解决Qt(>=Qt 2.2.0)的错误)

[复制链接]
亚瑟王 发表于 2009-11-19 11:14:22 | 显示全部楼层 |阅读模式
统计一下,编译Qt出现这样错误的请回帖n+1,楼1的就是1,楼2的就是2;同时注明你的编译环境:PC的Linux版本和安装情况、交叉编译器的版本、qtopia的版本以及执行的脚本名称。
错误信息:configure:error : Qt(>=Qt 2.2.0)(library qte) not  found. Please check。。。

请不要发无关信息出来。
请给出真实的情况。
先计划统计50个帖子,然后我根据大家安装PC的Linux版本的情况修改Qt手册,把这个问题解决了。


Qt(>=Qt 2.2.0)的错误解决办法:出现这个错误一般是因为PC的Linux环境安装的是Fedora 9、10、11,这个错误是因为qtopia-2.2.0在编译qt2中的qvfbview.cpp和qpixmapcache.cpp文件中调用了<asm/page.h头文件,而在Fedora 9、10、11的头文件中并没有这个文件,就会导致qt2编译出错,也就是libqte.so文件编译不出来,然后到后面编译web浏览器时编译出现Qt(>=Qt 2.2.0)的错误了。在我们提供的交叉编译器中我们提供有这个头文件的,所以,编译arm平台时又不会出错。
pflysky 发表于 2009-12-7 18:26:28 | 显示全部楼层
12  redhat 9 完全安装。X86-setenv 在X86的虚拟机中编译qt 1.70 问题如下:
1:下你们src-for_qtopia-1.7.0现成的直接make 能通过。并能仿真
2:用你们现在的src-for_qtopia-1.7.0中的解压后的first.ui,然后生成的first.cpp文件正常,但是生成的Makefile有问题(要是用现在的Makefile就可以)-----其中有两个SRCMOC        =        moc_first.cpp \
                                                               moc_first.cpp
                                          OBJMOC        =        moc_first.o \
                                                               moc_first.o

并且后面也有问题  具体的见附件里的Makefile.rar
3.要是按手册上自己重新做个first.ui则生成的first.cpp也不正常最明显的是少了两个#include<>,换句话说就是少了正常first.cpp中的最后两个#include<....> ,具体的见附件中的first.rar  
4.另外我照手册上编译出的文件系统镜像也很大,有70多M,而我的板只有64M。在此请求帮助。多谢!!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
szlje88 发表于 2009-11-23 15:16:36 | 显示全部楼层
编译X86-qtopia-1.7.0 ,arm-qtopia-1.7.0都不出错,同样的编译环境编译X86-qtopia-2.2.0 ,arm-qtopia-2.2.0都出错,为什么?

/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/lib/gcc/arm-linux/3.4.5/../../../../arm-linux/bin/ld: cannot find -lqte
collect2: ld returned 1 exit status
make[5]: *** [../../../lib/libqpe.so.1.5.3] Error 1
szlje88 发表于 2009-11-23 16:55:14 | 显示全部楼层
内核linux-2.6.30.4和文件系统root_qtopia_2.2.0都是用的4.3.3的编译器,QT-2.2.0是用4.3.3的编译器还是用3.4.5的编译器? 我看src-for-qtopia-2.2.0中的应用程序中makefile文件中LIBS        =        $(SUBLIBS) -L$(QPEDIR)/lib -L$(QTDIR)/lib -L/opt/EmbedSky/crosstools_3.4.5_softfloat/gcc-3.4.5-glibc-2.3.6/arm-linux/ -lm -lqpe -lqtopia -lqte ,用的是否是3.4.5的编译器?
widon1104 发表于 2009-11-23 22:19:45 | 显示全部楼层
不能从‘QValueListIterator<QString>’转换到‘const char*’,为实参‘1’(属于‘int remove(const char*)’)
make: *** [xml/qxml.o] 错误 1
make:离开目录“/home/widon/Desktop/qt/opt/EmbedSky/Qte/qt-x11/src”
tar: qt.tar.bz2:无法 open: 没有该文件或目录
tar: 错误不可恢复:现在退出
tar: Child returned status 2
tar: 由于前面延迟的错误而退出
cp: 无法 stat “qt-x11/bin/?*”: 没有该文件或目录
./x86-build_qtopia: line 78: cd: qtopia/src: 没有该文件或目录
airzougang 发表于 2009-11-25 15:51:54 | 显示全部楼层
编译光盘的QTE2.2.0
cannot link application!
怎么办?
oywsunny 发表于 2009-11-27 09:47:56 | 显示全部楼层
我也是编译 hello实验时 最后make是出错了   cannot find lqte
oywsunny 发表于 2009-11-29 10:37:44 | 显示全部楼层
我的问题解决了
sio2long 发表于 2009-12-1 14:08:30 | 显示全部楼层
configure:error : Qt(>=Qt 2.2.0)(library qte) not  found. Please check。。。

之前我看到了这样一个错误提示
........................................
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
*
  
***********************************************************************

/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/scripts/buildQtopia -build qpe

install
Building Qtopia Tools.

尝试了N次,从红帽子9到fedora10,11 都有这个错误提示,之后就是configure:error : Qt(>=Qt 2.2.0)(library qte) not  found. Please check。。。
TQST-LJB 发表于 2009-12-4 23:03:25 | 显示全部楼层
9   我的也是这样。 以下是我安装编译时出现的:
[img][/img]
TQST-LJB 发表于 2009-12-4 23:18:08 | 显示全部楼层
checking for extra includes... no
checking for extra libs... no
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.
pflysky 发表于 2009-12-7 17:50:46 | 显示全部楼层
1# 亚瑟王
pflysky 发表于 2009-12-8 09:27:46 | 显示全部楼层
12 楼中的第三条我知道了
第2:用你们现在的src-for_qtopia-1.7.0中的解压后的first.ui,然后生成的first.cpp文件正常,但是生成的Makefile有问题(要是用现在的Makefile就可以)-----其中有两个SRCMOC        =     moc_first.cpp \
                                                                                                                        moc_first.cpp
                                                                           OBJMOC        =        moc_first.o \
                                                                                                           moc_first.o

并且后面也有问题  具体的见附件里的Makefile.rar-------我想一定是tmake 的原因了。但是我看下下tmake,很多,看上去有难度。另外12楼的第4条还没解决,可以给点减少文件系统镜像的方案吗?我看了下最大的还是文件系统里面的/opt 过大,也就是说还是QT太大了。用不用我发个贴方便别人看?请求帮助!先多谢
pflysky 发表于 2009-12-8 10:15:16 | 显示全部楼层
12楼中的第2条的解决方法下面这个链接可以用,也就是去掉重复部分。这点是肯定行的,不过我想还是tmake 出了问题,要不就不会生成重复的了。要是能从根源上解决就好了。。
http://bbs.embedsky.net/viewthre ... &extra=page%3D4
不过我想还是tmake 出了问题,要不就不会生成重复的了。要是能从根源上解决就好了。
liuhongwei1006 发表于 2009-12-8 18:39:38 | 显示全部楼层
我的也出现了问题,我把自己生成的makefile按照他所给的例子修改了,可还是不行,下边是出现的错误。请大家给看看是哪里出错了?
[root@EmbedSky test]# make
g++  -o /opt/EmbedSky/Qte/x86_qtopia/qtopia/bin/test test.o main.o test.o moc_te
st.o   -L/opt/EmbedSky/Qte/x86_qtopia/qtopia/lib -L/opt/EmbedSky/Qte/x86_qtopia/
qt/lib -lqpe -lqtopia -lqte
test.o(.text+0x0): In function `test::test[not-in-charge](QWidget*, char const*,
unsigned)':
: multiple definition of `test::test[not-in-charge](QWidget*, char const*, unsig
ned)'
test.o(.text+0x0): first defined here
test.o(.text+0x3b4): In function `test::test[in-charge](QWidget*, char const*, u
nsigned)':
: multiple definition of `test::test[in-charge](QWidget*, char const*, unsigned)
'
test.o(.text+0x3b4): first defined here
test.o(.text+0x768): In function `test::~test [not-in-charge]()':
: multiple definition of `test::~test [not-in-charge]()'
test.o(.text+0x768): first defined here
test.o(.text+0x78c): In function `test::~test [in-charge]()':
: multiple definition of `test::~test [in-charge]()'
test.o(.text+0x78c): first defined here
test.o(.text+0x7b0): In function `test::~test [in-charge deleting]()':
: multiple definition of `test::~test [in-charge deleting]()'
test.o(.text+0x7b0): first defined here
test.o(.text+0x7dc): In function `test::event(QEvent*)':
: multiple definition of `test::event(QEvent*)'
test.o(.text+0x7dc): first defined here
test.o(.text+0x8a8): In function `test::user_button()':
: multiple definition of `test::user_button()'
test.o(.text+0x8a8): first defined here
collect2: ld returned 1 exit status
make: *** [/opt/EmbedSky/Qte/x86_qtopia/qtopia/bin/test] Error 1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-4-27 09:06 , Processed in 1.062494 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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