no Qt plugin?
-
wrote on 29 Apr 2020, 18:06 last edited by Miixtar
Heyya peops!
I am learning how to use Qt, so to see if all is well, I did the simplest program: just a button in a window. I execute the programm from Qt creator, it works fine. Then I try launching the .exe. I get the error telling me about missing .dll files, so I copy the ones each error asks for. I launch and I get this error:
This application failed to start because no Qt platform plugin could be initialized.
I then try launching it from Qt creator again, and the same error occures. The only way for that error to stop is changing compiler, but then I try the .exe and back to square one. Please help, it is driving me mad.
Lots of Love to all of you!
Tell me if you need/want any more info!
-
Hi and welcome to devnet,
Use windeployqt. It will copy all required dlls as well as plugins to allow your application to start.
-
wrote on 29 Apr 2020, 18:31 last edited by Miixtar
-
One thing to test: nuke your build folder and rebuild everything. Then use windeployqt.
Do you have several versions of Qt installed ? If so, are you sure you are using the correct version of windeployqt ?
-
wrote on 29 Apr 2020, 18:43 last edited by Miixtar
After nuking and rebuilding I had a strange error so I tried with mvsc more recent version and all good! Thank you very much! btw, how does windeployqt know which plugins to add?
-
There's a set of standard plugins and the rest comes from a map where the modules and their respective plugins are listed so depending on the libraries your application is linked against it will add the corresponding plugins.
-
wrote on 29 Apr 2020, 19:06 last edited by
Ok thx, and last thing, if I rebuild the programm when changing the code a bit, must I reuse windeployqt?
Thank you very much for the help!
-
Unless you added a new module, no.
-
wrote on 29 Apr 2020, 19:27 last edited by
Ok well thank you
-
You're welcome !
Since you ha e it working now, please mark the thread as closed using the "Topic Tools" button or the three doted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)
1/10