Installation Guide
|
API | Dependency | compile time | runtime |
---|---|---|---|
Messaging | The 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. | N | Y |
Contacts | The 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. | Y | N |
Service Framework | The 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-sqlite | N | Y |
Multimedia | The 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. | Y | N |
Location | The 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 Information | The 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 & Subscribe | The Maemo 6 backend depends on Context Kit | Y | N |
Bearer Management | The Linux backend depends on QtDBus and NetworkManager, although Bearer Management will compile without them there will be reduced functionality. | N(Y) | N |
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.
Ensure that all compile time dependencies for your particular platform have been met before building.
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.
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
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
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.
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 ! |
Copyright © 2000-2012 - www.developpez.com