[Interest] Windows deployment. Failed to start because of missing platform plugin...
mark diener
rpzrpzrpz at gmail.com
Fri Aug 28 15:50:47 CEST 2015
I just tried to use windeployqt on my freshly built qt 5.5.0 compiled with
MSVC2015 and the latest Qt Creator 3.50 on Windows 10
The tool defaults to deploying the debug version, even though I pointed it
to the release executable.
It succeeds building the debug version of things. It fails to build release
version.
One failure is the inability to find the platform plugin.
Just like you guys were talking about.
Anybody got a clue why windeployqt fails on release builds?
Cheers,
md
Here are the deploy commands:
DEBUG:
C:\macdev\qt550\msvc2015x86\bin\windeployqt.exe
--qmldir=C:\macdev\qdevtest\testwin1 --debug --force
C:\macdev\qbld\windyn\testwin1\Debug\debug
RELEASE:
C:\macdev\qt550\msvc2015x86\bin\windeployqt.exe
--qmldir=C:\macdev\qdevtest\testwin1 --release --force --core
C:\macdev\qbld\windyn\testwin1\Release\release
Here is the Release console output:
c:\macdev\qdevtest\testwin1>C:\macdev\qt550\msvc2015x86\bin\windeployqt.exe
--qmldir=C:\macdev\qdevtest\testwin1 --release --force --core
C:\macdev\qbld\windyn\testwin1\Release\release
C:\macdev\qbld\windyn\testwin1\Release\release\testwin1.exe 32 bit, release
executable [QML]
Scanning C:\macdev\qdevtest\testwin1:
QML imports:
'QtQuick' C:\macdev\qt550\msvc2015x86\qml\QtQuick.2
'QtQuick.Window' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Window.2
'QtQuick.Controls' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls
'QtQuick.Layouts' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Layouts
'QtQuick.Controls.Private'
C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls\Private
'QtQuick.Controls.Styles'
C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls\Styles
'QtGraphicalEffects' C:\macdev\qt550\msvc2015x86\qml\QtGraphicalEffects
'QtQuick.Extras' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Extras
'QtQml.Models' C:\macdev\qt550\msvc2015x86\qml\QtQml\Models.2
Direct dependencies: Qt5Core Qt5Gui Qt5Qml
All dependencies : Qt5Core Qt5Gui Qt5Network Qt5Qml
To be deployed : Qt5Core Qt5Gui Qt5Network Qt5Qml
Unable to find the platform plugin.
c:\macdev\qdevtest\testwin1>
Here is the Debug console output:
c:\macdev\qdevtest\testwin1>C:\macdev\qt550\msvc2015x86\bin\windeployqt.exe
--qmldir=C:\macdev\qdevtest\testwin1 --debug --force
C:\macdev\qbld\windyn\testwin1\Debug\debug
C:\macdev\qbld\windyn\testwin1\Debug\debug\testwin1.exe 32 bit, debug
executable [QML]
Scanning C:\macdev\qdevtest\testwin1:
QML imports:
'QtQuick' C:\macdev\qt550\msvc2015x86\qml\QtQuick.2
'QtQuick.Window' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Window.2
'QtQuick.Controls' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls
'QtQuick.Layouts' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Layouts
'QtQuick.Controls.Private'
C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls\Private
'QtQuick.Controls.Styles'
C:\macdev\qt550\msvc2015x86\qml\QtQuick\Controls\Styles
'QtGraphicalEffects' C:\macdev\qt550\msvc2015x86\qml\QtGraphicalEffects
'QtQuick.Extras' C:\macdev\qt550\msvc2015x86\qml\QtQuick\Extras
'QtQml.Models' C:\macdev\qt550\msvc2015x86\qml\QtQml\Models.2
Adding Qt5Svg for qsvgicond.dll
Direct dependencies: Qt5Core Qt5Gui Qt5Qml
All dependencies : Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Quick Qt5Widgets
To be deployed : Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Quick Qt5Svg
Qt5Widgets
Updating Qt5Cored.dll.
Updating Qt5Guid.dll.
Updating Qt5Networkd.dll.
Updating Qt5Qmld.dll.
Updating Qt5Quickd.dll.
Updating Qt5Svgd.dll.
Updating Qt5Widgetsd.dll.
Updating libGLESV2d.dll.
Updating libEGLd.dll.
Updating d3dcompiler_47.dll.
Updating vcredist_x86.exe.
Updating qgenericbearerd.dll.
Updating qnativewifibearerd.dll.
Updating qsvgicond.dll.
Updating qddsd.dll.
Updating qgifd.dll.
Updating qicnsd.dll.
Updating qicod.dll.
Updating qjp2d.dll.
Updating qjpegd.dll.
Updating qmngd.dll.
Updating qsvgd.dll.
Updating qtgad.dll.
Updating qtiffd.dll.
Updating qwbmpd.dll.
Updating qwebpd.dll.
Updating qwindowsd.dll.
Updating qmldbg_qtquick2d.dll.
Updating qmldbg_tcpd.dll.
Updating qtquick2plugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Updating windowplugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Updating qtquickcontrolsplugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Private.
Updating qmldir.
Updating qmldir.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Base.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Base/images.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Desktop.
Updating qmldir.
Updating qtquickextrasflatplugind.dll.
Updating qmldir.
Updating qquicklayoutsplugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Private.
Updating qmldir.
Updating qmldir.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Base.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Base/images.
Creating
C:/macdev/qbld/windyn/testwin1/Debug/debug/QtQuick/Controls/Styles/Desktop.
Updating qmldir.
Updating qtquickextrasflatplugind.dll.
Updating qmldir.
Updating Blend.qml.
Updating BrightnessContrast.qml.
Updating Colorize.qml.
Updating ColorOverlay.qml.
Updating ConicalGradient.qml.
Updating Desaturate.qml.
Updating DirectionalBlur.qml.
Updating Displace.qml.
Updating DropShadow.qml.
Updating FastBlur.qml.
Updating GammaAdjust.qml.
Updating GaussianBlur.qml.
Updating Glow.qml.
Updating HueSaturation.qml.
Updating InnerShadow.qml.
Updating LevelAdjust.qml.
Updating LinearGradient.qml.
Updating MaskedBlur.qml.
Updating OpacityMask.qml.
Updating qmldir.
Updating RadialBlur.qml.
Updating RadialGradient.qml.
Updating RectangularGlow.qml.
Updating RecursiveBlur.qml.
Updating ThresholdMask.qml.
Updating ZoomBlur.qml.
Updating FastGlow.qml.
Updating FastInnerShadow.qml.
Updating FastMaskedBlur.qml.
Updating GaussianDirectionalBlur.qml.
Updating GaussianGlow.qml.
Updating GaussianInnerShadow.qml.
Updating GaussianMaskedBlur.qml.
Updating SourceProxy.qml.
Updating qtquickextrasplugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Updating CircularGaugeSpecifics.qml.
Updating DelayButtonSpecifics.qml.
Updating DialSpecifics.qml.
Updating GaugeSpecifics.qml.
Updating PictureSpecifics.qml.
Updating PieMenuSpecifics.qml.
Updating StatusIndicatorSpecifics.qml.
Updating ToggleButtonSpecifics.qml.
Updating circulargauge-icon.png.
Updating circulargauge-icon16.png.
Updating delaybutton-icon.png.
Updating delaybutton-icon16.png.
Updating dial-icon.png.
Updating dial-icon16.png.
Updating gauge-icon.png.
Updating gauge-icon16.png.
Updating picture-icon.png.
Updating picture-icon16.png.
Updating piemenu-icon.png.
Updating piemenu-icon16.png.
Updating statusindicator-icon.png.
Updating statusindicator-icon16.png.
Updating togglebutton-icon.png.
Updating togglebutton-icon16.png.
Updating tumbler-icon.png.
Updating tumbler-icon16.png.
Updating modelsplugind.dll.
Updating plugins.qmltypes.
Updating qmldir.
Creating qt_ca.qm...
Creating qt_cs.qm...
Creating qt_de.qm...
Creating qt_fi.qm...
Creating qt_fr.qm...
Creating qt_hu.qm...
Creating qt_it.qm...
Creating qt_ja.qm...
Creating qt_ko.qm...
Creating qt_lv.qm...
Creating qt_ru.qm...
Creating qt_sk.qm...
Creating qt_uk.qm...
On Fri, Aug 28, 2015 at 7:42 AM, Samuel Gaist <samuel.gaist at edeltech.ch>
wrote:
>
> On 28 août 2015, at 15:20, Bo Thorsen <bo at vikingsoft.eu> wrote:
>
> > Den 28-08-2015 kl. 10:01 skrev Igor Mironchik:
> >> I'm trying to deploy Qt Windows application. And it failed to start with
> >> the next message...
> >>
> >> This application failed to start because it could not find or load the
> >> Qt platform plugin "windows".
> >>
> >> Reinstalling the application may fix this problem.
> >>
> >> Platform plugin is exist in ./platforms/qwindows.dll
> >
> > It has to be in plugins/platforms/qwindows.dll.
> >
> >> How can I solve this problem?
> >
> > When I hit this, I copy every dll from Qt to my bin dir and every plugin
> > to the plugins dir. If that runs, then you can start deleting stuff and
> > see if your application still runs.
> >
> > For example, I have this:
> >
> > C:\Prog..\VikingSoftware\Pokerformance\
> > pokerformance.exe
> > Qt5Core.dll
> > Qt5Gui.dll
> > Qt5Network.dll
> > Qt5Sql.dll
> > Qt5Widgets.dll
> > plugins\
> > platforms\
> > qwindows.dll
> > sqldrivers\
> > qsqlite.dll
> >
> > This works for me with Qt 5.5.
> >
> > I hope this helps.
> >
> > Bo Thorsen,
> > Director, Viking Software.
> >
> > --
> > Viking Software
> > Qt and C++ developers for hire
> > http://www.vikingsoft.eu
> >
>
> Hi,
>
> There's also windeployqt that can help for that matters
>
> Cheers
> Samuel
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150828/d65b00fe/attachment.html>
More information about the Interest
mailing list