Compile source code QT4.7Beta2 under Ubuntu10.04

Source: Internet
Author: User
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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.