source: trunk/INSTALL@ 92

Last change on this file since 92 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 5.0 KB
Line 
1 INSTALLING Qt/All Source Version 4.5.1.
2
31. If you have the commercial edition of Qt, install your license
4 file as $HOME/.qt-license if you are on Unix. If you are on
5 Windows, copy the license file into your home directory
6 (this may be known as the userprofile environment variable) and
7 rename it to .qt-license. For example on Windows 2000,
8 %USERPROFILE% should be something like C:\Documents and
9 Settings\username.
10
11 For the open source version you do not need a license file.
12
132. Unpack the archive if you have not done so already:
14
15 On Unix (X11 and Mac):
16 cd /tmp
17 gunzip %DISTNAME%.tar.gz # uncompress the archive
18 tar xvf %DISTNAME%.tar # unpack it
19
20 This creates the directory /tmp/%DISTNAME% containing the files
21 from the archive. We only support the GNU version of the tar
22 archiving utility. Note that on some systems it is called gtar.
23
24 On Windows, uncompress the files into the directory you want Qt
25 installed, e.g. C:\Qt\4.5.1.
26
27 NOTE: The install path must not contain any spaces.
28
294. Environment variables
30
31 In order to build and use Qt, the PATH environment variable needs
32 to be extended:
33
34 PATH - to locate qmake, moc and other Qt tools
35
36 On Windows, this is done by adding c:\Qt\4.5.1\bin
37 to the PATH variable. On Unix, this is done by adding
38 /tmp/%DISTNAME%.
39
40 For newer versions of Windows, PATH can be extended through
41 "Control Panel->System->Advanced->Environment variables" and for
42 older versions by editing c:\autoexec.bat.
43
44 In .profile (if your Unix shell is bash), add the following lines:
45
46 PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH
47 export PATH
48
49 In .login (in case your Unix shell is csh or tcsh), add the following line:
50
51 setenv PATH /usr/local/Trolltech/Qt-4.5.1/bin:$PATH
52
53 If you use a different Unix shell, please modify your environment
54 variables accordingly.
55
56 For some X11 compilers that do not support rpath you must also
57 extended the LD_LIBRARY_PATH environment variable to include
58 /usr/local/Trolltech/Qt-4.5.1/lib. On Linux or Mac with GCC
59 this step is not needed.
60
614. Building
62