~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
                          INSTALLING Qt/X11 Version 4.0.0.
 
2
 
 
3
1.  If you have the commercial edition of Qt, install your license
 
4
    file as $HOME/.qt-license.
 
5
 
 
6
    For the open source version you do not need a license file.
 
7
 
 
8
2.  Unpack the archive if you have not done so already:
 
9
 
 
10
        cd /tmp
 
11
        gunzip qt-x11-opensource-desktop-4.0.0.tar.gz        # uncompress the archive
 
12
        tar xvf qt-x11-opensource-desktop-4.0.0.tar          # unpack it
 
13
 
 
14
    This creates the directory /tmp/qt-x11-opensource-desktop-4.0.0 containing the files
 
15
    from the archive. We only support the GNU version of the tar
 
16
    archiving utility. Note that on some systems it is called gtar.
 
17
 
 
18
3.  Building
 
19
 
 
20
    To configure the Qt library for your machine type:
 
21
 
 
22
        cd /tmp/qt-x11-opensource-desktop-4.0.0
 
23
        ./configure
 
24
 
 
25
    Type "./configure -help" to get a list of all available options.
 
26
 
 
27
    To create the library and compile all the demos, examples, tools,
 
28
    and tutorials, type:
 
29
 
 
30
        make
 
31
 
 
32
    To install the library, demos, examples, tools, and tutorials,
 
33
    type:
 
34
 
 
35
        su -c "make install"
 
36
 
 
37
    and enter the root password. Qt is by default installed into
 
38
    /usr/local/Trolltech/Qt-4.0.0 but this can be changed by using
 
39
    the -prefix parameter.
 
40
 
 
41
    Note that on some systems the make utility is called differently,
 
42
    e.g. gmake. The configure script tells you which make utility to
 
43
    use.
 
44
 
 
45
4.  Environment variables
 
46
 
 
47
    In order to use Qt, some environment variables needs to be
 
48
    extended.
 
49
 
 
50
        PATH               - to locate qmake, moc and other Qt tools
 
51
 
 
52
    This is done like this:
 
53
 
 
54
    In .profile (if your shell is bash, ksh, zsh or sh), add the
 
55
    following lines:
 
56
 
 
57
        PATH=/usr/local/Trolltech/Qt-4.0.0/bin:$PATH
 
58
        export PATH
 
59
 
 
60
    In .login (in case your shell is csh or tcsh), add the following line:
 
61
 
 
62
        setenv PATH /usr/local/Trolltech/Qt-4.0.0/bin:$PATH
 
63
 
 
64
    If you use a different shell, please modify your environment
 
65
    variables accordingly.
 
66
 
 
67
    For compilers that do not support rpath you must also extended the
 
68
    LD_LIBRARY_PATH environment variable to include
 
69
    /usr/local/Trolltech/Qt-4.0.0/lib. On Linux with GCC this step
 
70
    is not needed.
 
71
 
 
72
5.  That's all. Qt is now installed.
 
73
 
 
74
    If you are new to Qt, we suggest that you take a look at the demos
 
75
    and examples to see Qt in action. Run the Qt Examples and Demos
 
76
    either by typing 'qtdemo' on the command line or through the
 
77
    desktop's Start menu.
 
78
 
 
79
    You might also want to try the following links:
 
80
 
 
81
        http://doc.trolltech.com/4.0/how-to-learn-qt.html
 
82
        http://doc.trolltech.com/4.0/tutorial.html
 
83
        http://www.trolltech.com/developer
 
84
 
 
85
    We hope you will enjoy using Qt. Good luck!