1. Get
From me to the disk download: qt-creator-opensource-linux-x86_64-3.5.1.run
qt-everywhere-opensource-src-4.8.7.tar.gz
The following are open Source: http://download.qt.io/official_releases/qtcreator/
http://download.qt.io/official_releases/qt/
2. Qt Creator Installation
2.1 Put the downloaded file (qt-creator-opensource-linux-x86_64-3.5.1.run) into the Cntos user directory where I placed the
Place for:/home/tian/software
2.2 Modify file permissions so that they have Execute permissions
chmod u+x Qt-creator-opensource-linux-x86_64-3.5.1.run
2.3 Installation
./Qt-creator-opensource-linux-x86_64-3.5.1.run
during its period, the Setup Wizard will ask for the installation path, which I have installed by default in the/home/tian/qtcreator-3.5.1 directory.
After the installation is complete, there is a Qt Creator entry in the application---programming menu. Click will pop up QT Creator
interface, or you can right-click on "Add this launcher to the desktop" and create a shortcut on the desktop.
3. QT SDK Installation
Although the QT Creator is installed, it is not possible to create and compile the project. You will also need to install the QT SDK.
3.1 Put the downloaded file (qt-everywhere-opensource-src-4.8.7.tar.gz) into the Cntos user directory where I placed the
Place for:/home/tian/software
3.2 Decompression
Tar zxvf qt-everywhere-opensource-src-4.8.7.tar.gz
3.3 Modifying environment variables
Modify the ~/.BASHRC file
Vim ~/.BASHRC
After the file, add the following:
< Span style= "FONT-SIZE:14PX; Font-family:courier New; " > Qtdir=/home/tian/software/qt-everywhere-opensource-src-4.8.7
Path= $QTDIR/bin: $PATH
Manpath= $QTDIR/man: $MANPATH
Ld_library_path= $QTDIR/lib: $LD _library_path
Export Qtdir PATH MANPATH Ld_library_path
The function of this script is to add the Bin,bin,man path in the directory we just unzipped to the environment variable.
3.4 Configuration
Cd/home/tian/software/qt-everywhere-opensource-src-4.8.7
./configure
There is a hint that GCC is not installed in this procedure and the GCC is installed below
Yum Install gcc gcc-c++
After the installation is successful, the following error occurs when you re-proceed to the above step:
Basic XLIB functionality Test failed!
You might need to modify the Include and library search paths by editing
Qmake_incdir_x11 and qmake_libdir_x11 in/....
Workaround:
Yum Install Libx11-devel,libxext-devel,libxtst-devel
Then re-perform the above steps without error
3.5 compiling
Gmake
This is a long process (it may take several hours), please wait patiently
3.6 Installation
sudo make install
Note Be sure to sudo or root permission Oh ~ ~
This step may take about 15 minutes.
3.7 Complete
enter < Span style= "FONT-SIZE:14PX; Font-family:courier New; " >/home/tian/software/< Span style= "Font-family:courier New; font-size:14px; " >qt-everywhere-opensource-src-4.8.7 The bin directory for , which executes the designer, will appear in the window design interface.
The installation is OK!
Installing QT 4 under CentOS 6.5