L
L
leakt2019-08-01 11:55:09
Qt
leakt, 2019-08-01 11:55:09

Static compilation of QT?

When starting the project through qt creator everything works fine. If I want to run the compiled exe-shnik, it gives out the need for dynamic or qt. On my computer, I can put them in the path, but what if I want to run the application on another computer? I tried windeployqt, it just threw them into a folder, at startup it gave an error entering the procedure in Qt5Widget.dll. Is it possible to somehow configure the compiler (mingw 64 bit) so that it statically shoves all the necessary libs into the application at once? With wishes to go to Google, you can go somewhere else.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly, 2019-08-01
@vt4a2h

This can be done, for this you need a static build of Qt. Only in your project profile you will still need to add static to the config variable.

R
r_e_a_d_e_r, 2020-01-26
@r_e_a_d_e_r

Telegram has info on static compilation: https://t.me/blue_fish/6

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question