Qt installation, OpenMP usage and MPI usage info
by
Severin Erasmus Stahl, [Link].
Prof. Dr.-Ing. Hartmut Weber
Some information for the installation of Qt (Last update: 08.12.2023)
• Under no circumstances do we expect you to pay money for Qt. Since we do not make com-
mercial applications, an open source or educational version is sufficient.
• The regular way to install the educational version of Qt starts here: [Link]
educational-license. Click on Get Qt now and fill out the form shown. Your email address
must be your THM email address. Regarding the package selection choose Qt Edu for De-
velopers and click on Submit.
• You will receive an email from Qt Company with the subject Your Qt Educational license is
on its way! Verify your email. Do this.
• After address verification you will receive a second email from Qt Company with the sub-
ject Qt Installation Instructions. This Mail contains a link to a Qt side Qt for Education.
Read this side and then click on Qt Edu for Designers. You have to fill in another (shorter)
form for reaching the download page.
Some information for the usage of OpenMP with Qt (Last update: 21.10.2021)
• The MinGW Compiler has OpenMP. OpenMP is inside of an internal Library. The code An-
alyzer is unaware of the Library. Because of this the code Analyzer will claim there are er-
rors. These errors can be ignored.
• To use OpenMP in Qt following lines have to be added to the “*.pro“ File:
“
QMAKE_CXXFLAGS += -fopenmp
LIBS += -fopenmp
“
Some information for the usage of MPI with Qt (Last update: 21.10.2021)
• Windows users can should download and install the Microsoft MPI and Microsoft MPI SDK
packages at [Link]
Linux users should check if their package manager offers the openmpi or openmpi-devel
Package. If the package manager manager does not provide the openmpi Packages you can
find the package at [Link]
• After the installation of MPI the librarys have to be added to Qt.
As an example, for the Microsoft MPI the following lines have to be added to the “*.pro“
File, if you are compiling with a 64 Bit compiler:
“
LIBS += $$(MSMPI_LIB64)[Link]
LIBS += $$(MSMPI_LIB64)[Link]
LIBS += $$(MSMPI_LIB64)[Link]
INCLUDEPATH += $$(MSMPI_INC)
INCLUDEPATH += $$(MSMPI_INC)x64
“
The $$(Variable) is a system variable of the Operating System. The Microsoft MPI SDK in-
staller should add them automatically.
• To get the full benefit from MPI in Qt, you have to add a “Custom Executable“ under
“Projects“ in “Build & Run“ in “Run“. You best do this after Building this project for the
1
first time.
In the “Custom Executable“ as the Executable you have to use the MPI File. In the Micro-
soft MPI this file is the [Link] (can be found in the install path of Microsoft MPI in the
“bin“ folder). The last Command line argument has to be the executable created by the
project. With “-n 2“ you can run 2 Processes.