Linux Qt installation and environment variable settings (Ubuntu10.04)

Source: Internet
Author: User
Go to http://qt.nokia.com/downloads/downloadsdownload qtsdkforlinux/x1132-bit** (422 MB) download file for qt-sdk-linux-x86-opensource-2010.05.1.bin download complete then execute chmodu + xqt-sdk-linux-x86-opensource-2010.05.1. B In the download directory

Go to http://qt.nokia.com/downloads/downloads download

Qt SDK for Linux/X11 32-bit ** (422 MB)
Download file as qt-sdk-linux-x86-opensource-2010.05.1.bin

After the download is complete, execute

Chmod u + x qt-sdk-linux-x86-opensource-2010.05.1.bin
Then execute the installation./qt-sdk-linux-x86-opensource-2010.05.1.bin
Fill in lines at the end of the file in vi. bashrc under/root.
Export QTDIR =/home/tm/qt
Export PATH = $ QTDIR/bin: $ PATH
Export MANPATH = $ QTDIR/doc/man: $ MANPATH
Export LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
Export QMAKESPEC =/home/tm/qt/mkspecs/linux-g ++ (if an error occurs during qmake Compilation: QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: XXXXX. pro add this line)

Where the value of QTDIR is the directory where the qt-sdk-linux-x86-opensource-2010.05.1.bin is installed
You can write hello world! Test.

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.