How do I run an application written in Qt C++ on another PC where there is no Qt?
I have on my PC, everything runs without errors. I put all the necessary libraries in the .exe folder. But on another PC, it writes that the Qt plugin was not found.
Please tell me what to do?
4
3 answers
You need to:
- build release
- use the program windeployqt You need to run it from the folder where it is located .the exe of your program.
10
Author: gbg, 2019-08-08 11:36:24
And if you do it without specialized software, you can do it like this:
First of all, here is a great guide, which I always use.
Secondly, if in your own words, something like this:
- In the build version, set Release
- Building an app
- Copy your
.exe
file to another location - Launch
- An error pops up that a certain
.dll
-library{[15 is missing]} - Looking for the right windows search through the files and substitute in the folder where you copied
.exe
- If you get an error that is not related to the presence of any library, copy all the libraries from the Qt library folder (the name begins with
Q
and the extension.dll
) to the folder with your project, and then delete the extra ones. Long, but effective - When your application is finally started and all the extra libraries are removed, what is left is copied to any other computer without Qt and run.
5
Author: V-Mor, 2019-08-08 11:57:33
- Look for the plugins\platforms folder in the Qt installation directory
- Copy from it qwindows.dll to the platforms folder created in the directory with your exe file
2
Author: Andrey Sokolov, 2019-08-08 18:17:56