设为首页 加入收藏

TOP

Qt for Maemo的开发环境搭建流程
2014-11-24 07:54:02 来源: 作者: 【 】 浏览:0
Tags:for Maemo 开发 环境 搭建 流程

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


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如何使用,就请各位继续摸索


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


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Linux 2.6.37.1内核的交叉编译 下一篇QT过滤重复按键事件

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·在 Redis 中如何查看 (2025-12-26 03:19:03)
·Redis在实际应用中, (2025-12-26 03:19:01)
·Redis配置中`require (2025-12-26 03:18:58)
·Asus Armoury Crate (2025-12-26 02:52:33)
·WindowsFX (LinuxFX) (2025-12-26 02:52:30)