Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4460966
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

分类: LINUX

2012-10-09 10:51:02

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下。

阅读(1922) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~