(Created page with "== Using the Qt Simulator for MeeGo Development == There are a number of ways to develop applications for MeeGo devices * On Windows or Linux desktop with a hardware device att...") |
|||
| (3 intermediate revisions not shown) | |||
| Line 11: | Line 11: | ||
This post will describe the advantages and disadvantages of using the Qt Simulator for MeeGo development. | This post will describe the advantages and disadvantages of using the Qt Simulator for MeeGo development. | ||
| - | There is a | + | There is a limited set of applications that could take advantage of the Qt Simulator - especially on Windows platforms. |
After reading the two sections below on which MeeGo apps can and can't be developed with the Qt Simulator, you can make a decision on wether to use it. If so, there is a tutorial on how to use it. | After reading the two sections below on which MeeGo apps can and can't be developed with the Qt Simulator, you can make a decision on wether to use it. If so, there is a tutorial on how to use it. | ||
| Line 21: | Line 21: | ||
* You do NOT need to use meegolabs.ux.components or meego.ux.components (see disadvantages below) | * You do NOT need to use meegolabs.ux.components or meego.ux.components (see disadvantages below) | ||
| + | |||
| + | * You are developing a QML component to be used in other MeeGo applications (like a file browser component) | ||
* If your application under development needs to read or write data to the MeeGo infrastructure, you can create a temporary model for you application to isolate it | * If your application under development needs to read or write data to the MeeGo infrastructure, you can create a temporary model for you application to isolate it | ||
| Line 97: | Line 99: | ||
[[file: build-sim.png|800px]] | [[file: build-sim.png|800px]] | ||
| - | A sample app | + | You may also create or open a new project and choose your targets: |
| + | |||
| + | [[file: sim-open-project.png|800px]] | ||
| + | |||
| + | === Running the Simulator === | ||
| + | |||
| + | Choose the Simulator target in the Projects tool, or in the Target Chooser (above the Green Run button) | ||
| + | |||
| + | Run... | ||
| + | |||
| + | A sample app running in the Qt Simulator. This app uses a very small C++ model and QML: | ||
| + | |||
| + | [[file: sim-meego-control.png]] | ||
| + | [[file: sim-meego-skin.png|800px]] | ||
There are a number of ways to develop applications for MeeGo devices
This post will describe the advantages and disadvantages of using the Qt Simulator for MeeGo development.
There is a limited set of applications that could take advantage of the Qt Simulator - especially on Windows platforms.
After reading the two sections below on which MeeGo apps can and can't be developed with the Qt Simulator, you can make a decision on wether to use it. If so, there is a tutorial on how to use it.
such as:
Since this component hasn't been ported to the Qt Simulator environment, it can't be simulated by the Qt Simulator.
Application developers will need a work-around to this if they are going to use either meegolabs-ux-components or meego-ux-components.
It's a known issue that dbus doesn't work on Qt Simulator.
http://bugreports.qt.nokia.com/browse/QTSIM-12
One look at the .pro file for MeeGo.Labs.Components reveals that this app must be developed on a Linux platform, Emulated with QEMU or directly.
TEMPLATE = lib
TARGET = Components
QT += declarative \
network \
dbus \
sql
CONFIG += qt \
plugin \
dbus \
link_pkgconfig \
mobility
PKGCONFIG += gconf-2.0 \
qmfmessageserver \
qmfclient \
libpulse \
libpulse-mainloop-glib \
libexif \
libkcalcoren \
mlite \
xdamage \
QtPublishSubscribe \
contextsubscriber-1.0
One advantage of using the Qt Simulator is that it will run on Windows and Linux 64 bit platforms.
To install, simply check the appropriate Simulator Qt 4.7.2 checkbox in the "Select Components" screen of the SDK installer.
The Simulator will require an additional 1.2 Gig on your development workstation. Less (550 Meg) if you install on Windows and already have Visual Studio 2008 installed.
Note: On Windows, the MeeGo SDK with one target installed, QEMU, Qt Simulator and the Mingw development environment (Microsoft Visual Studio not installed) takes approx 6.5 Gig of disk space.
In your Project tool in Qt Creator, you would click the '+' in the Project Chooser (top) to add a Qt Simulator target. If the Qt Simulator wasn't installed, it won't be an option when clicking the '+'
You may also create or open a new project and choose your targets:
Choose the Simulator target in the Projects tool, or in the Target Chooser (above the Green Run button)
Run...
A sample app running in the Qt Simulator. This app uses a very small C++ model and QML: