We have introduced how to use MeeGo SDK for MeeGo development on Linux. This article will introduce how to run MeeGo SDK on various popular Linux versions.
Prerequisites
◆ You must have an effective popular Linux release (such as Fedora 13, Ubuntu 10.04LTS, OpenSUSE 11.3) and run it on a suitable popular hardware, for example, 32-bit Intel Atom or Intel dual-core CPU.
◆ If you plan to use QEMU, you must confirm that VT is supported on your primary system. Check the detailed steps in this article to confirm your system capabilities.
◆ To install required components, log on to the system as a root user.
Sudo-I
Provide your password when prompted.
Configure the release Package Manager
On Debain or Ubuntu
In/etc/apt/sources. add the following text to the list file. you can also create/etc/apt/sources. list. d/meego-sdk, and enter the following text.
- deb http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/ /
Note: Based on your linux version, replace the $ {distribution}/$ {version} string with "debian/5.0", "ubuntu/09.10", or "ubuntu/10.04"
2. Add the following repository key
- $ sudo gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A
-
- $ sudo gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
3. Update the software package Database
- $ sudo apt-get update
4. Check that the MeeGo code repository is added to the file tomorrow. For example, use the following command
- $ sudo apt-cache policy madde
If the code repository has been successfully added, this command prints detailed MADDE package information.
Under Fedora
1. Go to the yum repository directory
- # cd /etc/yum.repos.d/
2. Add the yum repository of MeeGo SDK
- # wget http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo
Note: Based on your linux version, replace the $ {distribution}/$ {version} string pair: "fedora/12" or "fedora/13 ".
3. Install the signature key
- # rpm --import http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/repodata/repomd.xml.key
4. Update the software package Database
- # yum update
Under MeeGo
Run the following command to install the MeeGo code repository:
- zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo
Note: Based on your linux version, replace the $ {distribution}/$ {version} string pair: "meego/1.1" or "meego/trunk ".
In openSUSE
Run the following command to add the MeeGo code repository:
- zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo
Note: Based on your linux version, replace the $ {distribution}/$ {version} string pair: "opensuse/11.2" or "opensuse/11.3 ".
Install MeeGo SDK
Debian/Ubuntu
- $ sudo apt-get install meego-sdk
Fedora
- # yum install meego-sdk
OpenSUSE
- # zypper install meego-sdk
Commands for ARM
Debian/Ubuntu
- $ sudo apt-get install meego-sdk-armv7l
Fedora
- # yum install meego-sdk-armv7l
OpenSUSE
- # zypper install meego-sdk-armv7l
Commands for Intel Atom
Debian/Ubuntu
- $ sudo apt-get install meego-sdk-ia32
Fedora
- # yum install meego-sdk-ia32
OpenSUSE
- # zypper install meego-sdk-ia32
Use MADDE to create and test the target file
1. Create MeeGotarget in MADDE
$ Sudo mad-admin create-f <target>
<Target> is a meego-core-armv7l-1.1, meego-handset-ia32-1.1, or meego-netbook-ia32-1.1
Note: The-f flag indicates that MADDE will first download and install the appropriate sysroottar package. If you are in trouble, find a solution on the website.
- http://wiki.meego.com/MeeGo_SDK_Troubleshooting#General_SDK_Errors
2. Check whether target and toolchain can be found in MADDE.
- $ mad -t <target> pscreate -t qt-simple qthello
- $ cd qthello
- $ mad -t <target> qmake
- $ mad -t <target> make
<Target> is a meego-core-armv7l-1.1, meego-handset-ia32-1.1 ormeego-netbook-ia32-1.1
3. Check whether the qt-simple application has been created for the target and run file build/qthello.
MADDE can also be used to create runtimes (MeeGo simulation device) and run and debug applications. even if you only want to develop on the real device that runs MeeGo, you do not need to create runtimes.
Use MeeGo toolchain to configure Qt Creator
1. Open Tools> Options> Qt4> Qt Versions.
2. Click "+" on the right of the Qt Versions interface to add a new version.
A blank table appears on the Qt Versions page.
3. In the Version Name line, specify the Name of the new Version.
4. In the qmake location row, specify the directory of the qmake file. Toolchain is installed in usr/lib/madde/linux-i686/targets/<target>/bin/qmake by default.
5. Click Rebuild, Apply, and OK.
SDK Development
If you want to use the MeeGo SDK for development, helloworld is a good choice.
This tutorial includes how to start a project, package and publish it to a device (whether it is a real device or QEMU runtime started through MADDE)
Remove component
- $ sudo apt-get autoremove
On ubuntu
To remove an installed component, run
- $ sudo apt-get remove --purge meego-sdk-qtcreator
- $ sudo apt-get remove --purge madde qt-tools
- $ sudo apt-get remove --purge arm-2009q1
- $ sudo apt-get remove --purge qemu-arm qemu-gl
Remove a trust relationship with the installed components and execute
- $ sudo apt-get autoremove
Delete the MADDE directory
- $ sudo rm -rf /usr/lib/madde
Delete the software packages in your local code library (/var/cache/apt/archives/) and execute
- $ sudo apt-get clean
On openSUSE
Remove the installed component and run
- # zypper remove -u meego-sdk-qt-creator
- # zypper remove -u madde qt-tools
- # zypper remove -u arm-2009q1
- # zypper remove -u qemu-arm qemu-gl
Delete the installed MADDE directory
- # rm -rf /usr/lib/madde