Description:Qt5.6 with Red Hat 7.3 (graphical interface)
Because of the complexity of the environment, I'm not sure that other environments are equally viable, and that if and only if this environment (my machine environment is like this) should be successful
Download the 5.8 version of QT from http://download.qt.io/official_releases/qt/5.8/5.8.0/(for installation under Windows)
Qt-opensource-windows-x86-mingw530-5.8.0.exe(with compiler version, other versions to configure the compilation environment)
Download qt from http://download.qt.io/official_releases/qt/5.6/5.6.0/(for installation in Rhel, this environment will be 5.8 error, I replaced this)
Qt-opensource-linux-x64-5.6.0.run (Linux version)
1, Windows normal full-select Install 5.8 version of Qt:qt-opensource-windows-x86-mingw530-5.8.0.exe
Configuring environment variables
Right-click-"My Computer-" Advanced system Settings-"Environment variable-" Path (System Variable)-"edit
Join C:\mysql\bin; C:\mysql\lib (separate each path with '; ')
2, Rhel: Normal full-Select installation Qt5.6 version: Qt-opensource-linux-x64-5.6.0.run
Root permissions are all installed properly (the path should be/opt ...). Under
Qmake-v //Display version
The version number is 1.* more on the Configuration environment variable (version number display 3.* not set)
Configure environment variables (on machine because there is an old version of QT, so priority new version of the search)
Path=/opt/qt5.6.0/5.6/gcc_64/bin: $PATH: $HOME/.local/bin:.: $HOME/bin
3. Transplant Test
Create a new QT project in Windows for testing
The project to the server, to the corresponding path (I am directly lazy, with sharing, the result is the same)
Qmake, generate makefile, then make, prompt cannot find dynamic library libgl.so (my machine is like this)
Link Missing dynamic libraries (if make is successful you don't have to establish a link)
Cd/usr/lib
Ln-s. /lib64/libgl.so.1.2.0 libgl.so//Establish soft links (similar shortcuts)
Go back to the corresponding path under Qmake
Make a file, generate files
Complete the Migration test
Win7 (Qt 5.8) + Red Hat 7.3 (VMware) (Qt5.6) (Build environment)