QT文件系统

来源:互联网 发布:猪八戒威客网络兼职 编辑:程序博客网 时间:2024/05/28 16:08

    QT文件系统建立如下:

一般的启动文件系统就不提出建立方法了,网上很多,我这里也是用自己以前做好了的文件系统。只是在里面添加QT。

1、在文件系统的/bin目录下建立 qtopia 命令,内容如下:

#!/bin/sh

export set TSLIB_TSDEVICE=/dev/event0
export set TSLIB_CONFFILE=/etc/ts.conf
export set TSLIB_PLUGINDIR=/lib/ts
export set TSLIB_CALIBFILE=/etc/pointercal
export set HOME=/root
export set QTDIR=/opt/Qtopia
export set QPEDIR=/opt/Qtopia
export set KDEDIR=/opt/kde
export set QWS_KEYBOARD="USB:/dev/event1"
export set QWS_MOUSE_PROTO="TPanel:/dev/event0 USB:/dev/mouse0"
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/lib
if [ -f /etc/pointercal ] ; then
        $QPEDIR/bin/qpe > /dev/null 2>/dev/null
else
        ts_calibrate
        $QPEDIR/bin/qpe > /dev/null 2>/dev/null
fi


2、在/sbin目录下添加可执行文件 ts_calibrate 。

   使用ts_lib包自带的ts_calibrate校准触摸屏非常简单实用。

如果想看ts_calibrate相关知识,可以看搞人的博客:http://blog.chinaunix.net/u3/94694/showart_1915009.html

 

3、在/etc目录下添加 ts.conf 文件,内容如下:

# Uncomment if you wish to use the linux input layer event interface
module_raw input

# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
# module_raw collie

# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
# module_raw corgi

# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
# module_raw ucb1x00

# Uncomment if you're using an HP iPaq h3600 or similar
# module_raw h3600

# Uncomment if you're using a Hitachi Webpad
# module_raw mk712

# Uncomment if you're using an IBM Arctic II
# module_raw arctic2

module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear

 

4、添加必要的库文件ts_lib库:libts-0.0.so.0  libts-0.0.so.0.1.1  libts.la  libts.so  ts/

ts/目录下:dejitter.la  h3600.so  linear_h2200.la  linear.so  variance.la
dejitter.so  input.la  linear_h2200.so  pthres.la  variance.so
h3600.la     input.so  linear.la        pthres.so

 

5、添加QT的相应的应用程序到/opt/目录下。

 

完成后,重新制作文件系统,mkyaffsimage root_2.6.25.8qt/  root_2.6.25.8qt.bin

烧写到开发板,就可以启动QT了。

原创粉丝点击