Unsolved Why deploying on Windows so complicated??
-
Hello,
I first tried to develop a small application using QtQuick.
No problem when I launch it through QTCreator but I cannot get it working in standalone.I first built it with mingw tools but when I tried to deploy it I ran in this issue.
So I tried to build it with MSVC tools to see if I could get lucky!
But no!
I used
Qt\5.12.6\msvc2015_64\bin\windeployqt.exe --quick .
but when I start the application a process is launched but nothing on screen!!!What to do?
-
Well, the application deployment is not overwhelmingly complicated, if you have mastered once. I never used windeployqt.exe so far. Apparently there is a bug which is causing trouble in yourt case.
Anyway. In you MinGw post you have apparently one dll missing which is not deployed. Just search for the dll which is coming with the compiler and copy it to the folder with your application. The rest is most likely already done.
For windeployqt.exe you can check on jira if there is already a bug report for the issue. Otherwise you can post a new bug report. Nobody is monitoring the forum for eventual bug reports.
-
Thanks for your answer anyway in the mingw case and as I said in my post, I already tried to manually add the missing library I can find in 3 different folders and in any case, the application crashs at launch.
Ok I could report a bug, anyway as I'm new in Qt and as I guess I'm not the only one to want to deploy an app on windows, I first hope to find any help on it.
Al
-
@AlainBo said in Why deploying on Windows so complicated??:
Thanks for your answer anyway in the mingw case and as I said in my post, I already tried to manually add the missing library I can find in 3 different folders and in any case, the application crashs at launch.
That is odd. Did you install MinGW through qt maintenance tool?
For a newby the structure for compilers look a bit confusing. Especially the different folders where the same dll is stored again. AFAIK I am typically using the dlls as delivered in the upmost bin folder. -
@AlainBo hi,
quick test
copy / past your app binary (.exe) to your Qt install dir ex : C:\Qt\5.14.0\mingw73_64\bin and try to run it.