目标平台为arm-linux,体系结构为arm。
- -no-qvfb
目标平台已支持framebuffer,因而不使用虚拟帧缓冲。
- -extra-qtopiacore-config
为Qtopia core 配置选项。
- -xplatform qws/linux-arm-g++ -embedded arm
目标平台编译配置文件使用qtopiacore/qt/mkspecs/qws/linux-arm-g++目录下的配置文件,嵌入式平台为arm。
- -qconfig qpe
使用配置文件qconfig-qpe.h,若使用qconfig-large.h配置文件,则使用-qconfig large选项。
- -qt-sql-sqlite
支持Sqlite。
- -qt-kbd-usb
键盘支持usb协议。mplayer播放器
- -no-mouse-linuxtp -qt-mouse-tslib
- -I/home/linux/tslib/include -L/home/linux/tslib/lib
触摸屏协议不支持linuxtp,支持tslib,并在后面添加上刚才编译的tslib的头文件和库。
- ../qtopiaconfigureERR.txt
最后将配置过程中的错误输出到qtopiaconfigureERR.txt文件中。
编译
- #make
- #make install
将安装和的目录考到nfsroot目录下

- #cp /Qtopia /rootfs -a
3、熟悉主机开发环境
提供给PC端的开发工具
上面的qtopia编译安装完成后,会在咱们前面创建的target目录下生成很多开发工具。
先看一下供主机端使用的工具
- [root@localhost bin]# pwd
- /home/linux/Qtopia/target/qtopiacore/host/bin
- [root@localhost bin]# ls
- assistant linguist lupdate qmake rcc uic
- designer lrelease moc qvfb templates uic3
如果系统以前有其它qt开发工具,把环境变量修改一下,保证它们不要和我们这几个工具冲突。下面可以试一下你的designer了。
- #./designer
二、在PC端实现基于qt前端的mplayer播放器
创建工程目录/home/linux/mplayer
1、搭建ui界面
利用前面安装的designer搭建ui界面,并将其保存至/home/linux/mplayer/mplayer.ui
- #./designer
圆角矩形标注: 加了一个widget,留作mplayer的播放区
2、编写程序
在/home/linux/mymplayer/下创建mplayer.cpp、mplayer.h、main.cpp 、image.qrc
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-34872-6.html
请问