source: trunk/doc/src/platforms/emb-install.qdoc

Last change on this file was 865, checked in by Dmitry A. Kuminov, 14 years ago

trunk: Merged in qt 4.7.3 sources from branches/vendor/nokia/qt.

  • Property svn:eol-style set to native
File size: 6.9 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4** All rights reserved.
5** Contact: Nokia Corporation (qt-info@nokia.com)
6**
7** This file is part of the documentation of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:FDL$
10** Commercial Usage
11** Licensees holding valid Qt Commercial licenses may use this file in
12** accordance with the Qt Commercial License Agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in a
14** written agreement between you and Nokia.
15**
16** GNU Free Documentation License
17** Alternatively, this file may be used under the terms of the GNU Free
18** Documentation License version 1.3 as published by the Free Software
19** Foundation and appearing in the file included in the packaging of this
20** file.
21**
22** If you have questions regarding the use of this file, please contact
23** Nokia at qt-info@nokia.com.
24** $QT_END_LICENSE$
25**
26****************************************************************************/
27
28/*!
29 \page qt-embedded-install.html
30
31 \title Installing Qt for Embedded Linux
32 \ingroup qt-embedded-linux
33 \ingroup installation
34 \brief How to install Qt for Embedded Linux.
35
36 This document describes how to install \l{Qt for Embedded Linux} in your
37 development environment:
38
39 \tableofcontents
40
41 Please see the \l{Cross-Compiling Qt for Embedded Linux Applications}{cross
42 compiling} and \l{Deploying Qt for Embedded Linux Applications}{deployment}
43 documentation for details on how to install \l{Qt for Embedded Linux} on
44 your target device.
45
46 Note also that this installation procedure is written for Linux,
47 and that it may need to be modified for other platforms.
48
49 \section1 Step 1: Installing the License File (commercial editions only)
50
51 If you have the commercial edition of \l{Qt for Embedded Linux}, the first step
52 is to install your license file as \c $HOME/.qt-license.
53
54 For the open source version you do not need a license file.
55
56 \section1 Step 2: Unpacking the Archive
57
58 First uncompress the archive in the preferred location, then
59 unpack it:
60
61 \snippet doc/src/snippets/code/doc_src_emb-install.qdoc 0
62
63 This document assumes that the archive is unpacked in the
64 following directory:
65
66 \snippet doc/src/snippets/code/doc_src_emb-install.qdoc 1
67
68 \section1 Step 3: Building the Library
69
70 Before building the \l{Qt for Embedded Linux} library, run the \c
71 ./configure script to configure the library for your development
72 architecture. You can list all of the configuration system's
73 options by typing
74
75 \snippet doc/src/snippets/code/doc_src_emb-install.qdoc embedded help
76
77 Note that by default, \l{Qt for Embedded Linux} is configured for
78 installation in the \c{/usr/local/Trolltech/QtEmbedded-4.7.3}
79 directory, but this can be changed by using the \c{-prefix}
80 option. Alternatively, the \c{-prefix-install} option can be used
81 to specify a "local" installation within the source directory.
82
83 The configuration system is also designed to allow you to specify
84 your platform architecture:
85
86 \snippet doc/src/snippets/code/doc_src_emb-install.qdoc 2
87
88 In general, all Linux systems which have framebuffer support can
89 use the \c generic architecture. Other typical architectures are
90 \c x86, \c arm and \c mips.
91
92 \note If you want to build Qt for Embedded Linux for use with a virtual
93 framebuffer, pass the \c{-qvfb} option to the \c configure
94 script.
95
96 To create the library and compile all the demos, examples, tools,
97 and tutorials, type:
98
99 \snippet doc/src/snippets/code/doc_src_emb-install.qdoc 3
100
101 On some systems the \c make utility is named differently, e.g. \c
102 gmake. The \c configure script tells you which \c make utility to
103 use.
104
105 If you did not configure \l{Qt for Embedded Linux} using the \c{-prefix-install}
106 option, you need to install the library, demos, examples, tools,
107 and tutorials in the appropriate place. To do this, type:
108
109 \snippet doc/src/snippets/code/doc_src_emb-install.qdoc 4
110
111 and enter the root password.
112
113 \note You can use the \c INSTALL_ROOT environment variable to specify
114 the location of the installed files when invoking \c{make install}.
115
116 \section1 Step 4: Adjusting the Environment Variables
117
118 In order to use \l{Qt for Embedded Linux}, the \c PATH variable must be extended
119 to locate \c qmake, \c moc and other \l{Qt for Embedded Linux} tools, and the \c
120 LD_LIBRARY_PATH must be extended for compilers that do not support
121 \c rpath.
122
123 To set the \c PATH variable, add the following lines to your \c
124 .profile file if your shell is bash, ksh, zsh or sh:
125
126 \snippet doc/src/snippets/code/doc_src_emb-install.qdoc 5
127
128 In case your shell is csh or tcsh, add the following line to the
129 \c .login file instead:
130
131 \snippet doc/src/snippets/code/doc_src_emb-install.qdoc 6
132
133 If you use a different shell, please modify your environment
134 variables accordingly.
135
136 For compilers that do not support \c rpath you must also extend
137 the \c LD_LIBRARY_PATH environment variable to include
138 \c /usr/local/Trolltech/QtEmbedded-4.7.3/lib. Note that on Linux
139 with GCC, this step is not needed.
140
141 \section1 Step 5: Building the Virtual Framebuffer
142
143 For development and debugging, \l{Qt for Embedded Linux} provides a virtual
144 framebuffer as well as the option of running \l{Qt for Embedded Linux} as a VNC
145 server. For a description of how to install the virtual
146 framebuffer and how to use the VNC protocol, please consult the
147 documentation at:
148
149 \list
150 \o \l {The Virtual Framebuffer}
151 \o \l {The VNC Protocol and Qt for Embedded Linux}
152 \endlist
153
154 Note that the virtual framebuffer requires a Qt for X11
155 installation. See \l {Installing Qt for X11 Platforms} for details.
156
157 The Linux framebuffer, on the other hand, is enabled by default on
158 all modern Linux distributions. For information on older versions,
159 see \l http://en.tldp.org/HOWTO/Framebuffer-HOWTO.html. To test
160 that the Linux framebuffer is set up correctly, use the program
161 provided by the \l {Testing the Linux Framebuffer} document.
162
163 That's all. \l{Qt for Embedded Linux} is now installed.
164
165 \table 100%
166 \row
167 \o
168 \bold {Customizing the Qt for Embedded Linux Library}
169
170 When building embedded applications on low-powered devices,
171 reducing the memory and CPU requirements is important.
172
173 A number of options tuning the library's performance are
174 available. But the most direct way of saving resources is to
175 fine-tune the set of Qt features that is compiled. It is also
176 possible to make use of accelerated graphics hardware.
177
178 \list
179 \o \l {Fine-Tuning Features in Qt}
180 \o \l {Qt Performance Tuning}
181 \o \l {Adding an Accelerated Graphics Driver to Qt for Embedded Linux}
182 \endlist
183
184 \endtable
185*/
Note: See TracBrowser for help on using the repository browser.