(原)meego开发学习笔记0:概述
(索引)meego开发资料索引

(译)meego开发学习笔记1:安装meego sdk

孔令春 posted @ 2011年1月11日 14:48 in 移动开发 with tags 安装meego sdk , 5454 阅读

 

内容提要:

1、安装meego sdk 

2、安装meego runtimes(qemu)

3、配置Qt Creator

4、卸载meego

准备工作

     如果你不确定自己的电脑是否符合要求,请按照下列命令测试:

1、测试是否支持VT(即Virtualization Technology,虚心技术

命令:

$ egrep '^flags.*(vmx|svm)' /proc/cpuinfo

如果支持会列出所支持的文件类型,如:

flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht 
tm pbe lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor 
ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm tpr_shadow 
vnmi flexpriority

2、测试是否已导入kvm(即内核虚拟模块,分为Intel公司的kvm_intel和AMD公司的kvm_amd)

命令:

$ lsmod | grep kvm
kvm_intel              43816  0 
kvm                   164576  1 kvm_intel

如果还没有导入,请输入以下命令导入

$ sudo modprobe kvm_intel

$ sudo modprobe kvm_amd

注:如果导入失败,一个可能的原因是你的BIOS没有启用VT功能,那么你可以进入BIOS启用一下。

3、检测显卡是否具有图形加速功能

命令:

$ glxinfo | grep "renderer string"

如果具备,则会输出:

OpenGL renderer string: Mesa DRI ...

如果不具备,则可能会输出:

OpenGL renderer string: Software Rasterizer

那么不支持的原因之一,可能是因为你没有装驱动。

 

如果你测试都通过,那么恭喜你,你可以安装meego 了。

 

一、安装meego sdk

1、添加源

$ sudo gedit /etc/apt/sources.list.d/meego-sdk.list

#添加meego源:
deb http://repo.meego.com/MeeGo/sdk/host/repos/ubuntu 10.04/ / 

注:本文专门针对ubuntu 10.4系统,如果需要在其它系统上安装,请参考文章底部链接。

2、添加公钥

$ gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A
$ gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -

3、更新系统

$ sudo apt-get update

4、查看meego源是否正确响应

$ apt-cache policy madde

5、安装meego sdk

$ sudo apt-get install meego-sdk

6、使用MADDE安装meego目标

 meego支持目标有三种:

  • meego-core-armv7l-1.1: Build applications for ARM handheld devices (such as N900)
  • meego-handset-ia32-1.1: Build applications for x86 handheld devices (such as Aava)
  • meego-netbook-ia32-1.1: Build applications for x86 netbooks.

$ sudo mad-admin create -f <target> 

选择一个替换<target>

7、检查目标安装是否正确

$ mad -t <target> pscreate -t qt-simple qthello
$ cd qthello
$ mad -t <target> qmake
$ mad -t <target> make

8、用一个简单例子qt-simple程序测试其安装正确性

$ file build/qthello

 

如果安装成功,运行~/qthello/build/qthello,将会出现 helloword对话框。

二、安装QEMU runtimes

1、查看当前meego sdk版本中所支持的runtimes

$ mad-admin list runtimes
qemu-n900-pr12                                              (installable)
rx48-diablo                                                 (installable)
meego-handset-ia32-qemu-1.1.20101031.2201-sda-runtime       (installable)
meego-netbook-ia32-qemu-1.1.20101031.2037-sda-runtime       (installable)

2、选择一个目标安装:

$ sudo mad-admin create -f -e <runtime>

这个过程大概要持续5、6个小时,因为它需要下载大约650M的文件。

3、查看是否安装成功

再一次运行1命令:

$ mad-admin list runtimes
qemu-n900-pr12                                              (installable)
rx48-diablo                                                 (installable)
meego-handset-ia32-qemu-1.1.20101031.2201-sda-runtime       (installed)
meego-netbook-ia32-qemu-1.1.20101031.2037-sda-runtime       (installable)

4、远程启动qemu runtimes

手持设备:

$ sudo mad remote -r meego-handset-ia32-qemu-1.1.20101031.2201-sda-runtime poweron

上网本:

$ sudo mad remote -r meego-netbook-ia32-qemu-1.1.20101031.2037-sda-runtime poweron

也可以不显示图片:

$ QEMU_NOGRAPHIC=yes mad remote -r meego-handset-ia32-qemu-1.1.20101031.2201-sda-runtime poweron

5、关闭命令

$ sudo mad remote -r meego-netbook-ia32-qemu-1.1.20101031.2037-sda-runtime poweroff

6、可以通过ssh终端访问

$ ssh meego@127.0.0.1 -p 6666

有两个帐户可以使用

  1. User: meego, password: meego
  2. User: root, password: meeg

7、配置Qt Creator 连接到虚拟设备上

    1.打开Tools > Options > Projects > MeeGo Device Configurations

   2.点击右边的 Add按钮。

   3.写入如下配置:

  • Device type: choose MeeGo emulator
  • Authentication type: Password
  • Host name: 127.0.0.1
  • Ports, SSH: 6666
    Note that the emulator is setup with a redirect from port 6666 on localhost to the SSH port (22) of the emulated device.
  • Ports, Gdb Server: 13219 (the default)
Note: If this port is not free, you can select another one.
  • Connection Timeout: 30
  • User Name: root
  • Password: meego

     4、单击 Apply

     5、可以测试一下,点击右边的 Test

          如果成功显示: "Device configuration successful"

          否则显示:"Could not connect to host"

      6、点击确定,关闭。

 

三、配置Qt Creator ,使用 meego toolchain(s)

1、打开Tools > Options > Qt4 > Qt Versions.

2、点击“+”新建一个version.

3、自定一个版本名,然后在 qmake location:里填入:/usr/lib/madde/linux-i686/targets/<target>/bin/qmake。

注:<targat>替换为你刚下的目标。

4、Rebuild一下,然后Apply.

 

四、移除meego sdk

1、移除meego sdk中的所有组件

$ sudo apt-get remove --purge meego-sdk-qtcreator madde qt-tools arm-2009q1 qemu-arm qemu-gl meego-sdk-i586-toolchain meego-qemu meego-sdk-qt

2、自动清理一下系统

$ sudo apt-get autoremove

3、移除madde目录

$ sudo rm -rf /usr/lib/madde

4、清理缓存

$ sudo apt-get clean

 

注:本文只介绍了ubuntu 10.04下的安装,如果读者想在其它系统上安装,请参考原文:Getting started with the  MeeGo SDK for Linux.

Avatar_small
Khajane 2 Challan Ge 说:
2022年8月06日 21:56

K2 challan also referred to as Khajane 2, an integrated financial management system from the Government of Karnataka. The K2 has been brought into working with an aim to manage the financial business of the government. Khajane 2 Challan Generation It works to simplify the process of remittance of departments under government by bringing an option of anywhere-anytime payment options. Firstly every department under the government of Karnataka will have access to Khajane 2 which allows their customers to remit to the government through the easy payment links provided.

Avatar_small
GSEB 11th Previous P 说:
2022年8月19日 03:05

Gujarati, English, Economics, Accounts, Chemistry, Physics, Biology, Geography, History, Political Science, Sociology, Math, Sanskrit, and Other Subjects from the GSSTB Board Class 11 PDF Attachments are Available Here. GSEB 11th Previous Paper 2023 Additional information on the Gujarat Board Std. 11th Important Model Question Paper 2023 Format is provided below. Students might use the Important Model Question Paper 2023 to cover all the topics before the exam date if they were preparing for the Gujarat Board Examination. The Gujarat Important Model Question Paper 2023 in PDF Format is available for download for students in both classes of grade eleven.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter