Deploying qt5.2.0: won't find windows platform plugin
-
This works, thanks to JKSH
[quote author="JKSH" date="1394236581"]Glad I could help. :) Thank you for blogging about Qt and for helping others use Qt![/quote] -
Hi, I was the original poster.
That post was just to notify you: JKSH's way is the exact good way to release your applications, and it worked for several applications in my case!Although, it still doesn't work for the original application I was trying to build..
I guess that's really just a bug, but I won't be able to post a bug ticket as the problem seems to be linked with the actual application, and I can't find what caused it in the application (which is pretty big unfortunately..) -
I have same problem using Qt 5.3
Despite I have tried all combinations, I am not able to lauch application: it always says that it is not able to find windows plugin!!! -
Hi,
[quote author="AlterX" date="1416406048"]I have same problem using Qt 5.3
Despite I have tried all combinations, I am not able to lauch application: it always says that it is not able to find windows plugin!!![/quote]What combinations did you try?Did you follow the instructions at http://qt-project.org/wiki/Deploy_an_Application_on_Windows closely?
-
yes, I have my app and then platforms/qwindows.dll
then I tried plugins/platforms/qwindows.dll
then qwindows.dll in same dir of exe
I tried to use qt.conf and put plugins path to "."
All above leads to same error! -
[quote author="AlterX" date="1416406280"]yes, I have my app and then platforms/qwindows.dll
then I tried plugins/platforms/qwindows.dll
then qwindows.dll in same dir of exe
I tried to use qt.conf and put plugins path to "."
All above leads to same error![/quote]It's not just about qwindows.dll. You need to make sure all the other DLLs are in the correct places too.Please follow every single step under "Initial deployment (Quick and dirty)" in the Wiki. If it still doesn't work, please post a screenshot of your deployment folder.
Also, did you create a Debug build or Release build?
-
I did...nothing is work or even better, now is running but nothing happens or is shown!!I removed all unecessary dlls and left all plugins content...
-
This is really awful...Why didn't they do something like they did for Android??
-
They did. It's called windeployqt.
Anyway, your descriptions are vague so it's hard for me to tell what exactly you did. If you want more help, carry out steps #1, #2.1, #2.2, #2.3 and #2.4 of “Initial deployment (Quick and dirty)” and then post your screenshot.
Also post the full error message.
-
Hi, sorry, I did now it seems to work...I say seems, because on a virtual machine it is not able to connect over network even if internet is available.
And How does windeployqt work? Is that integrated in QtCreator?? -
Glad to hear :)
See http://qt-project.org/doc/qt-5/windows-deployment.html#the-windows-deployment-tool
It's a command line tool, similar to androiddeployqt. I don't know if they integrated androiddeployqt into Qt Creator or not, but windeployqt isn't integrated (yet?).
-
Hi thanks...but unfortunately it starts but it is not able to connect to internet (on my machine with qt installed it works).
Do you have any clue? -
[quote author="AlterX" date="1416409664"]Hi thanks...but unfortunately it starts but it is not able to connect to internet (on my machine with qt installed it works).
Do you have any clue?[/quote]You're welcome.It doesn't sound like a deployment issue anymore. Please start a new thread and include some code that shows how your program tries to connect to the internet. (We can't see what's wrong unless you provide code and details)
-
Hi...no it is...now it works!
windeployqt is impressive but useless...it is worse than to do dirty things you suggested; on the other side, dirty doc is not enough, so I did that, then i used windeployqt and copy latter binaries genereted by tool in my manually binaries and now it works!
There are some problems somewhere...