Run MeeGo SDK on mainstream linux systems

Source: Internet
Author: User

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.

 
 
  1. 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

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

3. Update the software package Database

 
 
  1. $ sudo apt-get update 

4. Check that the MeeGo code repository is added to the file tomorrow. For example, use the following command

 
 
  1. $ 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

 
 
  1. # cd /etc/yum.repos.d/ 

2. Add the yum repository of MeeGo SDK

 
 
  1. # 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

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

4. Update the software package Database

 
 
  1. # yum update 

Under MeeGo

Run the following command to install the MeeGo code repository:

 
 
  1. 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:

 
 
  1. 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

 
 
  1. $ sudo apt-get install meego-sdk 

Fedora

 
 
  1. # yum install meego-sdk 

OpenSUSE

 
 
  1. # zypper install meego-sdk 
Commands for ARM

Debian/Ubuntu

 
 
  1. $ sudo apt-get install meego-sdk-armv7l 

Fedora

 
 
  1. # yum install meego-sdk-armv7l 

OpenSUSE

 
 
  1. # zypper install meego-sdk-armv7l 
Commands for Intel Atom

Debian/Ubuntu

 
 
  1. $ sudo apt-get install meego-sdk-ia32 

Fedora

 
 
  1. # yum install meego-sdk-ia32 

OpenSUSE

 
 
  1. # 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.

 
 
  1. http://wiki.meego.com/MeeGo_SDK_Troubleshooting#General_SDK_Errors 

2. Check whether target and toolchain can be found in MADDE.

 
 
  1. $ mad -t <target> pscreate -t qt-simple qthello 
  2. $ cd qthello 
  3. $ mad -t <target> qmake 
  4. $ 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

 
 
  1. $ sudo apt-get autoremove 

On ubuntu

To remove an installed component, run

 
 
  1. $ sudo apt-get remove --purge meego-sdk-qtcreator 
  2. $ sudo apt-get remove --purge madde qt-tools 
  3. $ sudo apt-get remove --purge arm-2009q1 
  4. $ sudo apt-get remove --purge qemu-arm qemu-gl 

Remove a trust relationship with the installed components and execute

 
 
  1. $ sudo apt-get autoremove 

Delete the MADDE directory

 
 
  1. $ sudo rm -rf /usr/lib/madde 

Delete the software packages in your local code library (/var/cache/apt/archives/) and execute

 
 
  1. $ sudo apt-get clean 

On openSUSE

Remove the installed component and run

 
 
  1. # zypper remove -u meego-sdk-qt-creator 
  2. # zypper remove -u madde qt-tools 
  3. # zypper remove -u arm-2009q1 
  4. # zypper remove -u qemu-arm qemu-gl 

Delete the installed MADDE directory

 
 
  1. # rm -rf /usr/lib/madde 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.