虚拟机:redhat企业版5
交叉编译:arm-linux-gcc-4.5.1-v6
板子:tiny6410
qt-everywhere-opensource-src-4.7.0.tar.gz
参考mini6410 Qt4和Qtopia编程开发指南
a安装QT4.7
①
②
③
④
⑤
⑥
#echo yes | ./configure -force-pkg-config -prefix /opt/Qt4.7 -opensource -embedded arm -xplatform qws/linux-arm-g++ -no-webkit -qt-libtiff -qt-libmng -qt-mouse-tslib -I/opt/tslib_over/include -L/opt/tslib_over/lib
⑦
最后,在mini6410上部署Qt4.7
1.将虚拟机下的Qt4_over复制到板子的当初配置时的目录下
2.关闭板子上的其他qt
3.需要编写脚本来配置QT
#!/bin/sh
if test -e /etc/friendlyarm-ts-input.conf;then
fi
true
TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_TSDEVICE
export TSLIB_CONFFILE
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_DISPLAY=:1
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin
if test -c /dev/touchscreen;then
else
fi
export QWS_KEYBOARD=TTY:/dev/tty1
export HOME=/root
编译好文件见:http://download.csdn.net/detail/zhangjikuan/6513591
将脚本设置可执行权限
运行脚本:/zjk/sh/setqt4env
cd /zjk/Qt4_over/demose/embedded/fluidlauncher
运行 ./fluidlauncher -qws
就可以了
注:以上是在要保证tslib正确的前提下
错误处祥看http://blog.sina.com.cn/s/blog_aece62d90101by88.html
http://blog.sina.com.cn/s/blog_aece62d90101bv8m.html