The documentation for how to deploy Qt 5 on Windows is too hidden and is missing several pieces of crucial information. This makes deploying Qt5 MUCH more painful than it really should be.
Through a lot of searching on other posts, I know I’m supposed to include platforms/qwindows.dll and platforms/qminimal.dll as well as the (somewhat stealthy) their dependency: libEGL.dll. I also know I am supposed to include the plugins my program is using, but I have no way to determine which ones they are!
I have defined the environment variable QT_DEBUG_PLUGINS to a non-zero value to try to get more info. No luck.
I have tried to deploy a debug version from the console to see if I get any useful output. No luck.
I have double checked my .pro file and stripped out any unneeded dependencies like this:
QT -= gui
QT += core quick multimedia
CONFIG += thread qt
But there is no documentation on EXACTLY which plugins correspond to which dependencies, so no luck here.
I temporarily removed all my QML files and replaced them with a single file that displayed a single maroon rectangle. Still no luck.
I have even tried copying ALL the plugins at Qt5.0.1\5.0.1\msvc2010\plugins into my apps directory so that I have:
myapp\myapp.exe
myapp\accessible
myapp\bearer
… etc.
But even THAT didn’t work.
Everything I try, I am stuck staring at a blank white screen with no information on what I am doing wrong. It is highly frustrating!
What do I need to do differently?
↧