M
M
Matweytt2019-10-07 15:47:55
Qt Creator
Matweytt, 2019-10-07 15:47:55

How to compile .exe along with .dll and .lib libraries in QT?

There is a project on the pluses in qt creator, what should I write in the pro file so that all dll dependencies fit into the executable file?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
tsarevfs, 2019-10-07
@tsarevfs

You need static linking. You will most likely have to build Qt with the appropriate flags.
Search keywords qt static linking.

G
Grigory, 2019-10-07
@Griglapidus

Dll - nothing.
You need a static build of Qt. Either collect it yourself, or find it.
For example, here is precompiled qt4 qt5 You
also need to take into account that a static build does not fit well with a free Qt license
. There is a windeployqt.exe utility in the bin folder of the Qt kit; it can report everything that is needed for the application to work.

V
vanyamba-electronics, 2019-10-07
@vanyamba-electronics

Static linking - this is only available in the paid version.

J
Jacob E, 2019-10-08
@Zifix

Carrying Qt libraries?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question