在网上看了很多类似的文章,但都有欠缺,现在把自己的经验记录一下 我的操作系统是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.csdn.net/liuiia/archive/2010/05/04/5555510.aspx