Install QT4.3.2 in Linux

Source: Internet
Author: User
Install QT4.3.2 in Linux-general Linux technology-Linux programming and kernel information. For more information, see. The installation of qt is because I have just installed mplayer and want to install a front-end to access the Internet. I made up my mind to Install it. I couldn't Install it all the time at the beginning. Later I read the Install file to understand that to Install smplayer, I had to have qt4.2 or a later version, I used rpm-qa qt to find that my qt was a qt-3.3.8-3 version. The qt-x11-opensource-src-4.3.2.tar.gz package meets the requirements.

1. download the software package
Qt-x11-opensource-src-4.3.2.tar.gz

Ii. decompress the Software Package
$ Tar-zxvf qt-x11-opensource-src-4.3.2.tar.gz

3. Configure
$ Qt-x11-opensource-src-4.3.2 cd
$./Configure -- prefix =/usr/local/qt4.3.2

This can also save the following parameters. I write this to install the software package in/usr/local/qtt4.3.2 after compilation. After this step, the GPL will be given in order to let you agree, then you can enter yes.

4. Compile and install
# Qmake

This execution takes a long time for my computer to run D820, and it took more than 1.5 hours. Please wait patiently.

# Qmake install
This is for installation, which is faster than the previous step.

5. Modify Environment Variables
# Vi/etc/profile

# Add qt4.3.2 PATH
PATH =/usr/local/qt4.3.2/bin: $ PATH
Export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

Add PATH =/usr/local/qt4.3.2/bin: $ PATH to the export, which means to add/usr/local/qt4.3.2/bin to the path environment variable.

To make the reset environment variable take effect
$ Source/etc/profile

Of course, the above step is to set the global environment variable. You can also set it in $ home/. bash_profle, but don't forget to use source ~ /. Bash_profle. Alternatively, you only need to log out again to make the environment variable take effect. This is to save time.

In this case, enter $ assistant on the terminal. The help information of qt4.3 is displayed, indicating that the installation is successful.

Use $ echo $ PATH to check whether your qt4.3.2 environment variables are successfully loaded.

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.