Use the source code to install the qtsdk in Ubuntu10.04. write a note and record it. please advise if you have any questions. install some compilation programs such as g ++ and some libraries before installation. since I have installed some components before, the environment may be different from that on your machine. however, it does not matter. If the related components are missing, ubuntu will give the corresponding prompt. You only need to follow the prompt to install the related components and re-execute the command. the following are my installation processes and questions
Install the qt sdk in the form of source code in Ubuntu 10.04. Write a note and record it. If you have any questions, please advise.
Install some compilation programs such as g ++ and some libraries before installation. since I have installed some components before, the environment may be different from that on your machine. however, it does not matter. If the related components are missing, ubuntu will give the corresponding prompt. You only need to follow the prompt to install the related components and re-execute the command.
The following describes the installation process and problems.
Download the qt sdk source code in the tar.gz format. You can also download the source code in the zip format on this page.
Before decompression, you need to find a partition with a free capacity greater than 3 GB. Suppose it is/tmp. Suppose the download directory is/home, then execute the following command
Cd/tmp
Tar-zxvf/home/http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.0-beta2.tar.gz
3. Enter the decompressed directory and execute
./Configure
In this phase, error information is displayed.
Basic XLib functionality test failed!
For specific reasons, please refer to the following link for a ready-made solution:
Sudo apt-get install libX11-dev libXext-dev libXtst-dev
4. Execute
Make
At this stage, make has an error and reports an error: usr/bin/ld: cannot find lXrender.
The solution is as follows:
Sudo apt-get install libxrender-dev
If other components are missing, you can refer to this solution.
5.
Sudo make install
This is basically done.
However, I also have a problem, that is, the qt interface belongs to the primitive type.