前一段时间编译了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时
b