2007年11月23日星期五

师弟总结的qtopia-core4.3.2流程

gunzip qt-x11-opensource-src-4.3.2.tar.gz
tar xvf qt-x11-opensource-src-4.3.2.tar
./configure -qvfb
make
make install

gunzip qtopia-core-opensource-src-4.3.2.tar.gz
tar xvf qtopia-core-opensource-src-4.3.2.tar

cd /tmp/qtopia-core-opensource-src-4.3.2
在qtopia-core-opensource-src-4.2.2/src/gui/embedded/qmouselinuxtp_qws.h加入
#define QT_QWS_IPAQ
#define QT_QWS_IPAQ_RAW
以上两个定义是为了支持触摸屏
./configure -prefix /Qtopiacore-4.3.2 -no-largefile -xplatform qws/linux-arm-g++ -no-libtiff -no-gif -no-libmng -no-openssl -embedded arm -big-endian -no-freetype -qt-gfx-linuxfb -no-sq -no-qt3support –no-qvfb
make
make install
将 编译好Qtopiacore-4.3.2下lib库放到目标板根文件系统的Qtopiacore下 (注意根文件系统中的目录要和-prefix /Qtopiacore-4.3.2一样否则下到arm板上运行程序的时候会报错说找不到字体)如果报错说找不到libstc++.so.6文件,可以将 usr/local/arm/3.4.1/arm-linux/lib/libstc++.so.6复制到/Qtopiacore-4.3.2/lib 下。为了实现触摸屏的校准将/Qtopiacore- 4.3.2/examples/qtopiacore/mousecalibration/mousecalibration拷贝到根文件系统中,在文件 系统的.bashrc文件中加入环境变量。并且export QWS_MOUSE_PROTO="LinuxTP:/dev/h3600_tsraw"
然后制作根文件系统,将根文件系统下到arm板子上去,启动板子运行./mousecalibration -qws 进行触摸屏的校准。
校准完后 cat /etc/pointercal 将显示的数据记录下来, 然后新建一个空白文档将其命名为pointercal ,然后将记录的数据放到pointercal文档中
rm -f /etc/pointercal
sudo cp -f 新建的pointercal /etc
sudo chown 500:244 /etc/pointercal
制作根文件系统,烧到arm板子
结束!

没有评论: