ubuntu 编译qtopia模拟环境

本文介绍了在Ubuntu系统中编译Qtopia模拟环境的过程,包括所需软件版本及编译过程中遇到的两个错误及其解决方法。错误1涉及QWSGestureMethod未声明,通过在源文件中添加声明解决;错误2是关于事件比较的歧义,通过类型转换消除歧义。此外,还需确保安装uuid-dev以避免链接问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前一段时间编译了qtopia ,操作系统是 ubuntu ,具体步骤如下 : 

QTE版本
qt-x11-2.3.2.tar.gz
tmake-1.13.tar.gz
qt-embedded-2.3.10-free.tar.gz
qtopia-free-source-2.1.1.tar.bz2

在ubuntu编译Qtopia虚拟平台步骤和错误修改方法

编译环境变量设置如qpecompile-host.sh

错误 1 :
编译 qt-2.3.10时

/home/jinying/qtall/qt_qtopia_pc_embedded_270/qtopia_host/qt-2.3.10/include/qwindowsystem_qws.h:237: error: ‘QWSGestureMethod’ has not been declared
make[2]: *** [allmoc.o] Error 1
make[2]: Leaving directory `/home/jinying/qtall/qt_qtopia_pc_embedded_270/qtopia_host/qt-2.3.10/src'
make[1]: *** [src-mt] Error 2
make[1]: Leaving directory `/home/jinying/qtall/qt_qtopia_pc_embedded_270/qtopia_host/qt-2.3.10'
make: *** [src-mt] Error 2

解决方法 :
修改 qt-2.3.10/src/kernel/qwindowsystem_qws.h 文件
在前面增加以下两行

class QWSInputMethod;

class QWSGestureMethod;

错误 2 :

编译qtopia-free-2.1.1时

backend/event.cpp: In static member function ‘static int Event::

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值