Meego Wiki
Views
From MeeGo wiki
< SDK(Difference between revisions)
Jump to: navigation, search
(How to test MeeGo SDK)
(Debian / Ubuntu)
 
(33 intermediate revisions not shown)
Line 3: Line 3:
This page explains how to test the weekly releases of MeeGo SDK.
This page explains how to test the weekly releases of MeeGo SDK.
-
* NOTE: See the matrix of available hosts and their status on [[SDK/Releasing_and_Packaging|this wiki page]]
+
* NOTE: See the hosts status on [[SDK/Release|this wiki page]]
== Configure distributions package manager ==
== Configure distributions package manager ==
Line 11: Line 11:
1. Add the following line to /etc/apt/sources.list file or add /etc/apt/sources.list.d/meego-sdk.list file:
1. Add the following line to /etc/apt/sources.list file or add /etc/apt/sources.list.d/meego-sdk.list file:
-
  deb <nowiki>http://download.meego.com/live/devel:/tools:/sdk/${distribution}/</nowiki> /
+
  deb <nowiki>http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/</nowiki> /
-
Note: replace ${distribution} by one of the following value "Debian_5.0", "Ubuntu_09.10" or "Ubuntu_10.04".
+
Note: replace ${distribution}/${version} by one of the following values "debian/5.0" , "ubuntu/09.10" , "ubuntu/10.04" or "ubuntu/10.10"
-
2. update packages database
+
2. add the repository public key
-
  # apt-get update
+
  # gpg --keyserver subkeys.pgp.net --recv 0BC7BEC479FC1F8A
 +
# gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
 +
 
 +
3. update packages database
 +
 
 +
# aptitude update
=== Fedora ===
=== Fedora ===
-
TODO
+
1. Go to the yum repository directory
 +
 
 +
$ cd /etc/yum.repos.d/
 +
 
 +
2. Add the MeeGo SDK yum repository
 +
 
 +
# wget http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo
 +
 
 +
Note: replace ${distribution}/${version} with one of the following values, depending on your Linux distribution: "fedora/12", "fedora/13"
 +
 
 +
3. Install the signing key
 +
 
 +
# rpm --import http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/repodata/repomd.xml.key
 +
 
 +
4. Update packages database
 +
 
 +
# yum update
=== openSUSE ===
=== openSUSE ===
-
TODO
+
To add MeeGo repository, do one of the following:
 +
* Use the command:
-
== Install ==
+
# zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/opensuse/${version}/meego-sdk.repo
-
=== Install Qt Creator ===
+
* Download and copy the repository file:
 +
# Navigate to http://repo.meego.com/MeeGo/sdk/host/repos/.
 +
# Go to folder <code>opensuse/${version}</code>.
 +
# Download file <code>meego-sdk.repo</code>.
 +
# Copy the file as root to <code>/etc/zypp/repos.d</code> directory.
 +
# Update repository information:
 +
 
 +
# zypper ref
 +
 
 +
== Install for IA32 ==
 +
 
 +
=== Install the meego-sdk-ia32 package ===
==== Debian / Ubuntu ====
==== Debian / Ubuntu ====
 +
# aptitude install meego-sdk-ia32
-
# apt-get install qtcreator
+
==== Fedora ====
-
=== Install MADDE ===
+
# yum install  meego-sdk-ia32
 +
 
 +
==== OpenSUSE ====
 +
 
 +
# zypper install  meego-sdk-ia32
 +
 
 +
=== Create runtime and target  ===
 +
List targets and runtimes:
 +
#mad list
 +
Install runtimes:
 +
#mad-admin create -e -f ${runtime}
 +
Install targets:
 +
#mad-admin create -f ${target}
 +
 
 +
Note:
 +
* ${target} and ${runtime} can be chosen from the result of "mad list"
 +
* meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime should be created if you what to use handset targets, e.g., meego-handset-ia32-1.1
 +
* meego-netbook-ia32-1.0.80.12.20100727.1-sdk-pre0901-runtime  should be created if you what to use netbook targets, e.g., meego-netbook-ia32-1.1
 +
* meego-core-ia32-XXX targets doesn't need any runtime and you can't start qemu to debug projects targeting those targets.
 +
 
 +
== Install for ARM ==
 +
 
 +
=== Install MeeGo SDK (meta/all in one) ===
==== Debian / Ubuntu ====
==== Debian / Ubuntu ====
-
  # apt-get install madde qt-tools
+
  # aptitude install meego-sdk-armv7l
 +
 
 +
==== Fedora ====
 +
 
 +
# yum install meego-sdk-armv7l
 +
 
 +
==== OpenSUSE ====
 +
# zypper install  meego-sdk-armv7l
-
=== Install toolchains ===
+
=== Install Qt Creator (standalone) ===
==== Debian / Ubuntu ====
==== Debian / Ubuntu ====
-
for arm:
+
# aptitude install meego-sdk-qtcreator
-
# apt-get install arm-2009q1
+
==== Fedora ====
-
=== Install sysroots ===
+
# yum install meego-sdk-qt-creator
-
for arm (as root):
+
==== OpenSUSE ====
-
  # mad-admin fetch meego-core-armv7l-madde-sysroot
+
  # zypper install meego-sdk-qt-creator
-
for ia32 (as root):
+
=== Install MADDE (standalone) ===
-
  # mad-admin fetch meego-core-ia32-madde-sysroot
+
==== Debian / Ubuntu ====
 +
 
 +
  # aptitude install madde qt-tools
-
=== Install QEMU ===
+
=== Install toolchains (standalone) ===
==== Debian / Ubuntu ====
==== Debian / Ubuntu ====
-
* Note: you can optionally only choose qemu-arm or qemu-gl (QEMU for ia32 target)
+
# aptitude install arm-2009q1
-
# apt-get install qemu-arm qemu-gl
+
=== Install QEMU (standalone) ===
 +
==== Debian / Ubuntu ====
 +
 +
# aptitude install qemu-arm
=== Install QEMU images (QEMU NAND and rootfs) ===
=== Install QEMU images (QEMU NAND and rootfs) ===
Line 79: Line 147:
   * Note2: MeeGo Handset image contains the UI.
   * Note2: MeeGo Handset image contains the UI.
-
* x86 based: Download the image from [[Getting_started_with_the_MeeGo_SDK_for_Linux |this wiki page]]
+
=== Create target ===
-
 
