Linux QT install and configration

Source: Internet
Author: User

These days I have a task about building a GUI for SFTP (one FTP software built ourselves ).

So I choose QT and learn to use it :)

 

First, download the tarball "qt-x11-opensource-src-4.5.1.tar.gz" & "qt-creator-1.1.0-src.zip"

 

Second, tar and install the qt-x11 as follow:

 

 

Tar-xzvf qt-x11-opensource-src-4.5.1.tar.gz </P> <p> Cd qt-x11-opensource-src-4.5.1.tar.gz </P> <p>. /configure -- prefix =/usr/local/QT </P> <p> (if you choose the root Dir, you shoshould type 'sudo' while make and make install) </P> <p> sudo make install <br/>

 

Third, set QT environment VaR at. Profile

Qtdir =/usr/local/QT <br/> Path = $ qtdir/bin: $ PATH <br/> manpath = $ qtdir/man: $ manpath <br/> LD_LIBRARY_PATH = $ qtdir/lib: $ LD_LIBRARY_PATH </P> <p> export qtdir path manpath LD_LIBRARY_PATH

 

Up to now, we can use command 'qmake-project' and 'qmake' to create a makefile of QT project and make it. next I will show you how to install and use QT-creater, bye :)

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.