Guide to Configuring and Building Qt Extended
|
Sub-directory | Description |
---|---|
bin | contains binaries and scripts needed to build Qt Extended. |
config.tests | contains configuration tests for external components. |
devices | contains device configuration profiles. |
dist | contains additional fonts for Qt Extended. |
doc | contains the reference documentation. |
examples | contains example applications. |
i18n | contains global translation files. |
qtopiacore/qt | contains the Qt/Embedded (and some X11) source files. |
scripts | contains additional scripts. |
src | contains the Qt Extended source files. |
The following files and scripts are also contained in qt-extended-<version>:
File/Script | Description |
---|---|
LICENSE | a text that describes the license that is applicable to the package. Note: For an evaluation package the LICENSE file will not be available until the configure command has been executed at least once. |
LODI | List Of Deliverable Items, that is, a list of all files that can be found in the package. |
README.html | a basic introduction that guides the user to the help documentation. |
configure | the script that is used to configure Qt Extended. |
The rest of this document needs to refer to the source tree and so assumes that you have set an environment variable as follows:
export QTOPIA_DEPOT_PATH=~/build/qtextended/qt-extended-<version>
While it is possible to build in the source tree it is not recommended. If you build in a separate directory you can easily remove the build without deleting the sources. There is even a facility to make it easier when you are changing code. For this example, we will build in a directory called build:
cd ~/build/qtextended mkdir build
The use of the QPEDIR environment variable is entirely optional. It does not affect the build in any way.
export QPEDIR=~/build/qtextended/build
If you are building on a PC you can most likely skip this step. When building for a device, there are a number device-specific files that Qt Extended requires and there are two ways to handle them:
Classic handling will be familiar to anyone who has built previous versions of Qt Extended. The files for your device are spread across the source tree, so it is recommended to group device-specific files into a Device Profiles to make it easier to manage. The documentation also lists the classic files that are replaced. A description of classic files will not be presented here.
The list of device profiles shipped with Qt Extended can be found here.
Qt Extended has many configuration options. Qt/Embedded has its own set of options. If you are building on a PC you will probably not need to use many of them but they are required when building for a device. Determining which options are required can be difficult.
The following table indicates how to obtain configuration help from the build configuration scripts. Click the links to see the output.
Software | Command |
---|---|
Qt | $QTOPIA_DEPOT_PATH/qtopiacore/qt/configure -help |
Qt Embedded | $QTOPIA_DEPOT_PATH/qtopiacore/qt/configure -embedded -help |
Qt Extended | $QTOPIA_DEPOT_PATH/configure -help |
Here are a few of the configure options that are commonly used. For a complete reference you should see the links above.
configure is run once the correct arguments to use have been determined. A common problem at this stage is that your compiler is not set up correctly and configure dies indicating that your compiler is broken. You can run configure -verbose to obtain detailed information about the test. A common cause is that the compiler is not in the path. If you have a device profile, add the compiler bin directory to the path in the environment file, otherwise you will have to remember to do it manually before running configure.
Note that configure should be run from the build directory. For example:
cd $QPEDIR $QTOPIA_DEPOT_PATH/configure [options]
The list of available device profiles can be found here.
Once Qt Extended is configured, building is just a matter of running bin/qbuild. It is possible that you will receive compile errors if you are not using a GCC-based compiler. If this happens you'll need to modify the code to work with your compiler or try another compiler.
bin/qbuild image sets up the image directory. This directory contains everything required to run Qt Extended (except for external dependencies).
If you did not specify a suitable -image location to configure, you can redirect where the image is placed now by specifying bin/qbuild image IMAGE=/over/there. A complete discussion on how the image, prefix and SDK locations are handled can be found in Image, prefix and SDK location.
For information about running Qt Extended refer to Running Qt Extended.
For application development, you may find the documentation on Creating and using binary SDKs to be helpful.
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 qtextended4.4 | |
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