+
-
  * netbook: [http://download3.meego.com/meego-netbook-ia32-1.0.80.12.20100727.1-sdk-pre0729.tar.bz2 meego-netbook-ia32-1.0.80.12.20100727.1-sdk-pre0729.tar.bz2]
+
-
  * handset: [http://download3.meego.com/meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0729.tar.bz2 meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0729.tar.bz2]
+
-
 
+
-
 
+
-
== Configure MADDE ==
+
as root:
as root:
-
  # mad-admin create meego-core-${arch}
+
  # mad-admin create -f meego-core-armv7l-1.1
-
=== Test MADDE target ===
+
== Test MADDE target ==
as regular user:
as regular user:
-
  $ mad -t meego-core-${arch} pscreate -t qt-simple qthello
+
  $ mad -t ${target} pscreate -t qt-simple qthello
  $ cd qthello
  $ cd qthello
-
  $ mad -t meego-core-${arch} qmake
+
  $ mad -t ${target} qmake
-
  $ mad -t meego-core-${arch} make
+
  $ mad -t ${target} make
 +
 
 +
== How to test new qemu image ==
 +
 
 +
If you have a new qemu image and want to test it with the SDK, you can do the following:
 +
* Copy or link your tar'ed image to /usr/lib/madde/linux-{arch}/cache
 +
 
 +
* Find the file that defines the target you want to test the qemu with in the configuration files in /usr/lib/madde/linux-{arch}/cache/madde.conf.d, append the following contents (Assume your new qemu image is meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw.tar.bz2):
 +
 
 +
runtime meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime
 +
  image meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw.tar.bz2
 +
  qemu qemu-meego
 +
  args qemu-handset
 +
  args-common -name MeeGo -m 1024 -boot c -hda meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw -enable-kvm -vga std -enable-gl -device virtio-gl-pci -skin /opt/meego/qemu-gl/share/qemugl/meego/skin/handset/skin.xml -usbdevice tablet
 +
end
 +
 
 +
Note that if you are creating netbook image, you should remove  the "-skin" and "-usbdevice" parameter
 +
 
 +
* Change the "runtime" configuration of the target to meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime
 +
* Issue "mad-admin create -e meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime" to create the newly added runtime
== Test QtCreator ==
== Test QtCreator ==
Find more information about testing QtCreator with MADDE for MeeGo on [[MeeGo_SDK_with_QEMU#Use_Qt_Creator_to_Develop_MeeGo_Applications|this wiki page]].
Find more information about testing QtCreator with MADDE for MeeGo on [[MeeGo_SDK_with_QEMU#Use_Qt_Creator_to_Develop_MeeGo_Applications|this wiki page]].

Latest revision as of 10:31, 10 December 2010

Contents

How to test MeeGo SDK

This page explains how to test the weekly releases of MeeGo SDK.

Configure distributions package manager

Debian / Ubuntu

1. Add the following line to /etc/apt/sources.list file or add /etc/apt/sources.list.d/meego-sdk.list file:

deb http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/ /

Note: replace ${distribution}/${version} by one of the following values "debian/5.0" , "ubuntu/09.10" , "ubuntu/10.04" or "ubuntu/10.10"

2. add the repository public key

# gpg --keyserver subkeys.pgp.net --recv 0BC7BEC479FC1F8A
# gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -

3. update packages database

# aptitude update

Fedora

1. Go to the yum repository directory

$ cd /etc/yum.repos.d/

2. Add the MeeGo SDK yum repository

# wget http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo

Note: replace ${distribution}/${version} with one of the following values, depending on your Linux distribution: "fedora/12", "fedora/13"

3. Install the signing key

# rpm --import http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/repodata/repomd.xml.key

4. Update packages database

# yum update

openSUSE

To add MeeGo repository, do one of the following:

  • Use the command:
# zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/opensuse/${version}/meego-sdk.repo
  • Download and copy the repository file:
  1. Navigate to http://repo.meego.com/MeeGo/sdk/host/repos/.
  2. Go to folder opensuse/${version}.
  3. Download file meego-sdk.repo.
  4. Copy the file as root to /etc/zypp/repos.d directory.
  5. Update repository information:
# zypper ref

Install for IA32

Install the meego-sdk-ia32 package

Debian / Ubuntu

# aptitude install meego-sdk-ia32

Fedora

# yum install  meego-sdk-ia32

OpenSUSE

# zypper install  meego-sdk-ia32

Create runtime and target

List targets and runtimes:

#mad list

Install runtimes:

#mad-admin create -e -f ${runtime}

Install targets:

#mad-admin create -f ${target}

Note:

  • ${target} and ${runtime} can be chosen from the result of "mad list"
  • meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime should be created if you what to use handset targets, e.g., meego-handset-ia32-1.1
  • meego-netbook-ia32-1.0.80.12.20100727.1-sdk-pre0901-runtime should be created if you what to use netbook targets, e.g., meego-netbook-ia32-1.1
  • meego-core-ia32-XXX targets doesn't need any runtime and you can't start qemu to debug projects targeting those targets.

Install for ARM

Install MeeGo SDK (meta/all in one)

Debian / Ubuntu

# aptitude install meego-sdk-armv7l

Fedora

# yum install  meego-sdk-armv7l

OpenSUSE

# zypper install  meego-sdk-armv7l

Install Qt Creator (standalone)

Debian / Ubuntu

# aptitude install meego-sdk-qtcreator

Fedora

# yum install meego-sdk-qt-creator

OpenSUSE

# zypper install meego-sdk-qt-creator

Install MADDE (standalone)

Debian / Ubuntu

# aptitude install madde qt-tools


Install toolchains (standalone)

Debian / Ubuntu

# aptitude install arm-2009q1

Install QEMU (standalone)

Debian / Ubuntu

# aptitude install qemu-arm

Install QEMU images (QEMU NAND and rootfs)

 * Note1: You will need to provide your device's 15-digit IMEI number.
 * Note2: MeeGo Handset image contains the UI.

Create target

as root:

# mad-admin create -f meego-core-armv7l-1.1

Test MADDE target

as regular user:

$ mad -t ${target} pscreate -t qt-simple qthello
$ cd qthello
$ mad -t ${target} qmake
$ mad -t ${target} make

How to test new qemu image

If you have a new qemu image and want to test it with the SDK, you can do the following:

  • Copy or link your tar'ed image to /usr/lib/madde/linux-{arch}/cache
  • Find the file that defines the target you want to test the qemu with in the configuration files in /usr/lib/madde/linux-{arch}/cache/madde.conf.d, append the following contents (Assume your new qemu image is meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw.tar.bz2):
runtime meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime
  image meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw.tar.bz2
  qemu qemu-meego
  args qemu-handset
  args-common -name MeeGo -m 1024 -boot c -hda meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901.raw -enable-kvm -vga std -enable-gl -device virtio-gl-pci -skin /opt/meego/qemu-gl/share/qemugl/meego/skin/handset/skin.xml -usbdevice tablet
end

Note that if you are creating netbook image, you should remove the "-skin" and "-usbdevice" parameter

  • Change the "runtime" configuration of the target to meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime
  • Issue "mad-admin create -e meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime" to create the newly added runtime

Test QtCreator

Find more information about testing QtCreator with MADDE for MeeGo on this wiki page.

Personal tools