Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

Installation Guide

Get the Qt Mobility API Package

To begin, obtain the most recent distrubution package from http://get.qt.nokia.com

Pre-requisites & Dependencies

To install Qt Mobility you must already have installed Qt 4.6 or higher, visit http://get.qt.nokia.com to obtain a copy.

Qt Mobility Project APIs are comprised of a number of domains. Some of these domains have dependencies and these are outlined below:

APIDependencycompile timeruntime
MessagingThe linux backend depends on QMF. For more information on QMF visit QMF Labs article

The Windows Mobile backend depends on ActiveSync version 4.5.

While not supported for this release the Windows Desktop backend requires Microsoft Outlook 2003 or later, and Microsoft Windows XP to be installed.

The messaging API SMS/MMS functionality requires that the platform provides SMS/MMS facilites. Email functionality requires that an email account is available on the platform.

NY
ContactsThe Maemo 6 backend depends on libqttracker. For more information on libqttracker visit libqttracker public repository. Other components offered by the Maemo 6 platform may be required in order to support the full functionality of the Maemo 6 backend.YN
Service FrameworkThe Service Framework depends on SQLite version 3 and that Qt has been built with an sqlite driver. Building the driver by Qt is most easily achieved by using one of the following configure options: -qt-sql-sqlite, -plugin-sql-sqlite or -system-sqliteNY
MultimediaThe Multimedia component depends on the QtMultimedia module in Qt. Qt by default is configured to make this module with the -multimedia option.

The linux X11 backend requires that gstreamer be installed, including libgstreamer, gstreamer-devel, plugins-base and plugins-good packages. The linux backend was tested with gstreamer 0.10.19 and newer versions.

YN
LocationThe Symbian backend uses the LBT (Location Based Triggering) library for area notifications. Area notifications will be disabled at compile time if the LBT library is not found.

The LBT library is not publicly available at the time of writing. The developer documentation for S60 Location Services is probably the best source for LBT availability updates, as it will be updated when the library is relased.

N(Y)N
System InformationThe Linux backend depands on QtDBus, HAL and NetworkManager, although System Information will compile without them, there will be reduced functionality.

On Mac OS X, System Information depends on the 10.6 SDK (XCode 3.2.1), although it will compile with older SDK's there will be reduced functionality.

N(Y)N
Publish & SubscribeThe Maemo 6 backend depends on Context KitYN
Bearer ManagementThe Linux backend depends on QtDBus and NetworkManager, although Bearer Management will compile without them there will be reduced functionality.N(Y)N

Unpacking

Unpack the Qt Mobility archive if you have not done so already, on Unix (X11 and Mac):

    cd /tmp
    gunzip %DISTNAME%.tar.gz        #uncompress the archive
    tar xvf %DISTNAME%.tar          #unpack it

This creates the directory /tmp/%DISTNAME% containing the files from the archive. We only support the GNU version of the tar archiving utility. Note on some systems it is called gtar.

On windows, uncompress the zip file into the directory you want Qt Mobility Project installed, extracting to C:\QtMobility will create the directory C:\QtMobility\%DISTNAME%

NOTE: The install path must not contain any spaces.

Building

Ensure that all compile time dependencies for your particular platform have been met before building.

Building On Unix

To configure the Qt Mobility libraries for your machine, run the ./configure script in the package directory.

To specify the installation directory you may use the -prefix option. Not passing a prefix installs the mobility libraries into $PWD/install.

    cd /tmp/%DISTNAME%
    ./configure -prefix $TARGET_DIR

Type ./configure -help to get a list of all available options. If you are building for maemo you need to use the -maemo option with configure.

To create all the libraries and tools, type:

    make

To install the libraries and tools to $TARGET_DIR, type:

    make install

If you have specified an install directory with root ownership, you will need to type:

    su -c "make install"
        or
    sudo make install

and enter in the appropriate password.

Note that on some systems the make utility is named differently, e.g. gmake. The configure script tells you which make utility to use.

Building On Windows

To configure the Qt Mobility libraries for your machine, run configure in the package directory.

To specify the installation directory you may use the -prefix option. Not passing a prefix installs the mobility libraries into an install directory within the current working directory.

        cd c:\QtMobility\%DISTNAME%
        configure -prefix %TARGET_DIR%

Type configure -help to get a list of all available options.

The actual commands needed to build and install Qt Mobility depends on your development system. For Microsoft Visual Studio to create and install the libraries and tools type:

    nmake
    nmake install

Building Individual Qt Mobility Domains

Qt Mobility is comprised of several domains but all of these may not need to be built. To build a single domain, perform the configure step as outlined above, and then perform the make step in the appropriate directory to create the desired library.

The directory structure will look something like

    ./src/bearer
    ./src/contacts
    ...
    ./src/systeminfo

e.g. To build bearer on Unix:

    cd ./src/bearer
    make
    make install

or on Windows:

    cd src\bearer
    nmake
    nmake install

Environment Variables

In order to use QtMobility some environment variables need to be extended to locate the libraries, which are placed in the lib directory of the install path.

On Unix: LD_LIBRARY_PATH should be extended to include: $TARGET_DIR/lib

In .profile (if your Unix shell is bash,ksh,zsh or sh), add the following lines

    LD_LIBRARY_PATH=$TARGET_DIR/lib:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH

In .login (incase your shell is csh or tcsh), add the following line:

    setenv LD_LIBRARY_PATH=$TARGET_DIR/lib:$LD_LIBRARY_PATH

If you use a different Unix shell, please modify your your environment variables accordingly.

On Windows: PATH should be extended to include: C:\%TARGET_DIR%\lib

For newer versions of windows, PATH can be extended through "Start->Settings->Control Panel->System->Advanced-> Environment variables" and for older versions by editing C:\autoexec.bat

And now the installation is complete, we hope you enjoy using Qt Mobility.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 49
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 16
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le blog Digia au hasard

Logo

Déploiement d'applications Qt Commercial sur les tablettes Windows 8

Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.0-tp
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web