Installation and configuration of QT under Linux

Source: Internet
Author: User

reference:Compiling, installing, and configuring QT http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html Linux
  1. Download qt

    This is 4.7.0 version qt-everywhere-opensource-src-4.7.0.tar.gz

  2. Copy and Unzip

    Here I installed VMware Linux above, so Windows and Linux direct file sharing, recommended to use Samba,samba my previous notes are introduced, here is unknown to talk about.

    Copy it to the directory below.

    Decompression: Tar zxvf xxxxxx

  3. Configure and compile

    Switch to the following directory and enter the command line:./configure

    After the above configure, we need to compile it.

    Make. It takes about 2 hours.

    After make, we also need to install: Execute command make install

  4. Configuring Environment variables

    This step is easy for beginners to forget, if this step is not implemented, will appear similar to: XXXX Shared library qtlib...so .... No such errors were found.

    After configuration, there is another operation is to make the configuration effective, generally with source/etc/profile

    But this method does not know how, every time to open a terminal or restart the computer will need to execute source/etc/profile.

    So, we need to write the above command into the ~/.BASHRC, so that we don't have the problem just now.

    Reference Document: http://blog.csdn.net/zzobin/article/details/7652309Linux under QT installation

  5. Validating and establishing shortcuts

    Type the command: qmake-v

    ?

    Here's how to create a shortcut:

    Ln-s/usr/local/xxxxx/root/desktop If it's a user, it might be:/home/yourname/desktop

  6. Installing the QT---IDE is also qt_creator

    A complete QT consists of two parts, one for the QT library and one for the IDE.

    Installation process: http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html

    1) First Download qt_creator

Website:http://download.csdn.net/detail/yanzi1225627/4435814qt-creator-linux-x86-opensource-2.5.0

2) Configure Samba services

Reference:http://www.cnblogs.com/whiteyun/archive/2011/05/27/2059670.htmlLinux Samba Detailed installation

This is probably the case:

3) Copy Installation

Copy the file to the desktop or other place under/opt/linuxsir, and modify the file attributes, then execute, which is the. bin file that can be executed directly.

After installation, as shown:

Installation and configuration of QT under Linux

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.