You can install QT in Ubuntu11.04 in two ways. One is to directly install the QT sdk package, which inherits the qtdesigner and qt library files. Another method is to download the source code package of qt and then compile and install it. The first method is http://qt.nokia.com/downloadsdownload response, which is 32-bit than linux.com. The second method to download the source package, such as the latest http://qt.nokia.com/download
You can install QT in Ubuntu 11.04 in two ways. One is to directly install the QT sdk package, which inherits the qt designer and qt library files. Another method is to download the source code package of qt and then compile and install it.
Method 1
Http://qt.nokia.com/downloads to download the corresponding version, such as linux32-bit.
Method 2
Download the source package, such as the latest http://qt.nokia.com/downloads/linux-x11-cpp
1) configuration: Enter the decompressed folder and run./configure-prefix/usr/local/Trolltech/Qt-4.7.4-pc
2) Compile: make (long time, several hours)
3) installation: make install (because the installation directory is specified during configuration, it will be installed under the Directory:/usr/local/Trolltech/Qt-4.7.3-pc)
4) then set the qt path, which can be added to home/user/. profile.
QTDIR =/usr/local/Trolltech/Qt-4.7.4
PATH = $ QTDIR/bin: $ PATH
MANPATH = $ QTDIR/man: $ MANPATH
LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
Export qtdir path manpath LD_LIBRARY_PATH
An error occurs during compilation. The solution is to install three packages sudo apt-get install libX11-dev libXext-dev libXtst-dev