1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information ([email protected])
|
---|
5 | **
|
---|
6 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
7 | **
|
---|
8 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
9 | ** Commercial Usage
|
---|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
11 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
12 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
13 | ** a written agreement between you and Nokia.
|
---|
14 | **
|
---|
15 | ** GNU Lesser General Public License Usage
|
---|
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
17 | ** General Public License version 2.1 as published by the Free Software
|
---|
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
19 | ** packaging of this file. Please review the following information to
|
---|
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
22 | **
|
---|
23 | ** In addition, as a special exception, Nokia gives you certain
|
---|
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
---|
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
---|
26 | ** package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you are unsure which license is appropriate for your use, please
|
---|
37 | ** contact the sales department at [email protected].
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | /****************************************************************************
|
---|
43 | ** Please remember to update the corresponding INSTALL files.
|
---|
44 | ****************************************************************************/
|
---|
45 |
|
---|
46 | /*!
|
---|
47 | \group installation
|
---|
48 | \title Installation
|
---|
49 | \ingroup buildsystem
|
---|
50 | \ingroup topics
|
---|
51 | \brief Installing Qt on supported platforms.
|
---|
52 |
|
---|
53 | The installation procedure is different on each Qt platform.
|
---|
54 | Please follow the instructions for your platform from the following list.
|
---|
55 |
|
---|
56 | \generatelist{related}
|
---|
57 | */
|
---|
58 |
|
---|
59 | /*! \page install-x11.html
|
---|
60 | \title Installing Qt on X11 Platforms
|
---|
61 | \ingroup installation
|
---|
62 | \brief How to install Qt on platforms with X11.
|
---|
63 | \previouspage Installation
|
---|
64 |
|
---|
65 | \note Qt for X11 has some requirements that are given in more detail
|
---|
66 | in the \l{Qt for X11 Requirements} document.
|
---|
67 |
|
---|
68 | \list 1
|
---|
69 | \o If you have the commercial edition of Qt, install your license
|
---|
70 | file as \c{$HOME/.qt-license}.
|
---|
71 |
|
---|
72 | For the open source version you do not need a license file.
|
---|
73 |
|
---|
74 | \o Unpack the archive if you have not done so already. For example,
|
---|
75 | if you have the \c{qt-x11-opensource-desktop-4.5.1.tar.gz}
|
---|
76 | package, type the following commands at a command line prompt:
|
---|
77 |
|
---|
78 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 0
|
---|
79 |
|
---|
80 | This creates the directory \c{/tmp/qt-x11-opensource-desktop-4.5.1}
|
---|
81 | containing the files from the archive. We only support the GNU version of
|
---|
82 | the tar archiving utility. Note that on some systems it is called gtar.
|
---|
83 |
|
---|
84 | \o Building
|
---|
85 |
|
---|
86 | To configure the Qt library for your machine type, run the
|
---|
87 | \c{./configure} script in the package directory.
|
---|
88 |
|
---|
89 | By default, Qt is configured for installation in the
|
---|
90 | \c{/usr/local/Trolltech/Qt-4.5.1} directory, but this can be
|
---|
91 | changed by using the \c{-prefix} option.
|
---|
92 |
|
---|
93 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 1
|
---|
94 |
|
---|
95 | Type \c{./configure -help} to get a list of all available options.
|
---|
96 |
|
---|
97 | To create the library and compile all the demos, examples, tools,
|
---|
98 | and tutorials, type:
|
---|
99 |
|
---|
100 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 2
|
---|
101 |
|
---|
102 | If \c{-prefix} is outside the build directory, you need to install
|
---|
103 | the library, demos, examples, tools, and tutorials in the appropriate
|
---|
104 | place. To do this, type:
|
---|
105 |
|
---|
106 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 3
|
---|
107 |
|
---|
108 | , as root if necessary.
|
---|
109 |
|
---|
110 | Note that on some systems the make utility is named differently,
|
---|
111 | e.g. gmake. The configure script tells you which make utility to
|
---|
112 | use.
|
---|
113 |
|
---|
114 | \bold{Note:} If you later need to reconfigure and rebuild Qt from the
|
---|
115 | same location, ensure that all traces of the previous configuration are
|
---|
116 | removed by entering the build directory and typing \c{make confclean}
|
---|
117 | before running \c configure again.
|
---|
118 |
|
---|
119 | \o Environment variables
|
---|
120 |
|
---|
121 | In order to use Qt, some environment variables needs to be
|
---|
122 | extended.
|
---|
123 |
|
---|
124 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 4
|
---|
125 |
|
---|
126 | This is done like this:
|
---|
127 |
|
---|
128 | In \c{.profile} (if your shell is bash, ksh, zsh or sh), add the
|
---|
129 | following lines:
|
---|
130 |
|
---|
131 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 5
|
---|
132 |
|
---|
133 | In \c{.login} (in case your shell is csh or tcsh), add the following line:
|
---|
134 |
|
---|
135 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 6
|
---|
136 |
|
---|
137 | If you use a different shell, please modify your environment
|
---|
138 | variables accordingly.
|
---|
139 |
|
---|
140 | For compilers that do not support rpath you must also extended the
|
---|
141 | \c LD_LIBRARY_PATH environment variable to include
|
---|
142 | \c{/usr/local/Trolltech/Qt-4.5.1/lib}. On Linux with GCC this step
|
---|
143 | is not needed.
|
---|
144 |
|
---|
145 | \o That's all. Qt is now installed.
|
---|
146 |
|
---|
147 | If you are new to Qt, we suggest that you take a look at the demos
|
---|
148 | and examples to see Qt in action. Run the Qt Examples and Demos
|
---|
149 | either by typing \c qtdemo on the command line or through the
|
---|
150 | desktop's Main menu.
|
---|
151 |
|
---|
152 | You might also want to try the following links:
|
---|
153 |
|
---|
154 | \list
|
---|
155 | \o \l{Configuring Qt}
|
---|
156 | \o \l{How to Learn Qt}
|
---|
157 | \o \l{Tutorials}
|
---|
158 | \o \l{Developer Zone}
|
---|
159 | \o \l{Deploying Qt Applications}
|
---|
160 | \endlist
|
---|
161 | \endlist
|
---|
162 |
|
---|
163 | We hope you will enjoy using Qt. Good luck!
|
---|
164 |
|
---|
165 | */
|
---|
166 |
|
---|
167 | /*!
|
---|
168 | \page install-win.html
|
---|
169 | \title Installing Qt on Windows
|
---|
170 | \ingroup installation
|
---|
171 | \brief How to install Qt on Windows.
|
---|
172 | \previouspage Installation
|
---|
173 |
|
---|
174 | \note Qt for Windows has some requirements that are given in more detail
|
---|
175 | in the \l{Qt for Windows Requirements} document.
|
---|
176 |
|
---|
177 | \table
|
---|
178 | \row \o \bold{Notes:}
|
---|
179 | \list
|
---|
180 | \o If you have obtained a binary package for this platform,
|
---|
181 | consult the installation instructions provided instead of the ones in
|
---|
182 | this document.
|
---|
183 | \o \l{Open Source Versions of Qt} is not officially supported for use with
|
---|
184 | any version of Visual Studio. Integration with Visual Studio is available
|
---|
185 | as part of the \l{Qt Commercial Editions}.
|
---|
186 |
|
---|
187 | \endlist
|
---|
188 | \endtable
|
---|
189 |
|
---|
190 | \list 1
|
---|
191 | \o If you have the commercial edition of Qt, copy the license file
|
---|
192 | from your account on dist.trolltech.com into your home directory
|
---|
193 | (this may be known as the \c userprofile environment variable) and
|
---|
194 | rename it to \c{.qt-license}. This renaming process must be done
|
---|
195 | using a \e{command prompt} on Windows, \bold{not} with Windows Explorer.
|
---|
196 | For example on Windows 2000, \c{%USERPROFILE%} should be something
|
---|
197 | like \c{C:\Documents and Settings\username}
|
---|
198 |
|
---|
199 | For the open source version you do not need a license file.
|
---|
200 |
|
---|
201 | \o Uncompress the files into the directory you want Qt installed;
|
---|
202 | e.g. \c{C:\Qt\4.5.1}.
|
---|
203 |
|
---|
204 | \note The install path must not contain any spaces or Windows specific
|
---|
205 | file system characters.
|
---|
206 |
|
---|
207 | \o Environment variables
|
---|
208 |
|
---|
209 | In order to build and use Qt, the \c PATH environment variable needs to be
|
---|
210 | extended:
|
---|
211 |
|
---|
212 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 7
|
---|
213 |
|
---|
214 | This is done by adding \c{c:\Qt\4.5.1\bin} to the \c PATH variable.
|
---|
215 |
|
---|
216 | For newer versions of Windows, \c PATH can be extended through
|
---|
217 | the \menu{Control Panel|System|Advanced|Environment variables} menu.
|
---|
218 |
|
---|
219 | You may also need to ensure that the locations of your compiler and
|
---|
220 | other build tools are listed in the \c PATH variable. This will depend
|
---|
221 | on your choice of software development environment.
|
---|
222 |
|
---|
223 | \bold{Note}: If you don't use the configured shells, which is
|
---|
224 | available in the application menu, in the \l{Open Source Versions of Qt},
|
---|
225 | \c configure requires that \c sh.exe is not in the path
|
---|
226 | or that it is run from \c msys. This also goes for mingw32-make.
|
---|
227 |
|
---|
228 | \o Building
|
---|
229 |
|
---|
230 | To configure the Qt library for your machine, type the following command
|
---|
231 | in a \bold{Visual Studio} command prompt:
|
---|
232 |
|
---|
233 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 8
|
---|
234 |
|
---|
235 | Type \c{configure -help} to get a list of all available options.
|
---|
236 |
|
---|
237 | If you have multiple compilers installed, and want to build the Qt library
|
---|
238 | using a specific compiler, you must specify a \c qmake specification.
|
---|
239 | This is done by pasing \c{-platform <spec>} to configure; for example:
|
---|
240 |
|
---|
241 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 9
|
---|
242 |
|
---|
243 | In some cases you need to set up the compilation environment before running
|
---|
244 | configure in order to use the right compiler. For instance, you need to do this
|
---|
245 | if you have Visual Studio 2005 installed and want to compile Qt using the x64
|
---|
246 | compiler because the 32-bit and 64-bit compiler both use the same
|
---|
247 | \c qmake specification file.
|
---|
248 | This is usually done by selecting
|
---|
249 | \menu{Microsoft Visual Studio 2005|Visual Studio Tools|<Command Prompt>}
|
---|
250 | from the \gui Start menu.
|
---|
251 |
|
---|
252 | The actual commands needed to build Qt depends on your development
|
---|
253 | system. For Microsoft Visual Studio to create the library and
|
---|
254 | compile all the demos, examples, tools and tutorials type:
|
---|
255 |
|
---|
256 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 10
|
---|
257 |
|
---|
258 | \note If you later need to reconfigure and rebuild Qt from the
|
---|
259 | same location, ensure that all traces of the previous configuration are
|
---|
260 | removed by entering the build directory and typing \c{nmake distclean}
|
---|
261 | before running \c configure again.
|
---|
262 |
|
---|
263 | \o That's all. Qt is now installed.
|
---|
264 |
|
---|
265 | If you are new to Qt, we suggest that you take a look at the demos
|
---|
266 | and examples to see Qt in action. Run the Qt Examples and Demos
|
---|
267 | either by typing \c qtdemo on the command line or through the
|
---|
268 | desktop's Start menu.
|
---|
269 |
|
---|
270 | You might also want to try the following links:
|
---|
271 |
|
---|
272 | \list
|
---|
273 | \o \l{How to Learn Qt}
|
---|
274 | \o \l{Tutorials}
|
---|
275 | \o \l{Developer Zone}
|
---|
276 | \o \l{Deploying Qt Applications}
|
---|
277 | \endlist
|
---|
278 |
|
---|
279 | \endlist
|
---|
280 |
|
---|
281 | We hope you will enjoy using Qt. Good luck!
|
---|
282 |
|
---|
283 | */
|
---|
284 |
|
---|
285 | /*! \page install-mac.html
|
---|
286 | \title Installing Qt on Mac OS X
|
---|
287 | \ingroup installation
|
---|
288 | \brief How to install Qt on Mac OS X.
|
---|
289 | \previouspage Installation
|
---|
290 |
|
---|
291 | \note Qt for Mac OS X has some requirements that are given in more detail
|
---|
292 | in the \l{Qt for Mac OS X Requirements} document.
|
---|
293 |
|
---|
294 | \bold{Note for the binary package}: If you have the binary package, simply double-click on the Qt.mpkg
|
---|
295 | and follow the instructions to install Qt. You can later run the \c{uninstall-qt.py}
|
---|
296 | script to uninstall the binary package. The script is located in /Developer/Tools and
|
---|
297 | must be run as root.
|
---|
298 |
|
---|
299 | The following instructions describe how to install Qt from the source package.
|
---|
300 |
|
---|
301 | \list 1
|
---|
302 | \o If you have the commercial edition of Qt, install your license
|
---|
303 | file as \c{$HOME/.qt-license}.
|
---|
304 |
|
---|
305 | For the open source version you do not need a license file.
|
---|
306 |
|
---|
307 | \o Unpack the archive if you have not done so already. For example,
|
---|
308 | if you have the \c{qt-mac-opensource-desktop-4.5.1.tar.gz}
|
---|
309 | package, type the following commands at a command line prompt:
|
---|
310 |
|
---|
311 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 11
|
---|
312 |
|
---|
313 | This creates the directory \c{/tmp/qt-mac-opensource-desktop-4.5.1}
|
---|
314 | containing the files from the archive.
|
---|
315 |
|
---|
316 | \o Building
|
---|
317 |
|
---|
318 | To configure the Qt library for your machine type, run the
|
---|
319 | \c{./configure} script in the package directory.
|
---|
320 |
|
---|
321 | By default, Qt is configured for installation in the
|
---|
322 | \c{/usr/local/Trolltech/Qt-4.5.1} directory, but this can be
|
---|
323 | changed by using the \c{-prefix} option.
|
---|
324 |
|
---|
325 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 12
|
---|
326 |
|
---|
327 | Type \c{./configure -help} to get a list of all available options.
|
---|
328 |
|
---|
329 | Note that you will need to specify \c{-universal} if you want to
|
---|
330 | build universal binaries, and also supply a path to the \c{-sdk}
|
---|
331 | option if your development machine has a PowerPC CPU. By default,
|
---|
332 | Qt is built as a framework, but you can built it as a set of
|
---|
333 | dynamic libraries (dylibs) by specifying the \c{-no-framework}
|
---|
334 | option.
|
---|
335 |
|
---|
336 | Qt can also be configured to be built with debugging symbols. This
|
---|
337 | process is described in detail in the \l{Debugging Techniques}
|
---|
338 | document.
|
---|
339 |
|
---|
340 | To create the library and compile all the demos, examples, tools,
|
---|
341 | and tutorials, type:
|
---|
342 |
|
---|
343 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 13
|
---|
344 |
|
---|
345 | If \c{-prefix} is outside the build directory, you need to install
|
---|
346 | the library, demos, examples, tools, and tutorials in the appropriate
|
---|
347 | place. To do this, type:
|
---|
348 |
|
---|
349 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 14
|
---|
350 |
|
---|
351 | as root, if neccessary (note that this requires that you have administrator access
|
---|
352 | to your machine).
|
---|
353 |
|
---|
354 | There is a potential race condition when running make install with multiple
|
---|
355 | jobs. It is best to only run one make job (-j1) for the install.
|
---|
356 |
|
---|
357 | \bold{Note:} If you later need to reconfigure and rebuild Qt from the
|
---|
358 | same location, ensure that all traces of the previous configuration are
|
---|
359 | removed by entering the build directory and typing \c{make confclean}
|
---|
360 | before running \c configure again.
|
---|
361 |
|
---|
362 | \o Environment variables
|
---|
363 |
|
---|
364 | In order to use Qt, some environment variables need to be
|
---|
365 | extended.
|
---|
366 |
|
---|
367 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 15
|
---|
368 |
|
---|
369 | This is done like this:
|
---|
370 |
|
---|
371 | In \c{.profile} (if your shell is bash), add the following lines:
|
---|
372 |
|
---|
373 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 16
|
---|
374 |
|
---|
375 | In \c{.login} (in case your shell is csh or tcsh), add the following line:
|
---|
376 |
|
---|
377 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 17
|
---|
378 |
|
---|
379 | If you use a different shell, please modify your environment
|
---|
380 | variables accordingly.
|
---|
381 |
|
---|
382 | \o That's all. Qt is now installed.
|
---|
383 |
|
---|
384 | If you are new to Qt, we suggest that you take a look at the demos
|
---|
385 | and examples to see Qt in action. Run the Qt Examples and Demos
|
---|
386 | either by typing \c qtdemo on the command line or through the
|
---|
387 | desktop's Start menu.
|
---|
388 |
|
---|
389 | You might also want to try the following links:
|
---|
390 |
|
---|
391 | \list
|
---|
392 | \o \l{How to Learn Qt}
|
---|
393 | \o \l{Tutorials}
|
---|
394 | \o \l{Developer Zone}
|
---|
395 | \o \l{Deploying Qt Applications}
|
---|
396 | \endlist
|
---|
397 | \endlist
|
---|
398 |
|
---|
399 | We hope you will enjoy using Qt. Good luck!
|
---|
400 |
|
---|
401 | */
|
---|
402 |
|
---|
403 | /*! \page install-wince.html
|
---|
404 | \title Installing Qt on Windows CE
|
---|
405 | \ingroup installation
|
---|
406 | \ingroup qtce
|
---|
407 | \brief How to install Qt on Windows CE.
|
---|
408 | \previouspage Installation
|
---|
409 |
|
---|
410 | \note Qt for Windows CE has some requirements that are given in more detail
|
---|
411 | in the \l{Qt for Windows CE Requirements} document.
|
---|
412 |
|
---|
413 | \list 1
|
---|
414 | \o Uncompress the files into the directory you want to install Qt into;
|
---|
415 | e.g., \c{C:\Qt\4.5.1}.
|
---|
416 |
|
---|
417 | \note The install path must not contain any spaces.
|
---|
418 |
|
---|
419 | \o Environment variables
|
---|
420 |
|
---|
421 | In order to build and use Qt, the \c PATH environment variable needs
|
---|
422 | to be extended:
|
---|
423 |
|
---|
424 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 18
|
---|
425 |
|
---|
426 | This is done by adding \c{c:\Qt\4.5.1\bin} to the \c PATH variable.
|
---|
427 |
|
---|
428 | For newer versions of Windows, \c PATH can be extended through
|
---|
429 | "Control Panel->System->Advanced->Environment variables" and for
|
---|
430 | older versions by editing \c{c:\autoexec.bat}.
|
---|
431 |
|
---|
432 | Make sure the enviroment variables for your compiler are set.
|
---|
433 | Visual Studio includes \c{vcvars32.bat} for that purpose - or simply
|
---|
434 | use the "Visual Studio Command Prompt" from the Start menu.
|
---|
435 |
|
---|
436 | \o Configuring Qt
|
---|
437 |
|
---|
438 | To configure Qt for Windows Mobile 5.0 for Pocket PC, type the
|
---|
439 | following:
|
---|
440 |
|
---|
441 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 19
|
---|
442 |
|
---|
443 | If you want to configure Qt for another platform or with other
|
---|
444 | options, type \c{configure -help} to get a list of all available
|
---|
445 | options. See the \c README file for the list of supported platforms.
|
---|
446 |
|
---|
447 |
|
---|
448 | \o Building Qt
|
---|
449 |
|
---|
450 | Now, to build Qt you first have to update your \c PATH, \c INCLUDE
|
---|
451 | and \c LIB paths to point to the correct resources for your target
|
---|
452 | platforms. For a default installation of the Windows Mobile 5.0
|
---|
453 | Pocket PC SDK, this is done with the following commands:
|
---|
454 |
|
---|
455 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 20
|
---|
456 |
|
---|
457 | We provide a convenience script for this purpose, called \c{setcepaths}.
|
---|
458 | Simply type:
|
---|
459 |
|
---|
460 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 21
|
---|
461 |
|
---|
462 | Then to build Qt type:
|
---|
463 |
|
---|
464 | \snippet doc/src/snippets/code/doc_src_installation.qdoc 22
|
---|
465 |
|
---|
466 | \o That's all. Qt is now installed.
|
---|
467 |
|
---|
468 | To get started with Qt, you can check out the examples found in the
|
---|
469 | \c{examples} directory of your Qt installation. The documentation can
|
---|
470 | be found in \c{doc\html}.
|
---|
471 |
|
---|
472 | \bold{Remember:} If you reconfigure Qt for a different platform,
|
---|
473 | make sure you start with a new clean console to get rid of the
|
---|
474 | platform dependent include directories.
|
---|
475 |
|
---|
476 | The links below provide further information for using Qt:
|
---|
477 | \list
|
---|
478 | \o \l{How to Learn Qt}
|
---|
479 | \o \l{Tutorials}
|
---|
480 | \o \l{Developer Zone}
|
---|
481 | \o \l{Deploying Qt Applications}
|
---|
482 | \endlist
|
---|
483 |
|
---|
484 | You might also want to try the following Windows CE specific links:
|
---|
485 | \list
|
---|
486 | \o \l{Windows CE - Introduction to using Qt}
|
---|
487 | \o \l{Windows CE - Working with Custom SDKs}
|
---|
488 | \o \l{Windows CE - Using shadow builds}
|
---|
489 | \endlist
|
---|
490 |
|
---|
491 | Information on feature and performance tuning for embedded builds can
|
---|
492 | be found on the following pages:
|
---|
493 | \list
|
---|
494 | \o \l{Fine-Tuning Features in Qt}
|
---|
495 | \o \l{Qt Performance Tuning}
|
---|
496 | \endlist
|
---|
497 | \endlist
|
---|
498 |
|
---|
499 | We hope you will enjoy using Qt. Good luck!
|
---|
500 | */
|
---|
501 |
|
---|
502 | /*!
|
---|
503 | \page requirements.html
|
---|
504 | \title General Qt Requirements
|
---|
505 | \ingroup installation
|
---|
506 | \brief Outlines the general requirements and dependencies needed to install Qt.
|
---|
507 |
|
---|
508 | This page describes the specific requirements of libraries and components on which
|
---|
509 | Qt depends. For information about installing Qt, see the \l{Installation} page.
|
---|
510 |
|
---|
511 | \section1 OpenSSL (version 0.9.7 or later)
|
---|
512 |
|
---|
513 | Support for \l{SSL}{Secure Sockets Layer (SSL)} communication is provided by the
|
---|
514 | \l{OpenSSL Toolkit}, which must be obtained separately.
|
---|
515 |
|
---|
516 | \section1 Platform-Specific Requirements
|
---|
517 |
|
---|
518 | Each platform has its own specific set of dependencies. Please see the relevant
|
---|
519 | page for more details about the components that are required to build and install
|
---|
520 | Qt on your platform.
|
---|
521 |
|
---|
522 | \list
|
---|
523 | \o \l{Qt for Embedded Linux Requirements}
|
---|
524 | \o \l{Qt for Mac OS X Requirements}
|
---|
525 | \o \l{Qt for Windows CE Requirements}
|
---|
526 | \o \l{Qt for Windows Requirements}
|
---|
527 | \o \l{Qt for X11 Requirements}
|
---|
528 | \endlist
|
---|
529 | */
|
---|
530 |
|
---|
531 | /*!
|
---|
532 | \page requirements-win.html
|
---|
533 | \title Qt for Windows Requirements
|
---|
534 | \ingroup installation
|
---|
535 | \brief Setting up the Windows environment for Qt.
|
---|
536 | \previouspage General Qt Requirements
|
---|
537 |
|
---|
538 | If you are using a binary version of Qt with Visual Studio 2005, you must
|
---|
539 | first install the Visual Studio Service Pack 1 available
|
---|
540 | \l{http://www.microsoft.com/downloads/details.aspx?FamilyId=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en}{here}
|
---|
541 | to avoid runtime conflicts.
|
---|
542 |
|
---|
543 | To build Qt with Phonon on Windows, you require:
|
---|
544 |
|
---|
545 | \list
|
---|
546 | \o Microsoft's DirectX Software Development Kit which can be
|
---|
547 | downloaded
|
---|
548 | \l{http://msdn2.microsoft.com/en-us/directx/aa937788.aspx}{here}, and
|
---|
549 | \o Microsoft's Windows Server 2003 R2 Platform SDK which is available
|
---|
550 | \l{http://www.microsoft.com/downloads/details.aspx?FamilyID=0baf2b35-c656-4969-ace8-e4c0c0716adb&DisplayLang=en}{here}.
|
---|
551 | \endlist
|
---|
552 |
|
---|
553 | \sa {Known Issues in 4.5.1}
|
---|
554 | */
|
---|
555 |
|
---|
556 | /*!
|
---|
557 | \page requirements-mac.html
|
---|
558 | \title Qt for Mac OS X Requirements
|
---|
559 | \ingroup installation
|
---|
560 | \brief Setting up the Mac OS X environment for Qt.
|
---|
561 | \previouspage General Qt Requirements
|
---|
562 |
|
---|
563 | \sa {Known Issues in 4.5.1}
|
---|
564 | */
|
---|
565 |
|
---|
566 | /*!
|
---|
567 | \page requirements-x11.html
|
---|
568 | \title Qt for X11 Requirements
|
---|
569 | \ingroup installation
|
---|
570 | \brief Setting up the X11 environment for Qt.
|
---|
571 | \previouspage General Qt Requirements
|
---|
572 |
|
---|
573 | \tableofcontents
|
---|
574 |
|
---|
575 | \section1 QtGui Dependencies
|
---|
576 |
|
---|
577 | \image x11_dependencies.png Qt for X11 Dependencies
|
---|
578 |
|
---|
579 | \raw HTML
|
---|
580 | <style type="text/css" id="colorstyles">
|
---|
581 | #QtGuiColor { background-color: #98fd00; color: black }
|
---|
582 | #QtCoreColor { background-color: #9c9cff; color: black }
|
---|
583 | #DefaultColor { background-color: #f6f6dc; color: black }
|
---|
584 | #FreetypeColor { background-color: #e6e6fa; color: black }
|
---|
585 | #GLColor { background-color: #ffc0cb; color: black }
|
---|
586 | #PthreadColor { background-color: #bdb76b; color: black }
|
---|
587 | #OptionalColor { background-color: #cae1ff; color: black }
|
---|
588 | #SMColor { background-color: #c2fafa; color: black }
|
---|
589 | #MiscColor { background-color: #f0f9ff; color: black }
|
---|
590 | #GlibColor { background-color: #b3b3b3; color: black }
|
---|
591 | </style>
|
---|
592 | \endraw
|
---|
593 |
|
---|
594 | The QtGui module and the QtCore module, which provides the non-GUI features required
|
---|
595 | by QtGui, depend on the libraries described in the following table.
|
---|
596 |
|
---|
597 | \table 90%
|
---|
598 | \header \o Name \o Library \o Notes \o Configuration options \o Minimum working version
|
---|
599 | \raw HTML
|
---|
600 | <tr id="OptionalColor">
|
---|
601 | <td> XRender </td><td> libXrender </td><td> X Rendering Extension; used for anti-aliasing</td>
|
---|
602 | <td><tt>-xrender</tt> or auto-detected</td><td>0.9.0</td>
|
---|
603 | </tr><tr id="OptionalColor">
|
---|
604 | <td> Xrandr </td><td> libXrandr </td><td> X Resize and Rotate Extension</td>
|
---|
605 | <td><tt>-xrandr</tt> or auto-detected</td><td>1.0.2</td>
|
---|
606 | </tr><tr id="OptionalColor">
|
---|
607 | <td> Xcursor </td><td> libXcursor </td><td> X Cursor Extension</td>
|
---|
608 | <td><tt>-xcursor</tt> or auto-detected</td><td>1.1.4</td>
|
---|
609 | </tr><tr id="OptionalColor">
|
---|
610 | <td> Xfixes </td><td> libXfixes </td><td> X Fixes Extension</td>
|
---|
611 | <td><tt>-xfixes</tt> or auto-detected</td><td>3.0.0</td>
|
---|
612 | </tr><tr id="OptionalColor">
|
---|
613 | <td> Xinerama </td><td> libXinerama </td><td> Multi-head support</td>
|
---|
614 | <td><tt>-xinerama</tt> or auto-detected</td><td>1.1.0</td>
|
---|
615 | </tr><tr id="DefaultColor">
|
---|
616 | <td> Xi </td><td> libXi </td><td> X11 Input Extensions</td>
|
---|
617 | <td><tt>-xinput</tt> or auto-detected</td><td>1.3.0</td>
|
---|
618 | </tr><tr id="DefaultColor">
|
---|
619 | <td> Xt </td><td> libXt </td><td> Xt Intrinsics</td><td></td><td>0.99</td>
|
---|
620 | </tr><tr id="DefaultColor">
|
---|
621 | <td> Xext </td><td> libXext </td><td> X Extensions</td><td></td><td>6.4.3</td>
|
---|
622 | </tr><tr id="DefaultColor">
|
---|
623 | <td> X11 </td><td> libX11 </td><td> X11 Client-Side Library</td><td></td><td>6.2.1</td>
|
---|
624 | </tr><tr id="SMColor">
|
---|
625 | <td> SM </td><td> libSM </td><td> X Session Management</td>
|
---|
626 | <td><tt>-sm</tt> or auto-detected</td><td>6.0.4</td>
|
---|
627 | </tr><tr id="SMColor">
|
---|
628 | <td> ICE </td><td> libICE </td><td> Inter-Client Exchange</td>
|
---|
629 | <td><tt>-sm</tt> or auto-detected</td><td>6.3.5</td>
|
---|
630 | </tr><tr id="GlibColor">
|
---|
631 | <td> glib </td><td> libglib-2.0 </td><td> Common event loop handling</td>
|
---|
632 | <td><tt>-glib</tt> or auto-detected</td><td>2.8.3</td>
|
---|
633 | </tr><tr id="PthreadColor">
|
---|
634 | <td> pthread </td><td> libpthread </td><td> Multithreading</td>
|
---|
635 | <td></td><td>2.3.5</td>
|
---|
636 | </tr>
|
---|
637 | \endraw
|
---|
638 | \endtable
|
---|
639 |
|
---|
640 | \note You must compile with XRender support to get alpha transparency
|
---|
641 | support for pixmaps and images.
|
---|
642 |
|
---|
643 | \section1 Phonon Dependencies
|
---|
644 |
|
---|
645 | As described in the \l{Phonon Overview}, Phonon uses the GStreamer multimedia
|
---|
646 | framework as the backend for audio and video playback on X11. The minimum required
|
---|
647 | version of GStreamer is 0.10.
|
---|
648 |
|
---|
649 | To build Phonon, you need the GStreamer library, base plugins, and development
|
---|
650 | files for your system. The package names for GStreamer vary between Linux
|
---|
651 | distributions; try searching for \c gstreamer or \c libgstreamer in your
|
---|
652 | distribution's package repository to find suitable packages.
|
---|
653 |
|
---|
654 | \sa {Known Issues in 4.5.1}
|
---|
655 | */
|
---|
656 |
|
---|
657 | /*!
|
---|
658 | \page requirements-wince.html
|
---|
659 | \title Qt for Windows CE Requirements
|
---|
660 | \ingroup installation
|
---|
661 | \brief Setting up the Windows CE environment for Qt.
|
---|
662 | \previouspage General Qt Requirements
|
---|
663 |
|
---|
664 | Qt is known to work with Visual Studio 2005 and the following SDKs for
|
---|
665 | Windows CE development on Windows XP and Windows Vista:
|
---|
666 |
|
---|
667 | \list
|
---|
668 | \o Windows CE 5.0 Standard SDK for ARM, X86, and MIPS
|
---|
669 | \o Windows CE 6.0 SDKs for ARM generated using the defaults found in
|
---|
670 | Platform Builder
|
---|
671 | \o Windows Mobile 5.0 (\e{Pocket PC}, \e{Smartphone} and
|
---|
672 | \e{Pocket PC with Phone} editions)
|
---|
673 | \o Windows Mobile 6.0 (\e{Standard}, \e{Classic} and
|
---|
674 | \e{Professional} editions)
|
---|
675 | \endlist
|
---|
676 |
|
---|
677 | Below is a list of links to download the SDKs:
|
---|
678 |
|
---|
679 | \list
|
---|
680 | \o \l{http://www.microsoft.com/downloads/details.aspx?familyid=fa1a3d66-3f61-4ddc-9510-ae450e2318c3&displaylang=en}
|
---|
681 | {Windows CE 5 Standard SDK}
|
---|
682 | \o \l{http://www.microsoft.com/downloads/details.aspx?familyid=83A52AF2-F524-4EC5-9155-717CBE5D25ED&displaylang=en}
|
---|
683 | {Windows Mobile 5 Pocket PC}
|
---|
684 | \o \l{http://www.microsoft.com/downloads/details.aspx?familyid=DC6C00CB-738A-4B97-8910-5CD29AB5F8D9&displaylang=en}
|
---|
685 | {Windows Mobile 5 Smartphone}
|
---|
686 | \o \l{http://www.microsoft.com/downloads/details.aspx?familyid=06111A3A-A651-4745-88EF-3D48091A390B&displaylang=en }
|
---|
687 | {Windows Mobile 6 Professional/Standard}
|
---|
688 | \endlist
|
---|
689 |
|
---|
690 | \table
|
---|
691 | \row \bold{Note:}
|
---|
692 | \o
|
---|
693 | \list 1
|
---|
694 | \o Currently, there is only compile support for Windows CE 5.0
|
---|
695 | Standard SDK for SH-4.
|
---|
696 | \o There is currently no "out of the box" support for the
|
---|
697 | Windows CE Automotive or Portable Media SDKs from Microsoft.
|
---|
698 | \endlist
|
---|
699 | \endtable
|
---|
700 |
|
---|
701 |
|
---|
702 | Device manufacturers may prefer to make their own customized version of
|
---|
703 | Windows CE using Platform Builder. In order for Qt for Windows CE to
|
---|
704 | support a custom SDK, a build specification needs to be created. More
|
---|
705 | information on Windows CE Customization can be found
|
---|
706 | \l{Windows CE - Working with Custom SDKs}{here}.
|
---|
707 |
|
---|
708 | \sa {Known Issues in 4.5.1}
|
---|
709 | */
|
---|
710 |
|
---|
711 | /*!
|
---|
712 | \page requirements-embedded-linux.html
|
---|
713 | \title Qt for Embedded Linux Requirements
|
---|
714 | \ingroup installation
|
---|
715 | \brief Setting up the Embedded Linux environment for Qt.
|
---|
716 | \previouspage General Qt Requirements
|
---|
717 |
|
---|
718 | \sa {Known Issues in 4.5.1}
|
---|
719 |
|
---|
720 | \section1 Building Qt for Embedded Linux with uclibc
|
---|
721 |
|
---|
722 | If you intend to include the QtWebKit module in your Qt build then you should
|
---|
723 | use version \bold{uClibc 0.9.29 or greater} as that is the earliest version
|
---|
724 | with sufficient pthread support.
|
---|
725 |
|
---|
726 | \section1 Memory Requirements
|
---|
727 |
|
---|
728 | The memory and storage requirements for Qt for Embedded Linux depend on a
|
---|
729 | an variety of different factors, including the target architecture and the
|
---|
730 | features enabled in the Qt build.
|
---|
731 |
|
---|
732 | The following table shows typical library sizes for the most common Qt
|
---|
733 | libraries on different architectures, built in release mode with different
|
---|
734 | feature profiles.
|
---|
735 |
|
---|
736 | \table
|
---|
737 | \header \o{1,2} Architecture \o{1,2} Compiler \o{2,1} QtCore \o{2,1} QtGui \o{2,1} QtNetwork \o{2,1} QtWebKit
|
---|
738 | \header \o Minimal \o Normal \o Minimal \o Normal \o Minimal \o Normal \o Minimal \o Normal
|
---|
739 | \row \o linux-x86-g++ \o GCC 4.2.4 \o 1.7M \o 2.7M \o 3.3M \o 9.9M \o 653K \o 1.1M \o N/A \o 17M
|
---|
740 | \row \o linux-arm-g++ \o GCC 4.1.1 \o 1.9M \o 3.2M \o 4.1M \o 11M \o 507K \o 1.0M \o N/A \o 17M
|
---|
741 | \row \o linux-arm-g++ (thumb)
|
---|
742 | \o GCC 4.1.1 \o 1.7M \o 2.8M \o 4.0M \o 9.8M \o 409K \o 796K \o N/A \o 17M
|
---|
743 | \row \o linux-mips-g++ (MIPS32)
|
---|
744 | \o GCC 4.2.4 \o 2.0M \o 3.2M \o 4.5M \o 12M \o 505K \o 1003K \o N/A \o 21M
|
---|
745 | \endtable
|
---|
746 |
|
---|
747 | Library sizes are given in the following units: K = 1024 bytes; M = 1024K.
|
---|
748 | QtWebKit is excluded from the minimal configuration.
|
---|
749 |
|
---|
750 | The \l{Fine-Tuning Features in Qt} document covers the process of configuring
|
---|
751 | Qt builds to avoid the inclusion of unnecessary features.
|
---|
752 |
|
---|
753 | \section1 Additional X11 Libraries for QVFb
|
---|
754 |
|
---|
755 | The Virtual Framebuffer (QVFb) application requires the \c libxtst library
|
---|
756 | in addition to the libraries used to build Qt for X11. This library
|
---|
757 | enables the use of the Record extension to the X protocol to be used in
|
---|
758 | applications.
|
---|
759 | */
|
---|