meego 1.1 开发环境的搭建及问题解决方法

折腾了大半天终于把meego 1.1的开发环境安装在了ubuntu 10.10上了,这个过程的艰难也充分证明meego的道路可能还会很艰难。

1.meego SDK安装

(1),获取gpg key,不然当你用apt-get来安装SDK的时候可能会出现gpg警告。

      gpg --keyserver keys.gnupg.net --recv-key 0BC7BEC479FC1F8A

      然后导入gpg key

    gpg --export 0BC7BEC479FC1F8A  | apt-key add -

(2), 添加源:在文件 /etc/apt/sources.list最后将源添加进去:

  deb http://repo.meego.com/MeeGo/sdk/host/repos/p { margin-bottom: 0.21cmubuntu/10.10 / /

(3)、更新源:执行sudo apt-get update。有可能因为网络原因要反复执行几次才能完全更新成功。meego 1.1 开发环境的搭建及问题解决方法_第1张图片

(4)、执行sudo apt-get install meego-sdk安装sdk这个步骤也有可能因为网络原因要反复执行几次,最简单的办法先手动下载放在cache中,再执行可能会快点。

2.meego target安装。

(1)、通过$ mad-admin list target命令可看到所有的target情况。

代码
   
   
$ mad - admin list target
fremantle
- pr13 (installable)
maemo412
- 1 (installable)
meego
- core - armv7l - 1.1 (installable)
meego
- core - armv7l - 1.1 . 2 (installable)
meego
- core - armv7l - trunk (installable)
meego
- core - ia32 - 1.1 (installable)
meego
- core - ia32 - trunk (installable)
meego
- handset - ia32 - 1.1 . 2 (installed)
meego
- handset - ia32 - 1.1 (installable)
meego
- handset - ia32 - w32 - 1.1 (installable)
meego
- handset - ia32 - trunk (installable)
meego
- netbook - ia32 - 1.1 . 2 (installable)
meego
- netbook - ia32 - 1.1 (installable)
meego
- netbook - ia32 - w32 - 1.1 (installable)
meego
- netbook - ia32 - trunk (installable)
(2)、执行 sudo mad-admin create -f <target>安装你所要的target

(3)、通过以下方法可以测试你所安装的target是否成功。

代码
   
   
quan @ubuntu :/ opt / project$ mad - t meego - handset - ia32 - 1.1 . 2 pscreate - t qt - simple qthello
Skeleton
' qthello ' , type = qtprog created .
quan
@ubuntu :/ opt / project$ ls
qthello test_project
qiquan
@ubuntu :/ opt / project$ cd qthello /
qiquan
@ubuntu :/ opt / project / qthello$ ls
data debian qthello
. pro src
quan
@ubuntu :/ opt / project / qthello$ mad - t meego - handset - ia32 - 1.1 . 2 qmake
quan
@ubuntu :/ opt / project / qthello$ ls
build data debian Makefile qthello
. pro src
quan
@ubuntu :/ opt / project / qthello$ mad - t meego - handset - ia32 - 1.1 . 2 make
g
++ - c - pipe - g - Wall - W - D_REENTRANT - DQT_GUI_LIB - DQT_CORE_LIB - DQT_SHARED - I / usr / lib / madde / linux - i686 / sysroots / meego - handset - ia32 - madde - sysroot - 1.1 . 20110106.1204 - fs / usr / share / qt4 / mkspecs / linux - g ++ - I . - I / usr / lib / madde / linux - i686 / sysroots / meego - handset - ia32 - madde - sysroot - 1.1 . 20110106.1204 - fs / usr / include / qt4 / QtCore - I / usr / lib / madde / linux - i686 / sysroots / meego - handset - ia32 - madde - sysroot - 1.1 . 20110106.1204 - fs / usr / include / qt4 / QtGui - I / usr / lib / madde / linux - i686 / sysroots / meego - handset - ia32 - madde - sysroot - 1.1 . 20110106.1204 - fs / usr / include / qt4 - Ibuild - o build / qtmain . o src / qtmain . cpp
g
++ - o build / qthello build / qtmain . o - L / usr / lib / madde / linux - i686 / sysroots / meego - handset - ia32 - madde - sysroot - 1.1 . 20110106.1204 - fs / usr / lib - lQtGui - lQtCore - lpthread
quan
@ubuntu :/ opt / project / qthello$ file build / qthello
build
/ qthello : ELF 32 - bit LSB executable , Intel 80386 , version 1 (GNU / Linux) , dynamically linked (uses shared libs) , for GNU / Linux 2.6 . 25 , not stripped
quan
@ubuntu :/ opt / project / qthello$
3.配置 QMENU的runtimes.

(1)、可通过命令:$mad-admin list runtime来查看当前的可用的runtimes.


代码
   
   
$ mad - admin list runtimes
qemu
- n900 - pr13 (installable)
rx48
- diablo (installable)
meego
- handset - ia32 - qemu - 1.1 . 2 - runtime (installed)
meego
- handset - ia32 - qemu - 1.1 . 20101031.2201 - sda - runtime (installable)
meego
- handset - ia32 - w32 - qemu - 1.1 . 20101031.2201 - sda - runtime (installable)
meego
- netbook - ia32 - qemu - 1.1 . 2 - runtime (installable)
meego
- netbook - ia32 - qemu - 1.1 . 20101031.2037 - sda - runtime (installable)
meego
- netbook - ia32 - w32 - qemu - 1.1 . 20101031.2037 - sda - runtime (installable)
(2)、安装你所需要runtimessudo mad-admin create -f  meego-handset-ia32-1.1.2

整个过程本来至此就算结束了,但是当你运行的时候还在很多问题,存在的主要问题有:

1.打开BIOS中的Intel Virtualization technolog 否则当你打开模拟器时应该是黑屏。

解决方法:开机按F2把Intel Virtualization technolog设置为enabled.

2.因ubuntu内核自身的一个bug需要更新一下内核,否则当你启动qmenu的时候将出下下面这个画面并卡死在这里。


meego 1.1 开发环境的搭建及问题解决方法_第2张图片

大概要这几个文件:

linux-headers-2.6.35-24_2.6.35-24.42qemui386v3_all.deb 

linux-headers-2.6.35-24-generic_2.6.35-24.42qemui386v3_i386.deb 

linux-image-2.6.35-24-generic_2.6.35-24.42qemui386v3_i386.deb

经过以上折腾基本已经可以看到它的界面了:

meego 1.1 开发环境的搭建及问题解决方法_第3张图片

注:不建议用windows哈,除非你觉得你的机器很NB,或者可以忍受极慢的速度。 

你可能感兴趣的:(meego)