Win7 (Qt 5.8) + Red Hat 7.3 (VMware) (Qt5.6) (Build environment)

Source: Internet
Author: User

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)

Related Article

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.