(→MeeGo Runtimes) |
|||
| (13 intermediate revisions not shown) | |||
| Line 5: | Line 5: | ||
[[Category:tutorial]] | [[Category:tutorial]] | ||
[[Category:application-developer]] | [[Category:application-developer]] | ||
| - | |||
| - | |||
This page describes how to install and configure the MeeGo 1.2 SDK on your Linux development system. | This page describes how to install and configure the MeeGo 1.2 SDK on your Linux development system. | ||
| Line 55: | Line 53: | ||
The available targets will be listed in the ''Select Components'' window, under ''SDK Targets''. Expand the tree and select the targets you want to install. | The available targets will be listed in the ''Select Components'' window, under ''SDK Targets''. Expand the tree and select the targets you want to install. | ||
| - | == MeeGo Runtimes | + | == MeeGo Runtimes == |
A ''Runtime'' is a MeeGo OS image which runs under QEMU, for debugging applications on your host system. A runtime is a large (~650MB) .bz2 file which is installed with all targets except '''Minimal''' (this just includes a sysroot and toolchain) and '''Desktop Qt''' (just a toolchain for the host OS). | A ''Runtime'' is a MeeGo OS image which runs under QEMU, for debugging applications on your host system. A runtime is a large (~650MB) .bz2 file which is installed with all targets except '''Minimal''' (this just includes a sysroot and toolchain) and '''Desktop Qt''' (just a toolchain for the host OS). | ||
| Line 61: | Line 59: | ||
If you develop against real ia32 hardware running MeeGo, you may only need a Minimal ia32 core target to compile your software for the MeeGo target. | If you develop against real ia32 hardware running MeeGo, you may only need a Minimal ia32 core target to compile your software for the MeeGo target. | ||
| - | See [[SDK/Docs/1.2/ | + | To install a runtime, you should install its associated target using the MeeGo SDK Maintenance tool: see [[#Finding and installing targets|this section]] for instructions. |
| + | |||
| + | See [[SDK/Docs/1.2/Using_a_MeeGo_runtime_with_QEMU|this page]] for more information about using a runtime. | ||
== Configure Qt Creator to use the MeeGo toolchain(s) == | == Configure Qt Creator to use the MeeGo toolchain(s) == | ||
| - | Start Qt Creator by selecting | + | By default, Qt Creator should be configured to use all the toolchains for the targets you installed. However, if you need to manually add configuration for a new target, follow these steps. |
| + | |||
| + | # Start Qt Creator by selecting ''main menu'' > ''MeeGo SDK 1.2'' > ''MeeGo SDK Qt Creator''. | ||
| + | # Go to ''Tools'' > ''Options'' > ''Qt4'' > ''Qt Versions''. | ||
| + | # 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. | ||
| + | # On the ''Version Name'' line, specify a name for the new version. | ||
| + | # On the ''qmake location'' line, specify a qmake location for the new version. The toolchain installs by default to <code>usr/lib/madde/linux-i686/targets/<target>/bin/qmake</code>. | ||
| + | |||
| + | The debugging helpers are not built by default, so you may need to build these for any SDK toolchains you install: | ||
| + | |||
| + | # Select the Qt Version from the list. | ||
| + | # Click ''Rebuild'', ''Apply'' and ''OK''. | ||
| - | + | If this was successful, you should see a green tick next to ''Debugging helpers'', as in the screenshot below: | |
| - | + | [[File:sdk-1.2-qt-creator-adding-meego-toolchains.png|frame|none|Adding MeeGo toolchain(s) in Qt Creator]] | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | Note: If you have a version of Qt on your system already, you may get a ''Qt in Path'' entry in the list of Qt versions. You can use this to compile software for your desktop machine, but you shouldn't use it to compile software for MeeGo. | |
=== Using the MeeGo SDK Qt version === | === Using the MeeGo SDK Qt version === | ||
| Line 92: | Line 99: | ||
== Developing with the SDK == | == Developing with the SDK == | ||
| - | To start developing with the MeeGo SDK, the [[SDK/Docs/1.2/Creating_Hello_World|hello world tutorial]] is a good first step. This tutorial covers how to start a project, package it, and deploy it to a device (either a real device, or a QEMU runtime | + | To start developing with the MeeGo SDK, the [[SDK/Docs/1.2/Creating_Hello_World|hello world tutorial]] is a good first step. This tutorial covers how to start a project, package it, and deploy it to a device (either a real device, or a QEMU runtime). |
This page describes how to install and configure the MeeGo 1.2 SDK on your Linux development system.
Contents |
sudo. For convenience, you may wish to setup sudo capabilities to easily switch between root and normal user privileges (use man sudo in a terminal for more details).
$. Do not enter $ when entering the commands in your terminal.
The MeeGo SDK installer configures a package repository for your specific Linux distribution and installs SDK packages from it. The main packages installed are Qt Creator (IDE), QEMU (emulator) and MADDE (compilation and runtime environment). For convenience, the package installation process is wrapped inside a graphical installer which will run on any of the supported Linux distributions.
Download the graphical installer from: http://sdk.meego.com/installer/Linux/meego-sdk-installer-online-20110519
Run the installer from a terminal:
$ chmod +x meego-sdk-installer-online-20110519 $ ./meego-sdk-installer-online-201100519 --verbose
(--verbose is optional but can be reassuring and helpful if things seem to have gone wrong or failed)
Follow the graphical installer prompts to install the SDK:
Note that it may appear that nothing is happening for a long period of time. Be patient and it should eventually complete.
A Target is used to build programs using the MeeGo toolchain and libraries (sysroot). It is downloaded as a large (~250MB) .bz2 file using the MeeGo SDK maintenance tool. You can use it to install one or more Targets; once installed, you can switch between them in Qt Creator to compile your application for different environments (described later).
Note that if you selected a target as part of SDK installation, you may not need to do this step. However, if at a later date you want to add, remove or otherwise manage targets for the SDK, follow the instructions below.
Use the MeeGo SDK Maintenance GUI to find and install targets.
If you're using a graphical desktop, you can locate this in the menu under MeeGo SDK 1.2 > Maintain MeeGo SDK. (The script to run the GUI is located in $HOME/.config/meego.com/sdk/metadata/MeeGoSDKMaintenanceTool.sh if you don't have a menu system.)
The available targets will be listed in the Select Components window, under SDK Targets. Expand the tree and select the targets you want to install.
A Runtime is a MeeGo OS image which runs under QEMU, for debugging applications on your host system. A runtime is a large (~650MB) .bz2 file which is installed with all targets except Minimal (this just includes a sysroot and toolchain) and Desktop Qt (just a toolchain for the host OS).
If you develop against real ia32 hardware running MeeGo, you may only need a Minimal ia32 core target to compile your software for the MeeGo target.
To install a runtime, you should install its associated target using the MeeGo SDK Maintenance tool: see this section for instructions.
See this page for more information about using a runtime.
By default, Qt Creator should be configured to use all the toolchains for the targets you installed. However, if you need to manually add configuration for a new target, follow these steps.
usr/lib/madde/linux-i686/targets/<target>/bin/qmake.
The debugging helpers are not built by default, so you may need to build these for any SDK toolchains you install:
If this was successful, you should see a green tick next to Debugging helpers, as in the screenshot below:
Note: If you have a version of Qt on your system already, you may get a Qt in Path entry in the list of Qt versions. You can use this to compile software for your desktop machine, but you shouldn't use it to compile software for MeeGo.
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++
To start developing with the MeeGo SDK, the hello world tutorial is a good first step. This tutorial covers how to start a project, package it, and deploy it to a device (either a real device, or a QEMU runtime).