• 6769阅读
  • 7回复

寻找高手!!!qte库编译问题 [复制链接]

上一主题 下一主题
离线violet520
 
只看楼主 倒序阅读 楼主  发表于: 2009-05-31
./configure -prefix /usr/local/Trolltech/QtEmbedded-4.5.0-arm-tslib -no-qt3support -xplatform qws/linux-arm-g++ -embedded arm  -depths 16 -qt-gfx-linuxfb -qt-mouse-tslib -nomake examples -nomake demos -nomake tools -I /usr/local/arm/tslib/tslib-1.4/build/include -L  /usr/local/arm/tslib/tslib-1.4/build/lib  


Building on:   qws/linux-x86-g++
Building for:  qws/linux-arm-g++
Architecture:  arm              
Host architecture: i386        

Build ............... libs docs translations
Configuration .......  cross_compile release shared dll embedded largefile stl exceptions_off  minimal-config small-config medium-config large-config full-config accessibility embedded ipv6 clock-gettime mremap getaddrinfo ipv6ifname getifaddrs png freetype zlib nis svg webkit scripttools release  
Debug ............... no                                                                                                                      
Qt 3 compatibility .. no                                                                                                                      
QtDBus module ....... no                                                                                                                      
QtScriptTools module  yes                                                                                                                      
QtXmlPatterns module  no                                                                                                                      
Phonon module ....... no                                                                                                                      
SVG module .......... yes                                                                                                                      
WebKit module ....... yes                                                                                                                      
STL support ......... yes                                                                                                                      
PCH support ......... no                                                                                                                      
MMX/3DNOW/SSE/SSE2..  no/no/no/no                                                                                                              
iWMMXt support ...... no                                                                                                                      
IPv6 support ........ yes                                                                                                                      
IPv6 ifname support . yes                                                                                                                      
getaddrinfo support . yes                                                                                                                      
getifaddrs support .. yes                                                                                                                      
Accessibility ....... yes                                                                                                                      
NIS support ......... yes                                                                                                                      
CUPS support ........ no                                                                                                                      
Iconv support ....... no                                                                                                                      
Glib support ........ no                                                                                                                      
GStreamer support ... no                                                                                                                      
Large File support .. yes                                                                                                                      
GIF support ......... plugin                                                                                                                  
TIFF support ........ plugin (qt)                                                                                                              
JPEG support ........ plugin (qt)                                                                                                              
PNG support ......... yes (qt)                                                                                                                
MNG support ......... plugin (qt)                                                                                                              
zlib support ........ yes                                                                                                                      
Session management .. no                                                                                                                      
Embedded support .... arm                                                                                                                      
Freetype2 support ... auto (yes)                                                                                                              
Graphics (qt) ....... linuxfb multiscreen linuxfb                                                                                              
Graphics (plugin) ...                                                                                                                          
Decorations (qt) .... styled windows default                                                                                                  
Decorations (plugin)                                                                                                                          
Keyboard driver (qt). tty                                                                                                                      
Keyboard driver (plugin)                                                                                                                      
Mouse driver (qt) ... pc linuxtp tslib                                                                                                        
Mouse driver (plugin)                                                                                                                          
OpenGL support ...... no                                                                                                                      
SQLite support ...... plugin (qt)                                                                                                              
OpenSSL support ..... no  


问题:qte的例子,widget底下例子在开发板上运行,有的正常,有的不正常。
      其中:codeeditor    movie    spinboxes    stylesheet   validadors 无法正常显示,只显示一个鼠标指针。
    
     而使用在qvfb中显示,所有的例子都正常。寻求高手帮助
QVFB中的编译选项如下:
Build type:    qws/linux-x86-g++
Architecture:  i386            
Host architecture: i386        

Build ............... libs tools examples demos docs translations
Configuration .......  release shared dll embedded largefile stl precompile_header separate_debug_info mmx 3dnow sse sse2 exceptions_off  minimal-config small-config medium-config large-config full-config qt3support accessibility embedded reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify system-jpeg system-mng system-png png system-tiff system-freetype system-zlib nis glib dbus openssl svg webkit scripttools release                                                                                                        
Debug ............... no                                                                                                                      
Qt 3 compatibility .. yes                                                                                                                      
QtDBus module ....... yes (run-time)                                                                                                          
QtScriptTools module  yes                                                                                                                      
QtXmlPatterns module  no                                                                                                                      
Phonon module ....... no                                                                                                                      
SVG module .......... yes                                                                                                                      
WebKit module ....... yes                                                                                                                      
STL support ......... yes                                                                                                                      
PCH support ......... yes                                                                                                                      
MMX/3DNOW/SSE/SSE2..  yes/yes/yes/yes                                                                                                          
IPv6 support ........ yes                                                                                                                      
IPv6 ifname support . yes                                                                                                                      
getaddrinfo support . yes                                                                                                                      
getifaddrs support .. yes                                                                                                                      
Accessibility ....... yes                                                                                                                      
NIS support ......... yes                                                                                                                      
CUPS support ........ no                                                                                                                      
Iconv support ....... no                                                                                                                      
Glib support ........ yes                                                                                                                      
GStreamer support ... no                                                                                                                      
Large File support .. yes                                                                                                                      
GIF support ......... plugin                                                                                                                  
TIFF support ........ plugin (system)                                                                                                          
JPEG support ........ plugin (system)                                                                                                          
PNG support ......... yes (system)                                                                                                            
MNG support ......... plugin (system)                                                                                                          
zlib support ........ system                                                                                                                  
Session management .. no                                                                                                                      
Embedded support .... x86                                                                                                                      
Freetype2 support ... auto (system)                                                                                                            
Graphics (qt) ....... linuxfb multiscreen                                                                                                      
Graphics (plugin) ...                                                                                                                          
Decorations (qt) .... styled windows default                                                                                                  
Decorations (plugin)                                                                                                                          
Keyboard driver (qt). tty                                                                                                                      
Keyboard driver (plugin)                                                                                                                      
Mouse driver (qt) ... pc linuxtp                                                                                                              
Mouse driver (plugin)                                                                                                                          
OpenGL support ...... no                                                                                                                      
SQLite support ...... plugin (qt)                                                                                                              
OpenSSL support ..... yes (run-time)  
离线jzj139
只看该作者 1楼 发表于: 2009-05-31
参考assitant里面的features  你会找到你想要的答案
qt
离线shiroki

只看该作者 2楼 发表于: 2009-05-31
这样的错误太难确定问题了, 有可能是compiler的bug造成的问题, 比如编译选项或优化选项造成的。 还有可能是浮点数相关的问题。
建议:
- 编译成debug版本试一下(有可能是优化选项的问题)
- 换toolchain试试
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线bhwbj
只看该作者 3楼 发表于: 2009-05-31
编译qt-embedded for arm  和qt-embedded for x86的选项尽可能一致(除了-embedded XXX)。我想可能是在for arm的版本里少编译了一些例子需要的库,而在for x86的编译的时候可能放宽了,多编全了些。个人猜想,仅供参考。
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
离线kjpioo

只看该作者 4楼 发表于: 2009-05-31
我楼上说的正是。
我遇到qt/e3的一个程序,用qlineedit类,在qvfb中都能正常运行,但是到了板子上,就是不行,症状就和楼主说的一样,绿色背景,一个鼠标。后来我把qlineedit换成qlabel就可以在板子上运行了。

所以我总结原因是,编译成的嵌入式库中,没有加入对qlineedit类的支持。

如果 有错,请指教。
linux qt
离线violet520
只看该作者 5楼 发表于: 2009-06-01
zlib  JPEG这些库还需要单独编译吗?
记得以前的版本是需要单独编译的。

而且,像tslib也需要单独编译的,而且编译QTE时,需要加入tslib的支持,同时还需要指定tslib的头文件和库的路径
离线bhwbj
只看该作者 6楼 发表于: 2009-06-01
用-qt-zlib  就可以用qt自带的zlib库,不用单独编译了;jpeg是qt默认编译的,编译后在安装好的目录/plugin/imageformats下会有libqjpeg.so*
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
离线violet520
只看该作者 7楼 发表于: 2009-06-01
问题已经解决,使用的工具UIC,MOC等有问题,应该使用QTE底下的工具。
但是spinbox,点击上下按钮依旧死机
快速回复
限100 字节
 
上一个 下一个