Meego Wiki
Views

SDK/Docs/1.1/Getting started with the MeeGo SDK for Linux

From MeeGo wiki
< SDK | Docs | 1.1(Difference between revisions)
Jump to: navigation, search
(Install MeeGo Runtime)
 
(48 intermediate revisions not shown)
Line 4: Line 4:
[[Category:application-developer]]
[[Category:application-developer]]
[[Category:linux]]
[[Category:linux]]
-
 
+
This page describes how to install and configure the MeeGo 1.1 SDK on your Linux development system.
-
This page instructs in setting up your MeeGo 1.1 development environment on Linux.
+
== Prerequisites ==
== Prerequisites ==
-
* To use the MeeGo SDK, you should be running a reasonably modern Linux distribution (such as [https://fedoraproject.org/en/index Fedora 13], [http://www.ubuntu.com/ Ubuntu 10.04 LTS], [http://www.opensuse.org/en/ openSUSE 11.3]) on reasonably modern hardware, such as 32-bit Intel Atom or Intel Core 2 CPU.
+
* '''Hardware:''' Any reasonably modern hardware, such as 32-bit Intel Atom or Intel Core 2 CPU.  '''To use QEMU''' to run MeeGo in a virtual machine, your system must have support for ''Virtualization Technology'' (VT).  See the [[SDK/Docs/1.1/MeeGo_SDK_Graphics_Acceleration|Graphics Acceleration]] page for details.
-
* If you intend to [[SDK/Docs/1.1/Configuring QEMU runtimes|use QEMU]], you will get reasonable performance only if your host system has VT support. See [[SDK/Docs/1.1/MeeGo_SDK_Graphics_Acceleration|this page]] for details of how to check your system's capabilities.
+
* '''Software:'''  The MeeGo 1.1 SDK has been validated on 32-bit versions of [https://fedoraproject.org/en/index Fedora 12], [[https://fedoraproject.org/en/index Fedora 13], [http://www.ubuntu.com/ Ubuntu 9.10], and [http://www.ubuntu.com/ Ubuntu 10.04 LTS]. For support status and issues using other host OSs, see [http://wiki.meego.com/SDK/Docs/1.1/MeeGo_1.1_SDK_Host_OS_Support this page].  
-
* To install the necessary components, you need to be logged in as root user:
+
* '''Root privileges:''' To install the SDK, you will need to have root privileges.  Commands that require root privileges are prefaced with "sudo". For convenience, you may wish to set up "sudo" capabilities, to easily switch between root and normal user privileges (see [http://www.gratisoft.us/sudo/sudo.man.html sudoers manpage].)
-
*: <pre>sudo -i</pre>
+
* '''Commands:''' Terminal commands are prefaced with "$".  Do not enter $, when entering the commands in your terminal.
-
*: Give your password when prompted.
+
== Configuring distributions package manager ==
== Configuring distributions package manager ==
-
===On Debian or Ubuntu===
+
=== On Ubuntu or Debian ===
-
# Add the following line to <code>/etc/apt/sources.list</code> file or create a <code>/etc/apt/sources.list.d/meego-sdk.list</code> file containing the following line:
+
==== Add the repo ====
-
#: <pre>deb <nowiki>http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/</nowiki> /</pre>
+
-
#: '''Note:''' replace ${distribution}/${version} pair with one of the following values, depending on your Linux distribution: "debian/5.0", "ubuntu/09.10" or "ubuntu/10.04".
+
-
# Add the repository public key:
+
-
#: <pre># gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A</pre>
+
-
#: <pre># gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -</pre>
+
-
# Update packages database:
+
-
#: <pre># aptitude update</pre>
+
-
# Check that the MeeGo repository has been added to the file with, for example, the following command:
+
-
#: <pre># apt-cache policy madde</pre>
+
-
#: If the repository has been successfully added, the command prints the details of the MADDE package.
+
-
===On Fedora===
+
Add the following line to <code>/etc/apt/sources.list.d/meego-sdk.list</code>.  Replace ${distribution}/${version} with one of the following: "debian/5.0", "ubuntu/09.10", "ubuntu/10.04" or "ubuntu/10.10".
-
# Go to the yum repository directory:
 
-
#:<pre> # cd /etc/yum.repos.d/ </pre>
 
-
# Add the MeeGo SDK yum repository:
 
-
#:<pre> # wget http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo</pre>
 
-
#: '''Note:''' replace ${distribution}/${version} pair with one of the following values, depending on your Linux distribution: "fedora/12" or "fedora/13".
 
-
# Install the signing key:
 
-
#:<pre> # rpm --import http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/repodata/repomd.xml.key </pre>
 
-
# Update packages database:
 
-
#: <pre># yum update</pre>
 
-
===On MeeGo===
+
deb <nowiki>http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/  /</nowiki>
-
To add MeeGo repository, do one of the following:
+
==== Add the repository public key ====
-
* Use the command:
+
$ gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A
-
<pre>
+
$ gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
-
zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo
+
-
</pre>
+
-
'''Note:''' replace ${distribution}/${version} pair with one of the following values, depending on your Linux distribution: "meego/1.1" or "meego/trunk".
+
'''Note:''' The keyserver used above may currently be unresponsive.  If that is the case, you may choose to use a different, trusted keyserver. For example:
-
===On openSUSE===
+
$ gpg --keyserver pool.sks-keyservers.net --recv 0BC7BEC479FC1F8A
 +
$ gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
-
To add MeeGo repository, do one of the following:
+
==== Update the packages database ====
-
* Use the command:
+
$ sudo apt-get update
-
<pre>
+
-
zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo
+
-
</pre>
+
-
'''Note:''' replace ${distribution}/${version} pair with one of the following values, depending on your Linux distribution: "opensuse/11.2" or "opensuse/11.3".
+
==== Verify repo correctness ====
-
== Installing MeeGo SDK ==
+
To check that the MeeGo repository has been correctly added, run the following command. The details of the MADDE package should be printed.
-
=== Install the whole MeeGo SDK ===
+
$ apt-cache policy madde
-
* Debian / Ubuntu
+
=== On Fedora ===
-
*: <pre># aptitude install meego-sdk</pre>
+
 
-
* Fedora
+
==== Add the repo ====
-
*: <pre># yum install meego-sdk</pre>
+
 
-
* OpenSUSE
+
Add the MeeGo SDK yum repository.  Replace ${distribution}/${version} with one of the following: "fedora/12" or "fedora/13".
-
*: <pre># zypper install meego-sdk</pre>
+
 
 +
$ cd /etc/yum.repos.d/
 +
$ <nowiki>sudo wget http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo</nowiki>
 +
 
 +
==== Install the signing key ====
 +
 
 +
$ <nowiki>sudo rpm --import http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/repodata/repomd.xml.key</nowiki>
 +
 
 +
==== Update the packages database ====
 +
 
 +
$ sudo yum update
 +
 
 +
=== On MeeGo ===
 +
 
 +
To add the MeeGo SDK repository on a system running MeeGo, run the following command.  Replace ${distribution}/${version} with one of the following values: "meego/1.1" or "meego/trunk".
 +
 
 +
$ <nowiki>sudo zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo</nowiki>
 +
 
 +
=== On openSUSE ===
 +
 
 +
To add the MeeGo repository, run the following command.  Replace ${distribution}/${version} with one of the following values: "opensuse/11.2" or "opensuse/11.3".
 +
 
 +
$ <nowiki>sudo zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo</nowiki>
 +
 
 +
== Installing the MeeGo SDK ==
 +
<ul>
 +
<li>Debian / Ubuntu
 +
<pre>$ sudo apt-get install meego-sdk</pre>
 +
</li>
 +
<li>Fedora
 +
<pre>$ sudo yum install meego-sdk</pre>
 +
</li>
 +
<li>OpenSUSE / MeeGo
 +
<pre>$ sudo zypper install meego-sdk</pre>
 +
</li>
 +
</ul>
'''For ARM only:'''
'''For ARM only:'''
-
* Debian / Ubuntu
+
<ul>
-
*: <pre># aptitude install meego-sdk-armv7l</pre>
+
<li>Debian / Ubuntu
-
* Fedora
+
<pre>$ sudo apt-get install meego-sdk-armv7l</pre>
-
*: <pre># yum install meego-sdk-armv7l</pre>
+
</li>
-
* OpenSUSE
+
<li>Fedora
-
*: <pre># zypper install meego-sdk-armv7l</pre>
+
<pre>$ sudo yum install meego-sdk-armv7l</pre>
 +
</li>
 +
<li>OpenSUSE / MeeGo
 +
<pre>$ sudo zypper install meego-sdk-armv7l</pre>
 +
</li>
 +
</ul>
-
'''For IA32 only:'''
+
'''For IA32 only:'''[[SDK/Docs/1.1/Configuring_QEMU_runtimes]]
-
* Debian / Ubuntu
+
<ul>
-
*: <pre># aptitude install meego-sdk-ia32</pre>
+
<li>Debian / Ubuntu
-
* Fedora
+
<pre>$ sudo apt-get install meego-sdk-ia32</pre>
-
*: <pre># yum install meego-sdk-ia32</pre>
+
</li>
-
* OpenSUSE  
+
<li>Fedora
-
*: <pre># zypper install meego-sdk-ia32</pre>
+
<pre>$ sudo yum install meego-sdk-ia32</pre>
 +
</li>
 +
<li>OpenSUSE / MeeGo
 +
<pre>$ sudo zypper install meego-sdk-ia32</pre>
 +
</li>
 +
</ul>
-
=== Install MeeGo SDK components individually ===
+
== Install MeeGo Target ==
 +
A ''Target'' is used to build programs using the MeeGo toolchain and libraries (sysroot).  It is downloaded as a large (~250 MB) .bz2 file using the commands below.  MADDE (MeeGo Application Develop and Debug Environment ([http://wiki.maemo.org/MADDE background])) is a tool that assists in the download and installation of the Target.  "mad-admin" is the MADDE command-line tool.  You can install multiple Targets and switch easily between them in Qt Creator (described later).
-
'''Installing Qt Creator:'''
+
=== Determine the target you want to use ===
-
* On Ubuntu:
+
Run the command below.  The available targets will be listed under the "Targets:" heading.
-
*: <pre># aptitude install meego-sdk-qtcreator</pre>
+
-
*: When prompted, verify (yes).
+
-
* On openSUSE/MeeGo:
+
-
*: <pre># zypper install meego-sdk-qt-creator</pre>
+
-
* On Fedora:
+
-
*: <pre># yum install meego-sdk-qt-creator</pre>
+
-
'''Installing MADDE:'''
+
$ sudo mad-admin list
-
* On Ubuntu:
+
Some hints about the target prefixes:
-
*: <pre># aptitude install madde qt-tools</pre>
+
-
* On openSUSE/MeeGo:
+
-
*: <pre># zypper install madde qt-tools</pre>
+
-
* On Fedora:
+
-
*: <pre># yum install madde qt-tools</pre>
+
-
'''Installing toolchain(s):'''
+
* ''meego-core-armv7l'':  Build applications for ARM handheld devices (such as N900)
 +
* ''meego-handset-ia32'': Build applications for x86 handheld devices (such as Aava)
 +
* ''meego-netbook-ia32'': Build applications for x86 netbooks.
-
For ARM:
+
=== Create the target ===
-
* On Ubuntu:
+
-
*: <pre># aptitude install arm-2009q1</pre>
+
-
* On openSUSE/MeeGo:
+
-
*: <pre># zypper install arm-2009q1</pre>
+
-
* On Fedora:
+
-
*: <pre># yum install arm-2009q1</pre>
+
-
For IA32:
+
Run the command below.  Replace <target> with the target you determined in the previous step.  Note that the <code>-f</code> flag instructs MADDE to download the Target tarball (bz2) first.
-
* On Ubuntu:
+
-
*: <pre># aptitude install meego-sdk-i586-toolchain</pre>
+
-
* On openSUSE/MeeGo:
+
-
*: <pre># zypper install meego-sdk-i586-toolchain</pre>
+
-
* On Fedora:
+
-
*: <pre># yum install meego-sdk-i586-toolchain</pre>
+
 +
$ sudo mad-admin create -f <target>
-
'''Installing QEMU:'''
+
If you encounter problems, check the [[MeeGo_SDK_Troubleshooting#General_SDK_Errors|troubleshooting page]].
-
QEMU is available separately for ARM (<code>qemu-arm</code>) and IA32 (<code>qemu-gl</code>) architectures.
+
=== Verify target installation ===
-
To install both QEMUs:
+
To check that the target has been installed correctly, run the following.  Replace <target> with the same value used in the previous step.
-
* On Ubuntu:
+
-
*: <pre>aptitude install qemu-arm qemu-gl</pre>
+
-
* On openSUSE/MeeGo:
+
-
*: <pre>zypper install qemu-arm qemu-gl</pre>
+
-
* On Fedora:
+
-
*: <pre>yum install qemu-arm qemu-gl</pre>
+
-
== Creating and testing a target with MADDE ==
+
$ mad -t <target> pscreate -t qt-simple qthello
 +
$ cd qthello
 +
$ mad -t <target> qmake
 +
$ mad -t <target> make
-
# Create MeeGo target in MADDE:
+
Note: Running qmake will print "-unix is deprecated". This is not an error with the compilation. You can safely ignore this for now.
-
#: <pre># mad-admin create -f <target> </pre>
+
-
#:Where <target> is '''meego-core-armv7l-1.1''' , '''meego-handset-ia32-1.1''' or '''meego-netbook-ia32-1.1'''. Note that the <code>-f</code> flag instructs MADDE to download and install the appropriate sysroot tarball first.If you counter some problems,you can get a solution from http://wiki.meego.com/MeeGo_SDK_Troubleshooting#General_SDK_Errors
+
-
# To check that target and toolchain are found in MADDE:
+
-
#: <pre>$ mad -t <target> pscreate -t qt-simple qthello</pre>
+
-
#: <pre>$ cd qthello</pre>
+
-
#: <pre>$ mad -t <target> qmake</pre>
+
-
#: <pre>$ mad -t <target> make</pre>
+
-
#:Where <target> is '''meego-core-armv7l-1.1''' , '''meego-handset-ia32-1.1''' or '''meego-netbook-ia32-1.1'''
+
-
# To check that the qt-simple application is created for the correct target, run:
+
-
#: <pre>file build/qthello</pre>
+
-
MADDE can also be used to create ''runtimes'' (emulated MeeGo devices) for running and debugging applications. However, you are not required to create runtimes if you only intend to develop against real hardware running MeeGo.
+
=== Verify correct build ===
 +
 
 +
To check that the qt-simple application is created for the correct target, run the following command, and verify the output.
 +
 
 +
$ file build/qthello
 +
 
 +
== Install MeeGo Runtime ==
 +
A ''Runtime'' is the MeeGo OS image that is run with QEMU when debugging applications on your host system. It is not required if you develop against real hardware running MeeGo. It is downloaded as a large (~650 MB) .bz2 file using MADDE.  The Runtime is not needed until you have finished configuring Qt Creator.  However, as this step may take some time, it is recommended to start it now so that it can proceed in the background, while you continue following the steps on this page.
 +
 
 +
See [[SDK/Docs/1.1/Configuring_QEMU_runtimes|Downloading a Runtime and Using QEMU]]
== Configuring Qt Creator to use the MeeGo toolchain(s) ==
== Configuring Qt Creator to use the MeeGo toolchain(s) ==
Line 173: Line 170:
[[File:Qt Creator adding MeeGo toolchains.png|frame|none|Adding the MeeGo toolchain(s) in Qt Creator]]
[[File:Qt Creator adding MeeGo toolchains.png|frame|none|Adding the MeeGo toolchain(s) in Qt Creator]]
 +
 +
=== Using the MeeGo SDK Qt version ===
 +
 +
It is also possible to use Qt Creator without a MeeGo toolchain. This option can be useful if you don't need to cross-compile your software: for example, if you are doing QML development with no use of C++.
 +
 +
The steps are the same as above, but the '''qmake location''' is set to the <code>qmake</code> installed with the meego-sdk-qt libraries. The usual location for this on Linux is:
 +
 +
$ /opt/meego/meego-sdk-qt/bin/qmake
 +
 +
Note: On Ubuntu 10.10, you may need to install g++ in order for this step to work. If necessary, do this:
 +
 +
$ sudo apt-get install g++
== Developing with the SDK ==
== Developing with the SDK ==
Line 185: Line 194:
To remove installed components, run:
To remove installed components, run:
-
 
+
  $ 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
-
  # aptitude purge meego-sdk-qtcreator
+
-
 
+
-
# aptitude purge madde qt-tools
+
-
 
+
-
# aptitude purge arm-2009q1
+
-
 
+
-
# aptitude purge qemu-arm qemu-gl
+
To remove dependencies related to installed components, run:
To remove dependencies related to installed components, run:
-
  # aptitude autoremove
+
  $ sudo apt-get autoremove
-
To remove MADDE directory:
+
To remove MADDE directory (it is not automatically removed when "madde" package is uninstalled):
-
  # rm -rf /usr/lib/madde
+
  $ sudo rm -rf /usr/lib/madde
To remove the packages from your local repository (<code>/var/cache/apt/archives/</code>), run:
To remove the packages from your local repository (<code>/var/cache/apt/archives/</code>), run:
-
  # aptitude clean
+
  $ sudo apt-get clean
-
=== On openSUSE ===
+
=== On Fedora ===
To remove installed components, run:
To remove installed components, run:
 +
$ sudo yum remove meego-sdk-qt-creator madde qt-tools arm-2009q1 qemu-arm qemu-gl meego-sdk-i586-toolchain meego-qemu
-
  # zypper remove -u meego-sdk-qt-creator
+
To remove MADDE directory:
 +
  $ sudo rm -rf /usr/lib/madde
-
# zypper remove -u madde qt-tools
 
-
# zypper remove -u arm-2009q1
+
=== On openSUSE / MeeGo ===
-
  # zypper remove -u qemu-arm qemu-gl
+
To remove installed components, run:
 +
  $ sudo zypper remove -u meego-sdk-qt-creator madde qt-tools arm-2009q1 qemu-arm qemu-gl meego-sdk-i586-toolchain meego-qemu
To remove MADDE directory:
To remove MADDE directory:
-
  # rm -rf /usr/lib/madde
+
  $ sudo rm -rf /usr/lib/madde
 +
 
 +
== Another language version of this page ==
 +
 
 +
* [[SDK/Docs/1.1/Memulai_dengan_SDK_MeeGo_untuk_Linux|Memulai dengan SDK Meego untuk Linux - Bahasa Indonesia]]
 +
* [[SDK/Docs/1.1/在Linux平台开发进行MeeGo_SDK开发|在Linux平台进行MeeGo_SDK开发 - 简体中文]]

Latest revision as of 21:10, 21 June 2011

This page describes how to install and configure the MeeGo 1.1 SDK on your Linux development system.

Contents

Prerequisites

  • Hardware: Any reasonably modern hardware, such as 32-bit Intel Atom or Intel Core 2 CPU. To use QEMU to run MeeGo in a virtual machine, your system must have support for Virtualization Technology (VT). See the Graphics Acceleration page for details.
  • Software: The MeeGo 1.1 SDK has been validated on 32-bit versions of Fedora 12, [Fedora 13, Ubuntu 9.10, and Ubuntu 10.04 LTS. For support status and issues using other host OSs, see this page.
  • Root privileges: To install the SDK, you will need to have root privileges. Commands that require root privileges are prefaced with "sudo". For convenience, you may wish to set up "sudo" capabilities, to easily switch between root and normal user privileges (see sudoers manpage.)
  • Commands: Terminal commands are prefaced with "$". Do not enter $, when entering the commands in your terminal.

Configuring distributions package manager

On Ubuntu or Debian

Add the repo

Add the following line to /etc/apt/sources.list.d/meego-sdk.list. Replace ${distribution}/${version} with one of the following: "debian/5.0", "ubuntu/09.10", "ubuntu/10.04" or "ubuntu/10.10".


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

Add the repository public key

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

Note: The keyserver used above may currently be unresponsive. If that is the case, you may choose to use a different, trusted keyserver. For example:

$ gpg --keyserver pool.sks-keyservers.net --recv 0BC7BEC479FC1F8A
$ gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -

Update the packages database

$ sudo apt-get update

Verify repo correctness

To check that the MeeGo repository has been correctly added, run the following command. The details of the MADDE package should be printed.

$ apt-cache policy madde

On Fedora

Add the repo

Add the MeeGo SDK yum repository. Replace ${distribution}/${version} with one of the following: "fedora/12" or "fedora/13".

$ cd /etc/yum.repos.d/
$ sudo wget http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo

Install the signing key

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

Update the packages database

$ sudo yum update

On MeeGo

To add the MeeGo SDK repository on a system running MeeGo, run the following command. Replace ${distribution}/${version} with one of the following values: "meego/1.1" or "meego/trunk".

$ sudo zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo

On openSUSE

To add the MeeGo repository, run the following command. Replace ${distribution}/${version} with one of the following values: "opensuse/11.2" or "opensuse/11.3".

$ sudo zypper addrepo -f http://repo.meego.com/MeeGo/sdk/host/repos/${distribution}/${version}/meego-sdk.repo

Installing the MeeGo SDK

  • Debian / Ubuntu
    $ sudo apt-get install meego-sdk
  • Fedora
    $ sudo yum install meego-sdk
  • OpenSUSE / MeeGo
    $ sudo zypper install meego-sdk

For ARM only:

  • Debian / Ubuntu
    $ sudo apt-get install meego-sdk-armv7l
  • Fedora
    $ sudo yum install meego-sdk-armv7l
  • OpenSUSE / MeeGo
    $ sudo zypper install meego-sdk-armv7l

For IA32 only:SDK/Docs/1.1/Configuring_QEMU_runtimes

  • Debian / Ubuntu
    $ sudo apt-get install meego-sdk-ia32
  • Fedora
    $ sudo yum install meego-sdk-ia32
  • OpenSUSE / MeeGo
    $ sudo zypper install meego-sdk-ia32

Install MeeGo Target

A Target is used to build programs using the MeeGo toolchain and libraries (sysroot). It is downloaded as a large (~250 MB) .bz2 file using the commands below. MADDE (MeeGo Application Develop and Debug Environment (background)) is a tool that assists in the download and installation of the Target. "mad-admin" is the MADDE command-line tool. You can install multiple Targets and switch easily between them in Qt Creator (described later).

Determine the target you want to use

Run the command below. The available targets will be listed under the "Targets:" heading.

$ sudo mad-admin list

Some hints about the target prefixes:

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

Create the target

Run the command below. Replace <target> with the target you determined in the previous step. Note that the -f flag instructs MADDE to download the Target tarball (bz2) first.

$ sudo mad-admin create -f <target>

If you encounter problems, check the troubleshooting page.

Verify target installation

To check that the target has been installed correctly, run the following. Replace <target> with the same value used in the previous step.

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

Note: Running qmake will print "-unix is deprecated". This is not an error with the compilation. You can safely ignore this for now.

Verify correct build

To check that the qt-simple application is created for the correct target, run the following command, and verify the output.

$ file build/qthello

Install MeeGo Runtime

A Runtime is the MeeGo OS image that is run with QEMU when debugging applications on your host system. It is not required if you develop against real hardware running MeeGo. It is downloaded as a large (~650 MB) .bz2 file using MADDE. The Runtime is not needed until you have finished configuring Qt Creator. However, as this step may take some time, it is recommended to start it now so that it can proceed in the background, while you continue following the steps on this page.

See Downloading a Runtime and Using QEMU

Configuring Qt Creator to use the MeeGo toolchain(s)

Start Qt Creator by selecting Applications > Programming > Qt Creator.

Configure Qt Creator to use the MeeGo toolchain(s):

  1. Go to Tools > Options > Qt4 > Qt Versions.
  2. On the right side of the Qt Versions view, click on the plus sign button to add a new version.
    A blank, new version appears in the Qt Versions view.
  3. On the Version Name line, specify a name for the new version.
  4. On the qmake location line, specify a qmake location for the new version. The toolchain installs by default to usr/lib/madde/linux-i686/targets/<target>/bin/qmake.
  5. Click Rebuild, Apply and OK.
Adding the MeeGo toolchain(s) in Qt Creator

Using the MeeGo SDK Qt version

It is also possible to use Qt Creator without a MeeGo toolchain. This option can be useful if you don't need to cross-compile your software: for example, if you are doing QML development with no use of C++.

The steps are the same as above, but the qmake location is set to the qmake installed with the meego-sdk-qt libraries. The usual location for this on Linux is:

$ /opt/meego/meego-sdk-qt/bin/qmake

Note: On Ubuntu 10.10, you may need to install g++ in order for this step to work. If necessary, do this:

$ sudo apt-get install g++

Developing with the SDK

To start developing with the MeeGo SDK, the hello world tutorial is a good starting point.

This tutorial covers how to start a project, package it, and deploy it to a device (either a real device, or a QEMU runtime set up through MADDE).

Removing components

On Ubuntu

To remove installed components, run:

$ 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

To remove dependencies related to installed components, run:

$ sudo apt-get autoremove

To remove MADDE directory (it is not automatically removed when "madde" package is uninstalled):

$ sudo rm -rf /usr/lib/madde

To remove the packages from your local repository (/var/cache/apt/archives/), run:

$ sudo apt-get clean

On Fedora

To remove installed components, run:

$ sudo yum remove meego-sdk-qt-creator madde qt-tools arm-2009q1 qemu-arm qemu-gl meego-sdk-i586-toolchain meego-qemu

To remove MADDE directory:

$ sudo rm -rf /usr/lib/madde


On openSUSE / MeeGo

To remove installed components, run:

$ sudo zypper remove -u meego-sdk-qt-creator madde qt-tools arm-2009q1 qemu-arm qemu-gl meego-sdk-i586-toolchain meego-qemu

To remove MADDE directory:

$ sudo rm -rf /usr/lib/madde

Another language version of this page

Personal tools