1
INSTALLING Qt/X11 Version 4.0.0.
3
1. If you have the commercial edition of Qt, install your license
4
file as $HOME/.qt-license.
6
For the open source version you do not need a license file.
8
2. Unpack the archive if you have not done so already:
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
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.
20
To configure the Qt library for your machine type:
22
cd /tmp/qt-x11-opensource-desktop-4.0.0
25
Type "./configure -help" to get a list of all available options.
27
To create the library and compile all the demos, examples, tools,
32
To install the library, demos, examples, tools, and tutorials,
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.
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
45
4. Environment variables
47
In order to use Qt, some environment variables needs to be
50
PATH - to locate qmake, moc and other Qt tools
52
This is done like this:
54
In .profile (if your shell is bash, ksh, zsh or sh), add the
57
PATH=/usr/local/Trolltech/Qt-4.0.0/bin:$PATH
60
In .login (in case your shell is csh or tcsh), add the following line:
62
setenv PATH /usr/local/Trolltech/Qt-4.0.0/bin:$PATH
64
If you use a different shell, please modify your environment
65
variables accordingly.
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
72
5. That's all. Qt is now installed.
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
79
You might also want to try the following links:
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
85
We hope you will enjoy using Qt. Good luck!