在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
芯片精品文章合集(500篇!) 创芯人才网--重磅上线啦!
楼主: liusong106

广州友善之臂2410资料

[复制链接]
发表于 2009-3-25 13:53:32 | 显示全部楼层
东西虽好,也需要介绍
发表于 2009-3-26 20:14:25 | 显示全部楼层
谢谢,正需要这东西。
发表于 2009-3-29 22:10:02 | 显示全部楼层
为什么我没钱
发表于 2009-3-30 01:52:38 | 显示全部楼层
ding.......
发表于 2009-4-11 23:36:11 | 显示全部楼层

Qtopia安装简要入门


注:20060602日,因为Qtopia PDA GPL的最新版本为2.2.0Qtopia Phone的最新版本为4.1.2,所以本文内容已经比较陈旧了,希望大家参考以下文档,谢谢。
最近开始学习Qtopia了,发现这个东西的安装还是比较麻烦的,装了很多遍,就想写点东西,也许对大家有些用处。
Qtopia分为PDA版和Phone版,其中PDA版大家可以拿到自由版,Phone版只有付费的用户才可以拿到。但安装过程大致相同,我这里就挑选PDA自由版的1.7.02.1.1Phone版的2.1.0 Eval2.1.2作为介绍对象。
(备注:因为各个Linux发行版的不同,所以在build的过程中,会有一些包的依赖关系的问题。我这里使用的是SUSE 9.3,系统已经有了Qt X11 Free 3.3.4,在/usr/lib/qt3,大家如果使用其它Linux发行版,请大家注意修改有关这个的设置。一般默认安装情况下,我们还需要e2fsprogs-devellibjpeg-devel两个包,请大家自己安装好。我们需要前一个包里面的uuid和后一个包里面的jpeg的头文件。)
(注:20051031日加入Qtopia Phone 2.1.0 Eval安装。)
参考
下载
Qtopia的自由版可以到Trolltech的官方网站下载:
QtopiaPhone Eval版需要下面这些包:
qtopia-phone-source-eval-2.1.0.tar.gz
qt-embedded-2.3.9-eval.tar.gz
qt-x11-2.3.2-eval.tar.gz
qt-x11-eval-3.3.0.tar.gz
QtopiaPhone版需要下面这些包:
qtopia-phone-source-2.1.2.tar.gz
qt-embedded-2.3.11-commercial.tar.gz
qt-x11-2.3.2-commercial.tar.gz
qt-x11-commercial-3.3.4.tar.gz
假设你已经把上面的各个包下载到$HOME/Trolltech下了。
cd $HOME/Trolltech
tar zxvf tmake-1.13.tar.gz
tar zxvf qtopia-free-1.7.0.tar.gz
mv qtopia-free-1.7.0 qtopia-free-1.7.0-debug
tar zxvf qt-embedded-2.3.7.tar.gz
mv qt-2.3.7 qt-embedded-free-2.3.7-debug
tar zxvf qtopia-free-source-2.1.1.tar.gz
mv qtopia-free-2.1.1 qtopia-free-2.1.1-debug
tar zxvf qt-embedded-2.3.10-free.tar.gz
mv qt-2.3.10 qt-embedded-free-2.3.10-debug
tar zxvf qt-x11-2.3.2.tar.gz
mv qt-2.3.2 qt-x11-free-2.3.2-debug
tar zxvf qtopia-phone-source-eval-2.1.0.tar.gz
mv qtopia-eval-2.1.0 qtopia-phone-eval-2.1.0-debug
tar zxvf qt-embedded-2.3.9-eval.tar.gz
mv qt-2.3.9 qt-embedded-eval-2.3.9-debug
tar zxvf qt-x11-2.3.2-eval.tar.gz
mv qt-2.3.2 qt-x11-eval-2.3.2-debug
tar zxvf qt-x11-eval-3.3.0.tar.gz
mv qt-3.3.0 qt-x11-eval-3.3.0-debug
tar zxvf qtopia-phone-source-2.1.2.tar.gz
mv qtopia-phone-2.1.2 qtopia-phone-2.1.2-debug
tar zxvf qt-embedded-2.3.11-commercial.tar.gz
mv qt-2.3.11 qt-embedded-commercial-2.3.11-debug
tar zxvf qt-x11-2.3.2-commercial.tar.gz
mv qt-2.3.2 qt-x11-commercial-2.3.2-debug
tar zxvf qt-x11-commercial-3.3.4.tar.gz
mv qt-3.3.4 qt-x11-commercial-3.3.4-debug
安装
安装的过程是参考$HOME/Trolltech/qtopia-free-2.1.1-debug/scripts/build_qtopia这个脚本文件进行的。启动脚本是参考$HOME/Trolltech/qtopia-phone-2.1.2-debug/bin/startphonedemo改写的。
Qtopia 1.7.0自由版安装
第一步,我们先准备一个shell文件,我这里以bash为例:
vi $HOME/shell/qtopia-free-1.7.0.sh
下面是shell文件的具体内容:
TROLLTECHDIR=$HOME/Trolltech
TMAKEDIR=$TROLLTECHDIR/tmake-1.13
QT2DIR=$TROLLTECHDIR/qt-x11-free-2.3.2-debug
QTEDIR=$TROLLTECHDIR/qt-embedded-free-2.3.7-debug
QPEDIR=$TROLLTECHDIR/qtopia-free-1.7.0-debug
QT3DIR=/usr/lib/qt3
QTDIR=$QTEDIR
DQTDIR=$QT3DIR
TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++
QMAKESPEC=linux-g++
PATH=$QT2DIR/binQTEDIR/binQPEDIR/binDQTDIR/bin:$QT3DIR/bin:$QTDIR/bin:$TMAKEDIR/bin:$PATH
LD_LIBRARY_PATH=$QT2DIR/lib:$QTEDIR/lib:$QPEDIR/lib:$DQTDIR/lib:$QT3DIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
export TROLLTECHDIR TMAKEDIE QT2DIR QTEDIR QPEDIR QT3DIR QTDIR DQTDIR TMAKEPATH QMAKESPEC PATH LD_LIBRARY_PATH
然后就是让这个shell文件生效了。
source $HOME/shell/qtopia-free-1.7.0.sh
自由版中,因为Qtopia Desktop不能进行编译,所以编译过程中不需要编译Qt X11 3.x版本。我们这就开始编译了:
cd $QTEDIR
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools -f
./configure -debug -qconfig qpe -qvfb -depths 4,8,16,32 -keypad-mode -system-jpeg -gif
make sub-src
cd $QT2DIR
export QTDIR=$QT2DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -no-opengl -no-xft
make sub-src
cd tools/designer/util
make
cd ../uic
make
cp $QTDIR/bin/uic $QTEDIR/bin
cd $QTEDIR/tools/qvfb
tmake qvfb.pro > Makefile
make
cp qvfb $QTEDIR/bin
cd $QPEDIR
export QTDIR=$QTEDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cd src
./configure -debug
make
cd ..
mkdir demohome
编译已经完成了,Qtopia 1.7.0自由版中没有提供启动脚本,我们来写一个:
vi $HOME/shell/startpdademo-1.7.0.sh
下面是脚本内容:
#!/bin/sh
source $HOME/shell/qtopia-free-1.7.0.sh
export QTDIR=$HOME/Trolltech/qt-embedded-free-2.3.7-debug
export QPEDIR=$HOME/Trolltech/qtopia-free-1.7.0-debug
export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBRARY_PATH
export PATH=$QPEDIR/bin:$PATH
findproc() {

/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'
}
killproc() {

pid=`findproc $1`

[ "$pid" != "" ] && kill $pid
}
killall quicklauncher
killall qpe
killall qvfb
[ -x /sbin/fuser ] && ( /sbin/fuser -kn tcp 4242 || /sbin/fuser -kn tcp 4243 )
[ -x /bin/fuser ] && ( /bin/fuser -kn tcp 4242 || /bin/fuser -kn tcp 4243 )
echo "Stopping common sound deamons..."
artsd_pid=`findproc artsd`
[ "$artsd_pid" != "" ] && kill $artsd_pid
esd_pid=`findproc esd`
[ "$esd_pid" != "" ] && kill $esd_pid
echo "Starting qvfb..."
qvfb -width 240 -height 320 &
sleep 5s
echo "Starting Qtopia PDA 1.7.0..."
HOME=$HOME/Trolltech/qtopia-free-1.7.0-debug/demohome qpe
echo "Restarting killed sound deamons..."
[ "$artsd_pid" != "" ] && artsd &
[ "$esd_pid" != "" ] && esd &
执行这个脚本就可以启动了,看看结果吧。
Qtopia 2.1.1自由版安装
第一步,我们先准备一个shell文件,我这里以bash为例:
vi $HOME/shell/qtopia-free-2.1.1.sh
下面是shell文件的具体内容:
TROLLTECHDIR=$HOME/Trolltech
TMAKEDIR=$TROLLTECHDIR/tmake-1.13
QT2DIR=$TROLLTECHDIR/qt-x11-free-2.3.2-debug
QTEDIR=$TROLLTECHDIR/qt-embedded-free-2.3.10-debug
QPEDIR=$TROLLTECHDIR/qtopia-phone-2.1.1-debug
QT3DIR=/usr/lib/qt3
QTDIR=$QTEDIR
DQTDIR=$QT3DIR
TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++
QMAKESPEC=linux-g++
PATH=$QT2DIR/bin:$QTEDIR/bin:$QPEDIR/bin:$DQTDIR/bin:$QT3DIR/bin:$QTDIR/bin:$TMAKEDIR/bin:$PATH
LD_LIBRARY_PATH=$QT2DIR/lib:$QTEDIR/lib:$QPEDIR/lib:$DQTDIR/lib:$QT3DIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
export TROLLTECHDIR TMAKEDIE QT2DIR QTEDIR QPEDIR QT3DIR QTDIR DQTDIR TMAKEPATH QMAKESPEC PATH LD_LIBRARY_PATH
然后就是让这个shell文件生效了。
source $HOME/shell/qtopia-free-2.1.1.sh
自由版中,因为Qtopia Desktop不能进行编译,所以编译过程中不需要编译Qt X11 3.x版本。我们这就开始编译了:
cd $QTEDIR
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools -f
./configure -debug -qconfig qpe -qvfb -depths 4,8,16,32 -keypad-mode -system-jpeg -gif
make sub-src
cd $QT2DIR
export QTDIR=$QT2DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -no-opengl -no-xft
make sub-src
cd tools/designer/util
make
cd ../uic
make
cp $QTDIR/bin/uic $QTEDIR/bin
cd $QTEDIR/tools/qvfb
tmake qvfb.pro > Makefile
make
cp qvfb $QTEDIR/bin
cd $QPEDIR
export QTDIR=$QTEDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -edition pda -no-qtopiadesktop -displaysize 240x320
make
make install
cd image/opt/Qtopia
mkdir demohome
编译已经完成了,Qtopia 2.1.1自由版中没有提供启动脚本,我们来写一个:
vi $HOME/shell/startpdademo-2.1.1.sh
下面是脚本内容:
#!/bin/sh
source $HOME/shell/qtopia-free-2.1.1.sh
export QTDIR=$HOME/Trolltech/qtopia-free-2.1.1-debug/image/opt/Qtopia
export QPEDIR=$HOME/Trolltech/qtopia-free-2.1.1-debug/image/opt/Qtopia
export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBRARY_PATH
export PATH=$QPEDIR/bin:$PATH
findproc() {

/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'
}
killproc() {

pid=`findproc $1`

[ "$pid" != "" ] && kill $pid
}
killall quicklauncher
killall qpe
killall qvfb
[ -x /sbin/fuser ] && ( /sbin/fuser -kn tcp 4242 || /sbin/fuser -kn tcp 4243 )
[ -x /bin/fuser ] && ( /bin/fuser -kn tcp 4242 || /bin/fuser -kn tcp 4243 )
echo "Stopping common sound deamons..."
artsd_pid=`findproc artsd`
[ "$artsd_pid" != "" ] && kill $artsd_pid
esd_pid=`findproc esd`
[ "$esd_pid" != "" ] && kill $esd_pid
echo "Starting qvfb..."
qvfb -width 240 -height 320 &
sleep 5s
echo "Starting Qtopia 2.1.1..."
HOME=$HOME/Trolltech/qtopia-free-2.1.1-debug/image/opt/Qtopia/demohome qpe
echo "Restarting killed sound deamons..."
[ "$artsd_pid" != "" ] && artsd &
[ "$esd_pid" != "" ] && esd &
执行这个脚本就可以启动了,看看结果吧。
Qtopia Phone 2.1.0 Eval安装
第一步,我们先准备一个shell文件,我这里以bash为例:
vi $HOME/shell/qtopia-phone-eval-2.1.0.sh
下面是shell文件的具体内容:
TROLLTECHDIR=$HOME/Trolltech
TMAKEDIR=$TROLLTECHDIR/tmake-1.13
QT2DIR=$TROLLTECHDIR/qt-x11-eval-2.3.2-debug
QTEDIR=$TROLLTECHDIR/qt-embedded-eval-2.3.91-debug
QPEDIR=$TROLLTECHDIR/qtopia-phone-eval-2.1.0-debug
QT3DIR=$TROLLTECHDIR/qt-x11-eval-3.3.0-debug
QTDIR=$QTEDIR
DQTDIR=$QT3DIR
TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++
QMAKESPEC=linux-g++
PATH=$QT2DIR/bin:$QTEDIR/bin:$QPEDIR/bin:$DQTDIR/bin:$QT3DIR/bin:$QTDIR/bin:$TMAKEDIR/bin:$PATH
LD_LIBRARY_PATH=$QT2DIR/lib:$QTEDIR/lib:$QPEDIR/lib:$DQTDIR/lib:$QT3DIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
export TROLLTECHDIR TMAKEDIE QT2DIR QTEDIR QPEDIR QT3DIR QTDIR DQTDIR TMAKEPATH QMAKESPEC PATH LD_LIBRARY_PATH
然后就是让这个shell文件生效了。
source $HOME/shell/qtopia-phone-eval-2.1.0.sh
因为需要编译Qtopia Desktop,所以需要编译Qt X11 3.x版本。我们这就开始编译了:
cd $QTEDIR
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools -f
./configure -debug -qconfig qpe -qvfb -depths 4,8,16,32 -keypad-mode -system-jpeg -gif
make sub-src
cd $QT2DIR
export QTDIR=$QT2DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -no-opengl -no-xft
make sub-src
cd tools/designer/util
make
cd ../uic
make
cp $QTDIR/bin/uic $QTEDIR/bin
cd $QTEDIR/tools/qvfb
tmake qvfb.pro > Makefile
make
cp qvfb $QTEDIR/bin
cd $QT3DIR
export QTDIR=$QT3DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -fast -thread
make sub-src
cd tools/linguist/lrelease
make
cd ../lupdate
make
cd ../../designer/uilib
make
cd ../uic
make
cd $QPEDIR
export QTDIR=$QTEDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -edition phone -qtopiadesktop -displaysize 176x208
make
make install
cd src/tools/phonesim
make
cp *.xml $QPEDIR/image/opt/Qtopia/etc
cd ../../..
cd image/opt/Qtopia
mkdir demohome
cp $QTEDIR/bin/qvfb $QPEDIR/image/opt/Qtopia/bin
cp $QTEDIR/tools/qvfb/*.skin $QPEDIR/image/opt/Qtopia/bin -rf
编译已经完成了,Qtopia Phone 2.1.0 Eval中提供了一个启动脚本,但是我们还是重写一个:
vi $HOME/shell/startphonedemo-eval-2.1.0.sh
下面是脚本内容:
#!/bin/sh
source $HOME/shell/qtopia-phone-eval-2.1.0.sh
export QTDIR=$HOME/Trolltech/qtopia-phone-eval-2.1.0-debug/image/opt/Qtopia
export QPEDIR=$HOME/Trolltech/qtopia-phone-eval-2.1.0-debug/image/opt/Qtopia
export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBRARY_PATH
export PATH=$QPEDIR/bin:$PATH
if [ -z "$QTOPIA_PHONE_DEVICE" ]; then

export QTOPIA_PHONE_DEVICE=sim:localhost
fi
echo "lease select a phone demo mode:"
echo
echo "
1. Touchscreen Phone"
echo "
2. Keypad Phone"
echo
echo "Your choice (default 1): "
read PHONEMODE
if [ -z "$PHONEMODE" ]
then
PHONEMODE=1
fi
if [ "$PHONEMODE" = 2 ]
then
PHONESKIN=$QPEDIR/bin/SmartPhone.skin
else
PHONESKIN=$QPEDIR/bin/TouchscreenPhone.skin
fi
findproc() {

/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'
}
killproc() {

pid=`findproc $1`

[ "$pid" != "" ] && kill $pid
}
killall quicklauncher
killall qpe
killall qvfb
[ -x /sbin/fuser ] && ( /sbin/fuser -kn tcp 4242 || /sbin/fuser -kn tcp 4243 )
[ -x /bin/fuser ] && ( /bin/fuser -kn tcp 4242 || /bin/fuser -kn tcp 4243 )
echo "Stopping common sound deamons..."
artsd_pid=`findproc artsd`
[ "$artsd_pid" != "" ] && kill $artsd_pid
esd_pid=`findproc esd`
[ "$esd_pid" != "" ] && kill $esd_pid
echo "Stopping phone simulator..."
killproc phonesim
echo "Starting qvfb..."
qvfb -skin $PHONESKIN &
if [ $QTOPIA_PHONE_DEVICE = "sim:localhost" ]; then

echo "Starting phone simulator..."

phonesim -gui $QPEDIR/etc/troll.xml &
fi
sleep 5s
echo "Starting Qtopia Phone 2.1.0 Eval..."
HOME=$HOME/Trolltech/qtopia-phone-eval-2.1.0-debug/image/opt/Qtopia/demohome qpe
if [ $QTOPIA_PHONE_DEVICE = "sim:localhost" ]; then

echo "Stopping phone simulator..."

killproc phonesim
fi
echo "Restarting killed sound deamons..."
[ "$artsd_pid" != "" ] && artsd &
[ "$esd_pid" != "" ] && esd &
执行这个脚本就可以启动了,看看结果吧。
Qtopia Phone 2.1.2安装
第一步,我们先准备一个shell文件,我这里以bash为例:
vi $HOME/shell/qtopia-phone-2.1.2.sh
下面是shell文件的具体内容:
TROLLTECHDIR=$HOME/Trolltech
TMAKEDIR=$TROLLTECHDIR/tmake-1.13
QT2DIR=$TROLLTECHDIR/qt-x11-commercial-2.3.2-debug
QTEDIR=$TROLLTECHDIR/qt-embedded-commercial-2.3.11-debug
QPEDIR=$TROLLTECHDIR/qtopia-phone-2.1.2-debug
QT3DIR=$TROLLTECHDIR/qt-x11-commercial-3.3.4-debug
QTDIR=$QTEDIR
DQTDIR=$QT3DIR
TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++
QMAKESPEC=linux-g++
PATH=$QT2DIR/bin:$QTEDIR/bin:$QPEDIR/bin:$DQTDIR/bin:$QT3DIR/bin:$QTDIR/bin:$TMAKEDIR/bin:$PATH
LD_LIBRARY_PATH=$QT2DIR/lib:$QTEDIR/lib:$QPEDIR/lib:$DQTDIR/lib:$QT3DIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
export TROLLTECHDIR TMAKEDIE QT2DIR QTEDIR QPEDIR QT3DIR QTDIR DQTDIR TMAKEPATH QMAKESPEC PATH LD_LIBRARY_PATH
然后就是让这个shell文件生效了。
source $HOME/shell/qtopia-phone-2.1.2.sh
因为需要编译Qtopia Desktop,所以需要编译Qt X11 3.x版本。我们这就开始编译了:
cd $QTEDIR
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools -f
./configure -debug -qconfig qpe -qvfb -depths 4,8,16,32 -keypad-mode -system-jpeg -gif
make sub-src
cd $QT2DIR
export QTDIR=$QT2DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -no-opengl -no-xft
make sub-src
cd tools/designer/util
make
cd ../uic
make
cp $QTDIR/bin/uic $QTEDIR/bin
cd $QTEDIR/tools/qvfb
tmake qvfb.pro > Makefile
make
cp qvfb $QTEDIR/bin
cd $QT3DIR
export QTDIR=$QT3DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -fast -thread
make sub-src
cd tools/linguist/lrelease
make
cd ../lupdate
make
cd ../../designer/uilib
make
cd ../uic
make
cd $QPEDIR
export QTDIR=$QTEDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -edition phone -qtopiadesktop -displaysize 176x208
make
make install
cd src/tools/phonesim
make
cp *.xml $QPEDIR/image/opt/Qtopia/etc
cd ../../..
cd image/opt/Qtopia
mkdir demohome
cp $QTEDIR/bin/qvfb $QPEDIR/image/opt/Qtopia/bin
cp $QTEDIR/tools/qvfb/*.skin $QPEDIR/image/opt/Qtopia/bin -rf
编译已经完成了,Qtopia Phone 2.1.2中提供了一个启动脚本,但是我们还是重写一个:
vi $HOME/shell/startphonedemo-2.1.2.sh
下面是脚本内容:
#!/bin/sh
source $HOME/shell/qtopia-phone-2.1.2.sh
export QTDIR=$HOME/Trolltech/qtopia-phone-2.1.2-debug/image/opt/Qtopia
export QPEDIR=$HOME/Trolltech/qtopia-phone-2.1.2-debug/image/opt/Qtopia
export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBRARY_PATH
export PATH=$QPEDIR/bin:$PATH
if [ -z "$QTOPIA_PHONE_DEVICE" ]; then

export QTOPIA_PHONE_DEVICE=sim:localhost
fi
echo "lease select a phone demo mode:"
echo
echo "
1. Touchscreen Phone"
echo "
2. Keypad Phone"
echo
echo "Your choice (default 1): "
read PHONEMODE
if [ -z "$PHONEMODE" ]
then
PHONEMODE=1
fi
if [ "$PHONEMODE" = 2 ]
then
PHONESKIN=$QPEDIR/bin/SmartPhone.skin
else
PHONESKIN=$QPEDIR/bin/TouchscreenPhone.skin
fi
findproc() {

/bin/ps -e | /bin/sed -n -e '/\<'$1'\>/ s/^ *\([0-9][0-9]*\).*/\1/p'
}
killproc() {

pid=`findproc $1`

[ "$pid" != "" ] && kill $pid
}
killall quicklauncher
killall qpe
killall qvfb
[ -x /sbin/fuser ] && ( /sbin/fuser -kn tcp 4242 || /sbin/fuser -kn tcp 4243 )
[ -x /bin/fuser ] && ( /bin/fuser -kn tcp 4242 || /bin/fuser -kn tcp 4243 )
echo "Stopping common sound deamons..."
artsd_pid=`findproc artsd`
[ "$artsd_pid" != "" ] && kill $artsd_pid
esd_pid=`findproc esd`
[ "$esd_pid" != "" ] && kill $esd_pid
echo "Stopping phone simulator..."
killproc phonesim
echo "Starting qvfb..."
qvfb -skin $PHONESKIN &
if [ $QTOPIA_PHONE_DEVICE = "sim:localhost" ]; then

echo "Starting phone simulator..."

phonesim -gui $QPEDIR/etc/troll.xml &
fi
sleep 5s
echo "Starting Qtopia Phone 2.1.2..."
HOME=$HOME/Trolltech/qtopia-phone-2.1.2-debug/image/opt/Qtopia/demohome qpe
if [ $QTOPIA_PHONE_DEVICE = "sim:localhost" ]; then

echo "Stopping phone simulator..."

killproc phonesim
fi
echo "Restarting killed sound deamons..."
[ "$artsd_pid" != "" ] && artsd &
[ "$esd_pid" != "" ] && esd &
执行这个脚本就可以启动了,看看结果吧。
关于本文,有什么意见或者建议的话,请来信指教,谢谢。
发表于 2009-4-14 19:35:20 | 显示全部楼层
好东西啊 呵呵
发表于 2009-4-16 09:23:17 | 显示全部楼层
是个好东西
发表于 2009-4-28 14:25:24 | 显示全部楼层
非常感谢啊
发表于 2009-4-28 20:37:25 | 显示全部楼层
是什么好东西啊,我真的想想看看了。遗憾的是 我没钱了
发表于 2009-4-29 11:43:00 | 显示全部楼层
买了块板子,一直想不起来玩 ARM7 小强版的, 转让有人要吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条


小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-1-3 17:50 , Processed in 0.223330 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表