[embedded]纯净版qtopia-2.2.0编译PC上运行版

2016-7-20 写技术

1.下载qtopia-free-src-2.2.0.tar.gz
2.解压
3.patch
4.
echo yes | ./configure -qte '-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -gif' -qpe '-edition pda -displaysize 240x320 -fontfamilies "helvetica fixed micro smallsmooth smoothtimes"' -qt2 '-no-openg1 -no-xft' -dqt '-no-xft -thread'
make
make install
5.写run.sh
#!/bin/sh
./qt2/bin/qvfb -width 240 -height 320 -depth 32 -qwsdisplay 0 &
cd qtopia/image
mkdir root 2>/dev/null || true
export HOME=$PWD/root
cd opt/Qtopia
export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
export QTDIR=$PWD
export QPEDIR=$PWD
export KDEDIR=$PWD/../kde
sleep 3
./bin/qpe


下面是两个问题:
1.
videocaptureview.cpp:54:28: linux/videodev.h:没有那个文件或目录
videocaptureview.cpp:90: 错误: field `caps' has incomplete type
videocaptureview.cpp:91: 错误: field `mbuf' has incomplete type

解决办法:
$apt-get install libv4l-dev
$ vi qtopia-2.2.0/qtopia/src/applications/camera/videocaptureview.cpp
#include <linux/videodev.h>
替换为
#include <libv4l1-videodev.h>  

2.运行之后没有显示任何对话框,卡在开机页面
需要字体库
fonts.tar.gz
在qtopia/image目录下解压,会将字体库解到
opt/Qtopia/lib/fonts目录下
helvetica_120_50.qpf  helvetica_120_50_t5.qpf  songti_160_50.qpf
字体库我是在网上找的
此前还要修改配置再进行make,配置脚本如下:
echo yes | ./configure -qte '-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -gif' -qpe '-edition pda -displaysize 240x320 -fontfamilies "helvetica fixed micro smallsmooth smoothtimes"' -qt2 '-no-openg1 -no-xft' -dqt '-no-xft -thread'

标签: embedded

发表评论:

Powered by anycle 湘ICP备15001973号-1