• 8464阅读
  • 12回复

关于qt-embedded-linux-opensource-4.5.1移植的问题 [复制链接]

上一主题 下一主题
离线arthur_liu
 
只看楼主 正序阅读 楼主  发表于: 2009-05-14
我移植qt-embedded-linux-opensource-4.5.1到ARM开发板上,运行程序的时候发现字体特别小,根本看不清楚,请问大侠如何解决这个问题,谢谢!
do right, be good!
离线arthur_liu
只看该作者 12楼 发表于: 2009-05-19
其实我移植以后,qfiledialog是可以用的,只是在dialog->show(),这一步的时候程序提示:QFileSystemWatcher: failed to add paths: /                  
还有就是我在程序中用到了spinbox,当我点击spinbox的增加或者减少按键的时候,程序就死掉了,
另外,键盘的TAB按键在 mainwindow 的menu之间是可以用的,但是一旦光标到了输入框以后,再点击TAB键,程序就死掉了,最近很是郁闷,希望大家能够指点小弟一下,谢谢!
do right, be good!
离线bhwbj
只看该作者 11楼 发表于: 2009-05-18
客气客气!!我也是在网上找的资料。。。我也很菜。。。。。。
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
离线gale717
只看该作者 10楼 发表于: 2009-05-18
bhwbj 讲解的很详细,谢谢了
希望大家能一起在摸索中进步~~Qt/Embedded 技术交QQ群86425137
离线arthur_liu
只看该作者 9楼 发表于: 2009-05-18
我知道了,qconfig-dist.h是它的默认文件,这个配置文件里面什么都没有,也就是说开启了所有的功能,但是我就是这样默认配置的,filedialog 和spinbox还是不可以用,挺奇怪的。
do right, be good!
离线bhwbj
只看该作者 8楼 发表于: 2009-05-18
./configure后边加参数啊,需要什么就加上什么,不需要什么就-no了它,例如:

./configure -embedded arm -qt-jpeg -qt-sql-sqlite -silent -no-openssl -no-opengl

要不你直接./configure >log.txt 2>&1
这样默认的编译选项都从屏幕重定向到log.txt里边了,你自己慢慢看,或者 ./configure -h >log.txt
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
离线arthur_liu
只看该作者 7楼 发表于: 2009-05-18
我如果不指定一个配置文件,然后进行修改,直接用默认的配置文件的话,我的程序里面的spinbox,filedialog都是不可以用的,所以我要指定配置文件然后进行一些简单的修改,但是我今天编译了两次了都没有编译通过,总是出错。修改配置文件的时候,要修改配置文件本身,还有qfeaxture.h文件,还要做些什么啊?
do right, be good!
离线bhwbj
只看该作者 6楼 发表于: 2009-05-18
configure文件里边有默认的配置,都初始化好了,就是说你./configure什么都不加,有些功能还是会编译的,我按照dist large, medium small 和 minimal都编译过,开启和关闭的功能都一样,没啥区别。举个例子:
dist 的:
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  phonon phonon-backend 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 cups glib gstreamer dbus openssl svg webkit scripttools release
Debug ............... no
Qt 3 compatibility .. no
QtDBus module ....... yes (run-time)
QtScriptTools module  yes
QtXmlPatterns module  no
Phonon module ....... yes
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 ........ yes
Iconv support ....... no
Glib support ........ yes
GStreamer support ... yes
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
MySQL support ....... plugin
SQLite support ...... plugin (qt)
OpenSSL support ..... yes (run-time)

minimal的:
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 phonon phonon-backend 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 cups glib gstreamer dbus openssl svg webkit scripttools release
Debug ............... no
Qt 3 compatibility .. no
QtDBus module ....... yes (run-time)
QtScriptTools module  yes
QtXmlPatterns module  no
Phonon module ....... yes
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 ........ yes
Iconv support ....... no
Glib support ........ yes
GStreamer support ... yes
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
MySQL support ....... plugin
SQLite support ...... plugin (qt)
OpenSSL support ..... yes (run-time)
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
离线arthur_liu
只看该作者 5楼 发表于: 2009-05-18
这下面只有qconfig-dist.h qconfig-large.h qconfig-medium.h qconfig-minimal.h qconfig-small.h ,我记得以前的版本还有一个qconfig-qpe.h的配置文件为默认的配置文件的,现在哪个文件是默认的配置文件啊?
do right, be good!
离线bhwbj
只看该作者 4楼 发表于: 2009-05-18
/tmp/qt-embedded-linux-opensource-src-4.5.1/src/corelib/global下边
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
离线arthur_liu
只看该作者 3楼 发表于: 2009-05-18
再请教一个问题,就是我选择配置文件的时候,有large,也有small等等,但是就是没有原来一直用的默认配置文件qconfig-qpe,请问一下,在4.5.1下面它的默认配置文件是哪个呢,怎么没有找到啊?
do right, be good!
离线arthur_liu
只看该作者 2楼 发表于: 2009-05-18
谢谢楼上,问题已经解决了。
do right, be good!
离线bhwbj
只看该作者 1楼 发表于: 2009-05-14
#设置字体大小
export QWS_DISPLAY="LinuxFb:mmWidth100:mmHeight130:0"

#设置framebuffer设备
export QWS_DISPLAY=LinuxFb:/dev/fb0


#设置屏幕大小
export QWS_SIZE=800x480
I'm Back!!
当加班已成为习惯
msn:bhwshx@hotmail.com

欢迎交流,人妖除外!!
快速回复
限100 字节
 
上一个 下一个