qtopia-2.2.0.tar是君益兴科技开发有限公司提供的源码(helper2416板子上用的),本身是打了patch,所以跟官方下的源码估计会有差别。
先解压tar -xvf qtopia-2.2.0.tar
进入源码 cd qtopia-2.2.0
echo "yes" | ./configure -qte '-embedded -no-xft -qconfig qpe -depths 16,32 -qvfb -system-jpeg -gif' -qpe '-edition pda -displaysize 240x320 -fontfamilies "helvetica fixed micro smallsmooth smoothtimes unifont"' -qt2 '-no-opengl -no-xft' -dqt '-no-xft -thread'
make
编译出错:
backend/vobject.cpp:419:30: error: invalid conversion from ‘const char*’ to ‘char*’
修改
qtopia/src/libraries/qtopia/backend/vobject.cpp
char *dot = strrchr(g,'.');
为
char *dot = (char*)strrchr(g,'.');
出错:
wavplugin.cpp: In member function ‘virtual bool WavPlugin::isFileSupported(const QString&)’:
wavplugin.cpp:435:45: error: invalid conversion from ‘const char*’ to ‘char*’
修改
char *ext = strrchr( path.latin1(), '.' );
为
char *ext = (char*)strrchr( path.latin1(), '.' );
make 通过后,make install 会安装到qtopia/image下。