(minimalist) Linux installation QT4.7.3

Source: Internet
Author: User

1. Download qt

http://download.qt.io/

I'm using: qt-everywhere-opensource-src-4.7.3.tar.gz.

2. Unzip and install QT

Recommended decompression to the/use/local directory

#tar jzxf qt-everywhere-opensource-src-4.7.3.tar.gz

Enter the extracted directory

#./configure

#make

#make Install

Default installation to/usr/local/trolltech/qt-4.7.3

3. Modify all user Environment variables

#vi/etc/profile
At the end of it, add the following information:
Export qtdir=/usr/local/trolltech/qt-4.7.3
Export path= $QTDIR/bin: $PATH
Export manpath= $QTDIR/man: $MANPATH
Export ld_library_path= $QTDIR/lib: $LD _library_path

#source/etc/profile

4, if the use of QT Creator

In the tools-"options-" build and run-Qt version manually add/usr/local/trolltech/qt-4.7.3/bin/qmake

Build Kit (kit) to manually set QT version to QT 4.7.3

Reference:http://www.cppblog.com/wanghaiguang/archive/2013/04/08/199216.aspx

(minimalist) Linux installation QT4.7.3

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.