[Interest] Windows deployment. Failed to start because of missing platform plugin...
Peter Kümmel
syntheticpp at gmx.net
Sat Aug 29 12:34:36 CEST 2015
Deploying a MSVC build is a bit annoying because of this redistributable stuff.
Didn't it require admin rights for installing? In corporations a user often does
not have enough rights for installing software.
Therefore for deploying I prefer a MinGW build of Qt, it depends on such a old runtime
library that it is available on all Systems (I know such builds run from Windows XP to 7).
For instance my deploy folder looks like this:
deployed/translations/v_es.qm
deployed/translations/v_tr.qm
deployed/translations/v_de.qm
deployed/v.exe
deployed/libgcc_s_dw2-1.dll
deployed/libstdc++-6.dll
deployed/Qt5Core.dll
deployed/Qt5Network.dll
deployed/Qt5Gui.dll
deployed/Qt5Widgets.dll
deployed/platforms/qminimal.dll
deployed/platforms/qwindows.dll
deployed/printsupport/windowsprintersupport.dll
deployed/imageformats/qgif.dll
deployed/imageformats/qjpeg.dll
"libgcc_s_dw2-1" depends on your MinGW build, could also be "s_sjlj" or maybe "s_seh".
To see at which places Qt is looking for the plugin start the app from command
line with the environment variable QT_DEBUG_PLUGINS=1 set.
(see http://doc.qt.io/qt-5/deployment-plugins.html )
Another advantage of the MinGW build is that it could be done
completely on a Linux system.
Peter
Am 28.08.2015 um 16:56 schrieb Bo Thorsen:
> 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 <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
>>>
>>
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
> Bo Thorsen,
> Director, Viking Software.
>
More information about the Interest
mailing list