PATH setting after the latest qt sdk is installed

Source: Internet
Author: User
After the latest qt sdk is installed, set PATH-general Linux technology-Linux technology and application information. For more information, see the following. [I = s] This post was last edited by Dawnson

From Nokia to the latest qt-sdk-linux-x86-opensource-2010.02.bin, execute the following command to install:

Su-

Chmod u + x qt-sdk-linux-x86-opensource-2010.02.bin

./Qt *. bin

The installation page appears (do not change the installation path ):


After installation, you must configure the PATH to use the qmake command. Otherwise, the. CPP file cannot be compiled. Add the following three lines to the end of the/etc/profile file:
QTDIR =/opt/qtsdk-2010.02/qt
PATH = $ QTDIR/bin: $ PATH
LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
Export qtdir path LD_LIBRARY_PATH
The first line is the path of the qt directory, the second line is the path of the qmake executable program, the third line is the path of a library, and the fourth line is the output path. After saving the file, run: source/etc/profile to make the modified profile file that is currently being called take effect immediately without logging out and logging on again. Then run: updatedb updates the system database.
Run qmake-v to view the version information of qmake.
Hello QT! :




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.