Qt for Maemo的开发环境搭建流程

本文提供了一份详细的Maemo5 SDK安装指南,包括Maemo5 SDK、Esbox及Qtformaemo的安装步骤。作者建议在Ubuntu 9.10上直接安装,避免后续升级带来的兼容性问题。

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

在网上看了很多类似的文章,但都有欠缺,现在把自己的经验记录一下

我的操作系统是Ubuntu 9.10。我发现完成以下安装后将系统升级为10.04会导致原有的安装部分失效,所以建议大家不要在9.10上安装,然后升级到10.04。

1 安装 Maemo 5 SDK
   Nokia弄了个图形界面的安装程序,可以很方便的安装Maemo 5 SDK,Scratchbox。

   下载地址为http://www.forum.nokia.com/info/sw.nokia.com/id/c05693a1-265c-4c7f-a389-fc227db4c465/Maemo_5_SDK.html

  按下面那个网址的要求修改下载到的maemo-sdk-install-wizard_5.0.py文件,并进行安装(这个安装需要上网下载大量数据,请在速度快的时候完成,安心等待)

  http://wiki.forum.nokia.com/index.php/How_to_install_Maemo_5_SDK_using_GUI_Installer

2 安装Esbox
   这个基于Eclipse的开发平台, 可以替我们完成很多命令

   在安装Esbox前,请确保操作系统里有jre 6 和 xulrunner,以下命令可以安装xulrunner

   view plaincopy to clipboardprint?
> sudo apt-get install xulrunner 
> sudo apt-get install xulrunner

   Esbox下载页面为https://garage.maemo.org/frs/?group_id=192,要分别下载esbox_2.0.0-R20091216-common.zip 和 esbox_2.0.0-R20091216-linux.gtk.x86.zip 两个文件,并解压到同一个文件夹。

    在linux下启动Esbox需要执行esbox.sh文件

3 安装Qt for maemo
  这个方法也是有很多,不过建议通过使用Esbox的package检查功能,这样比较简单

  Esbox在你新建项目后都会询问你是否进行package检查,建议刚开始开发的时候选择 是,这样Esbox就会帮你检查是否缺少package,并下载安装缺少的package。

  如果自己敲命令安装,可以按照以下步骤

   1) 进入scratchbox沙盒

view plaincopy to clipboardprint?
> scratchbox 
> scratchbox

   2 ) 选择相应的target,平时的开发可以用fremantle x86.

view plaincopy to clipboardprint?
> sb-menu 
> sb-menu

   3 ) 添加源。这个源是沙盒里的,不是Ubuntu的

view plaincopy to clipboardprint?
> vim /etc/apt/source.list 
> vim /etc/apt/source.list

     下面是maemo的官方源

view plaincopy to clipboardprint?
deb http://repository.maemo.org/extras/ fremantle free non-free   
deb-src http://repository.maemo.org/extras/ fremantle free   
deb http://repository.maemo.org/extras-devel fremantle free non-free   
deb-src http://repository.maemo.org/extras-devel fremantle free  
deb http://repository.maemo.org/extras/ fremantle free non-free
deb-src http://repository.maemo.org/extras/ fremantle free
deb http://repository.maemo.org/extras-devel fremantle free non-free
deb-src http://repository.maemo.org/extras-devel fremantle free
  

     下面是镜像源,跟上面那个二选一就可以了   view plaincopy to clipboardprint?
deb http://espejo.freemoe.org/repository.maemo.org/extras/ fremantle free non-free   
deb-src http://espejo.freemoe.org/repository.maemo.org/extras/ fremantle free   
deb http://espejo.freemoe.org/repository.maemo.org/extras-devel fremantle free non-free   
deb-src http://espejo.freemoe.org/repository.maemo.org/extras-devel fremantle free  
deb http://espejo.freemoe.org/repository.maemo.org/extras/ fremantle free non-free
deb-src http://espejo.freemoe.org/repository.maemo.org/extras/ fremantle free
deb http://espejo.freemoe.org/repository.maemo.org/extras-devel fremantle free non-free
deb-src http://espejo.freemoe.org/repository.maemo.org/extras-devel fremantle free


   4 ) 执行系统更新

view plaincopy to clipboardprint?
fakeroot apt-get update  
fakeroot apt-get dist-upgrade 
fakeroot apt-get update
fakeroot apt-get dist-upgrade 

    5 ) 执行以下命令安装 qt 4.6.2

view plaincopy to clipboardprint?
fakeroot apt-get install libqt4-dev libqt4-core libqt4-gui 
fakeroot apt-get install libqt4-dev libqt4-core libqt4-gui


 其实qt的包还有很多的,例如libqt4-phonon,所以建议使用Esbox的package检查功能,这样比较方便

通过上面的步骤,基本可以满足Qt for maemo的开发了,至于scrathbox和Esbox如何使用,就请各位继续摸索

网络还有很多类似的教程,详细说明了如何全用命令进行安装,在这里我就不重复了,请各位参考以下网页

http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation

http://wiki.maemo.org/Qt4_development

下面是以下比较好的Qt网站

  http://www.qteverywhere.com/learnqt



本文来自优快云博客,转载请标明出处:http://blog.youkuaiyun.com/liuiia/archive/2010/05/04/5555510.aspx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值