| Line 98: | Line 98: | ||
[[file: build-sim.png|800px]] | [[file: build-sim.png|800px]] | ||
| + | |||
| + | 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: | A sample app running in the Qt Simulator. This app uses a very small C++ model and QML: | ||
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: