[Interest] Windows deployment. Failed to start because of missing platform plugin...

Elvis Stansvik elvstone at gmail.com
Fri Aug 28 19:46:08 CEST 2015


2015-08-28 16:56 GMT+02:00 Bo Thorsen <bo at 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 <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.
>
> --
> Viking Software
> Qt and C++ developers for hire
> http://www.vikingsoft.eu
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list