Ubuntu installation configuration QT 4.86 Environment

Source: Internet
Author: User

Installing the QT4.8.6 library +QT Creator 2.4.1

Announced

QT4.8.6 Library http://mirrors.hustunique.com/qt/official_releases/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz

QT Creator 2.4.1 Http://get.qt.nokia.com/qtcreator/qt-creator-linux-x86-opensource-2.4.1.bin

After the download is complete, follow the steps below to install the configuration

.1. Unzip the file

TAR-XVF qt-everywhere-opensource-src-4.8.0.tar.gz

2. Execute the sudo apt-get install build-essential. If you are prompted to find a package, you can update the source. method to edit the source list for sudo gedit/etc/apt/sources.list. Then execute sudo apt-get update

3. Go to the folder to execute the./configure, then select O (Open source), then select Yes (agree). After running, prompt just run ' make ' to indicate that this step is successful.

4.make. To perform make, this step takes a long time.

Recommended: Ubuntu qt ffmpeg installation configuration

[FFmpeg QT Development Error: 1. Add #ifndef Uint64_c (val) to Common.h #define Uint64_c (val) val# #ULL #endif但是出现/usr/local/inclu DE/LIBAVUTIL/COMMON.H:30:

You can add the following options:

-K When an error occurs, continue compiling as far as possible;

-j N compiles at the same time, it is recommended that the value of n is your CPU core number X1.5. such as: Make–k–j 4.

5. Install QT. Execute sudo make install, file installed in/usr/local/trolltech/qt-4.8.6

6. Set environment variables. Execute gedit ~/.BASHRC Add the following:
qtdir=/usr/local/trolltech/qt-4.8.6/
Path= $QTDIR/bin: $PATH
Manpath= $QTDIR/doc/man: $MANPATH
Ld_library_path= $QTDIR/lib: $LD _library_path
Export Qtdir PATH MANPATH Ld_library_path
Restart later.

9. Next, you can follow
Qmake-project
Qmake
Make
Steps to perform the QT program, but may encounter qmake can not find the situation, this time input sudo apt-get indtall qt4-dev-tools on it, this step is to install designer/assistant.

10. Install QT Creator.

Find the download directory, first modify the permissions sudo chmod +x qt-creator-linux-x86-opensource-2.4.1.bin Where Qt-creator-linux-x86-opensource-2.4.1.bin is the file name of the newly downloaded QT creator 2.4.1 for linux/x11 32-bit (65MB). Then execute the command./Qt Creator 2.4.1 for linux/x11 32-bit (65MB) The graphical installation interface appears.

Http://www.itboth.com/d/YVZjq2mqYJJz/trolltech-opensource-ubuntu-linux-qtcreator

Ubuntu installation configuration QT 4.86 Environment

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.