The reason why QT4 compilation fails is that the QT4 compilation method is actually very simple.
Source: Internet
Author: User
The reason why QT4 compilation fails is that the QT4 compilation method is actually very simple-Linux general technology-Linux programming and kernel information. The following is a detailed description. The problem that N multi-QT compilation on the Internet is not enough. After countless times of compilation, it is concluded that most of the reasons why QT compilation fails are due to a mistake in configure.
I. QT configure, if the-prefix parameter is not included, the default installation path is/usr/local/Trolltech/Qt-X.X.X, so if your QT directory is under this directory, you cannot directly use configure without parameters.
2. If configure-prefix is used but the directory is not specified, assuming that the QT directory is/home/crob/QT/qt-4.4.2, then the default QT installation directory is "/home/crob/QT/qt-4.4.2/yes, note that there is a YES later, this is obviously wrong.
3. Therefore, we must use the third most perfect method.
./Configure-prefix/home/crob/QT/qt-4.4.2/
The following is the complete process of compiling QT in linux. The compiling environment is Ubuntu 8.04.
1. decompress the downloaded package
Tar zxvf qt-x11-opensource-src-4.4.2.tar.gz-C/home/crob/QT
After decompression, the QT directory is/home/crob/QT/qt-4.4.2.
Run the following command to make the environment variable take effect.
Source ~ /. Bashrc
Iii. Configuration
Execute the following command line
Cd $ QTDIR
./Configure-prefix/home/crob/QT/qt-4.4.2/
Enter yes and then press Enter.
... Wait... about several minutes
Iv. Compilation
Enter make in the command line and press Enter. The compilation duration is 1 to N hours depending on the configuration.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.