(→Install a MeeGo Target) |
(→Install a MeeGo Runtime (optional)) |
||
| Line 78: | Line 78: | ||
A Runtime is not required if you develop against real hardware running MeeGo. Even if you do require a Runtime, you won't need it until you have finished configuring Qt Creator. However, as this step may take some time, it is recommended that you start it now so it can run in the background while you finish installing the SDK. | A Runtime is not required if you develop against real hardware running MeeGo. Even if you do require a Runtime, you won't need it until you have finished configuring Qt Creator. However, as this step may take some time, it is recommended that you start it now so it can run in the background while you finish installing the SDK. | ||
| - | See [[SDK/Docs/1.2/ | + | See [[SDK/Docs/1.2/Configuring_QEMU|Downloading a Runtime and Using QEMU]]. |
== Configure Qt Creator to use the MeeGo toolchain(s) == | == Configure Qt Creator to use the MeeGo toolchain(s) == | ||
This page is in progress and is likely to contain incorrect instructions at present -- Elliot Smith 11:24, 4 May 2011 (UTC)
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://s3.amazonaws.com/MeeGoSDK/installer/Linux/meego-sdk-installer-online-20110503
Run the installer from a terminal:
$ chmod +x meego-sdk-installer-online-20110503 $ ./meego-sdk-installer-online-201100503 --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 maintenance tool to display the list of available targets
The available targets will be listed under the ???: heading.
A hint about the build environment is provided by the target prefix; for example:
???use the UI
???wait until you're in Qt Creator?
???again, from Qt Creator
A Runtime is the MeeGo OS image which runs under QEMU, for debugging applications on your host system. A runtime is a large (~650MB) .bz2 file which you download with MADDE.
A Runtime is not required if you develop against real hardware running MeeGo. Even if you do require a Runtime, you won't need it until you have finished configuring Qt Creator. However, as this step may take some time, it is recommended that you start it now so it can run in the background while you finish installing the SDK.
See Downloading a Runtime and Using QEMU.
Start Qt Creator by selecting main menu > MeeGo SDK 1.2 > MeeGo SDK Qt Creator.
Next, configure Qt Creator to use the MeeGo toolchain(s):
usr/lib/madde/linux-i686/targets/<target>/bin/qmake.
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 set up through MADDE).