KDAB / Charm

The Cross-Platform Time Tracker
GNU General Public License v2.0
192 stars 70 forks source link

Fix Qt 5 deployment on Windows #200

Closed frankosterfeld closed 9 years ago

frankosterfeld commented 9 years ago

Ensure that the Qt 5 installers built via CPack

Consider if we should use windeployqt as preparation step for cpack

frankosterfeld commented 9 years ago

Tried it, currently the package is missing the qsqlite plugin. The installation directory looks like this: plugins/ (empty) platforms/qwindows.dll

So what's missing is

platforms/sqldrivers/qsqlite.dll

The platforms folder is theoretically on the wrong level (should be in plugins/), but charm doesn't seem to care.

If I copy qsqlite.dll manually, Charm starts and works. I don't see any means in a standard CMake/CPack (3.2.3) installed on windows to deploy Qt 5 and specify the plugin. As cpack packages the platform plugin correctly, there must be some Qt5-aware logic somewhere though.

This blocks moving the KDAB-provided windows installers to Qt 5.