[Interest] Windows deployment. Failed to start because of missing platform plugin...
Hi, 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 How can I solve this problem? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...
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 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...
On 28 août 2015, at 15:20, Bo Thorsen b...@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@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...
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\testwin1C:\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\testwin1C:\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
Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...
Yes, although this is frowned upon. You are supposed to install the redist package from VS instead. But I also choose to deliver those as well as the SSL libraries. Bo. Den 28-08-2015 kl. 16:41 skrev Henry Skoglund: Hi, also qwindows.dll depends on MSVCR120.DLL and MSVCP120.DLL (for VS2013-flavored Qt), if the target system lacks those you need to copy them together with your .exe file. Rgrds Henry On 2015-08-28 15:42, Samuel Gaist wrote: On 28 août 2015, at 15:20, Bo Thorsen b...@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@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...
Hi, also qwindows.dll depends on MSVCR120.DLL and MSVCP120.DLL (for VS2013-flavored Qt), if the target system lacks those you need to copy them together with your .exe file. Rgrds Henry On 2015-08-28 15:42, Samuel Gaist wrote: On 28 août 2015, at 15:20, Bo Thorsen b...@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@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...
Den 28-08-2015 kl. 17:24 skrev Sze Howe Koh: plugins\ platforms\ qwindows.dll sqldrivers\ qsqlite.dll This works for me with Qt 5.5. Are you sure? Did you use a custom configuration or call QCoreApplication::addLibraryPath()? By default, the application will look for PWD\platforms\qwindows.dll but not PWD\plugins\platforms\qwindows.dll. Oops, I forgot to mention that I also ship a qt.conf that sets the path to . - that's what makes this possible. I just checked on a clean virtual machine. If I remove the qt.conf it doesn't work, like you predicted. Moving the two plugins dirs to the toplevel does. But the point of my first mail was actually not this one. It's more to try and copy over all the dll's and all plugins and see if you can make this work. If you can, then it's a question of missing dependencies on Igors side. If not, there's something not Qt related that stops this. But as it complained about the windows plugin, it's a very safe bet that it's either the plugins dir locations or some missing libraries. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Windows deployment. Failed to start because of missing platform plugin...
2015-08-28 16:56 GMT+02:00 Bo Thorsen b...@vikingsoft.eu: Yes, although this is frowned upon. You are supposed to install the redist package from VS instead. But I also choose to deliver those as well as the SSL libraries. I'm also guilty of the same transgression in a very simple project of mine, where I package the needed DLLs using some crude but working QMake code [1]. For a larger project I might consider doing it the right way and create a proper installer that bundles the redist installer. Note that in that simple project, I did not require the platform plugin, as I was only depending on QtCore. Elvis [1] https://github.com/estan/protoc-gen-doc/blob/master/protoc-gen-doc-win32-zip.pri Bo. Den 28-08-2015 kl. 16:41 skrev Henry Skoglund: Hi, also qwindows.dll depends on MSVCR120.DLL and MSVCP120.DLL (for VS2013-flavored Qt), if the target system lacks those you need to copy them together with your .exe file. Rgrds Henry On 2015-08-28 15:42, Samuel Gaist wrote: On 28 août 2015, at 15:20, Bo Thorsen b...@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@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest