Install qt4.6 in centos

Source: Internet
Author: User
Tags gz file

Just installed .. Record... My system is centos5.0
Specific installation methods:
1. Download QT 4.6.0 for X11 opensource
.
2. Download The qt-x11-opensource-src-4.6.0.tar.gz file, we use the tar command to decompress it.

Tar zxvf qt-x11-opensource-src-4.60.tar.gz

3. Move the directory to the/usr/local directory, or the catalog directory to the/home directory. The following installation process is to move the directory to the/usr/local directory, change the name to QT. If you have not moved it, pay attention to the directory when setting it.
4. Modify (you can use the VI Editor
Or gedit) Add the following code to the. bash_profile or. profile or/etc/profile file in the directory:

Qtdir =/usr/local/QT
Path = $ qtdir/bin: $ path
Manpath = $ qtdir/MAN: $ manpath
LD_LIBRARY_PATH = $ qtdir/lib: $ LD_LIBRARY_PATH
Export qtdir path manpath LD_LIBRARY_PATH

5. log out of the user or source. bash_profile to make the configuration file take effect.
6. Enter QT
Directory to start Compilation

./Configure

Enter yes to agree to the GPL/qpl protocol.
You can also see this command./configure-thread on the network. To support multithreading, you should just tap these commands. (I don't know if the./configure-thread and./configure commands are repeated)
7. It takes an hour or two to start making.

Make

8. Start install (If some manuals on the Internet do not have this step, the error while loading shared libraries: libqtdesignercomponents. sulfate error may occur. After I make install it, it will be OK.
This step takes a long time. It may take several minutes.

Make install

9. Go to the QT directory, enter the bin directory, and run./designer. You can see the graphic interface.

Related Article

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.