(→Create runtime and target) |
(→Debian / Ubuntu) |
||
| (6 intermediate revisions not shown) | |||
| Line 13: | Line 13: | ||
deb <nowiki>http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/</nowiki> / | deb <nowiki>http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/</nowiki> / | ||
| - | Note: replace ${distribution}/${version} by one of the following values "debian/5.0" , "ubuntu/09.10" | + | 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 | 2. add the repository public key | ||
| Line 53: | Line 53: | ||
* Download and copy the repository file: | * Download and copy the repository file: | ||
| - | # Navigate to | + | # Navigate to http://repo.meego.com/MeeGo/sdk/host/repos/. |
# Go to folder <code>opensuse/${version}</code>. | # Go to folder <code>opensuse/${version}</code>. | ||
# Download file <code>meego-sdk.repo</code>. | # Download file <code>meego-sdk.repo</code>. | ||
| Line 59: | Line 59: | ||
# Update repository information: | # Update repository information: | ||
| - | # | + | # zypper ref |
== Install for IA32 == | == Install for IA32 == | ||
| Line 87: | Line 87: | ||
Note: | Note: | ||
* ${target} and ${runtime} can be chosen from the result of "mad list" | * ${target} and ${runtime} can be chosen from the result of "mad list" | ||
| - | * meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0901-runtime | + | * 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-core-ia32-XXX targets doesn't | + | * 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 for ARM == | ||
| Line 160: | Line 161: | ||
$ mad -t ${target} qmake | $ mad -t ${target} qmake | ||
$ mad -t ${target} 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]]. | ||
Contents
|
This page explains how to test the weekly releases of MeeGo SDK.
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
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
To add MeeGo repository, do one of the following:
# zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/opensuse/${version}/meego-sdk.repo
opensuse/${version}.
meego-sdk.repo.
/etc/zypp/repos.d directory.
# zypper ref
# aptitude install meego-sdk-ia32
# yum install meego-sdk-ia32
# zypper install meego-sdk-ia32
List targets and runtimes:
#mad list
Install runtimes:
#mad-admin create -e -f ${runtime}
Install targets:
#mad-admin create -f ${target}
Note:
# aptitude install meego-sdk-armv7l
# yum install meego-sdk-armv7l
# zypper install meego-sdk-armv7l
# aptitude install meego-sdk-qtcreator
# yum install meego-sdk-qt-creator
# zypper install meego-sdk-qt-creator
# aptitude install madde qt-tools
# aptitude install arm-2009q1
# aptitude install qemu-arm
* Note1: You will need to provide your device's 15-digit IMEI number. * Note2: MeeGo Handset image contains the UI.
as root:
# mad-admin create -f meego-core-armv7l-1.1
as regular user:
$ mad -t ${target} pscreate -t qt-simple qthello
$ cd qthello
$ mad -t ${target} qmake
$ mad -t ${target} make
If you have a new qemu image and want to test it with the SDK, you can do the following:
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
Find more information about testing QtCreator with MADDE for MeeGo on this wiki page.