Install and establish a Qt desktop running environment

Source: Internet
Author: User
Install and establish the Qt desktop running environment-general Linux technology-Linux programming and kernel information. The following is a detailed description. Software: PC operating system Fedora 6
Software: tmake-1.13.tar.gz qt-embedded-free-3.2.1.tar.bz2
Qt-x11-free-3.3.6.tar.bz2

I would like to thank Qi liang for downloading the software from the domestic image site and for his contribution to Qt fans in China.
FTP address: http://www.qtopia.org.cn/ftp/mirror/ftp.trolltech.com/

The following steps are performed in the/qt directory.

1. Install tmake
[Root @ 110 qt] # tar xzvf tmake-1.13.tar.gz
[Root @ 110 qt] # export TMAKEDIR =/qt/tmake-1.13
[Root @ 110 qt] # export TMAKEPATH =/qt/tmake-1.13/lib/qws/linux-x86-g ++/
[Root @ 110 qt] # export PATH =/qt/tmake-1.13/bin/: $ PATH

Setting environment variables is very important. It is related to whether these installation packages can be correctly installed and compiled.

2 install Qt/Embedded 3.2.1
[Root @ 110 qt] # tar xvf qt-embedded-free-3.2.1.tar.bz2
[Root @ 110 qt-embedded-free-3.2.1] # export QTDIR = $ PWD
[Root @ 110 qt-embedded-free-3.2.1] # export QTEDIR = $ QTDIR
[Root @ 110 qt-embedded-free-3.2.1] # export PATH = $ QTDIR/bin/: $ PATH
[Root @ 110 qt-embedded-free-3.2.1] #

Export LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
[Root @ 110 qt-embedded-free-3.2.1] #

./Configure-qconfig local-qvfb-depths 16,32

[Root @ 110 qt-embedded-free-3.2.1] #./configure-system-jpeg

[Root @ 110 qt-embedded-free-3.2.1] # make

Wait (depending on your PC) about an hour later

The Qt library is now built in./lib
The Qt examples are built in the directories in./examples
The Qt tutorials are built in the directories in./tutorial
Enjoy! -The Trolltech team

Complete installation

3. Install Qt/X11
[Root @ 110 qt] # tar xvf qt-embedded-free-3.2.1.tar.bz2
[Root @ 110 qt] # cd qt-x11-free-3.3.6
[Root @ 110 qt-x11-free-3.3.6] # export QTDIR = $ PWD
[Root @ 110 qt-x11-free-3.3.6] # export PATH = $ QTDIR/bin: $ PATH
[Root @ 110 qt-x11-free-3.3.6] #

Export LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
[Root @ 110 qt-x11-free-3.3.6] #./configure-no-xft
[Root @ 110 qt-x11-free-3.3.6] # make

Wait (depending on your PC) about an hour later

The Qt library is now built in./lib
The Qt examples are built in the directories in./examples
The Qt tutorials are built in the directories in./tutorial
Enjoy! -The Trolltech team

Installation is complete

[Root @ 110 qt-x11-free-3.3.6] # make-C tools/qvfb/
[Root @ 110 qt-x11-free-3.3.6] # mv tools/qvfb bin
[Root @ 110 qt-x11-free-3.3.6] # cp bin/uic $ QTEDIR/bin
Cp: overwrite "/qt/qt-embedded-free-3.2.1/bin/uic "? Y

4. view the running result
If the above steps are successfully compiled, you can run

[Root @ 110 qt-x11-free-3.3.6] # qvfb (Press ENTER)
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.