1

Topic: could not find or load the Qt platform plugin "windows"

This application failed to start because it could not find or load the Qt platform plugin "windows" Somebody already faced? How to organize portability of a program with dynamic ?  by councils  in a program folder qwindows.dll, and-or "plugins\qwindows.dll" - do not help. And if I collected under x86, whether that will be launched in such variant under x64?

2

Re: could not find or load the Qt platform plugin "windows"

Hello, _hum _, you wrote: Try to suppose in a working directory a folder platforms from SDK.

3

Re: could not find or load the Qt platform plugin "windows"

Hello, _hum _, you wrote: __> __> This application failed to start because it could not find or load the Qt platform plugin "windows" __> Somebody already faced? How to organize portability of a program with dynamic ? __> Zakidyvanie by councils  in a program folder qwindows.dll, and-or "plugins\qwindows.dll" - do not help. Not in plugins and in platforms. You supposed your_program\platforms\qwindows.dll and does not work? Try to launch still a variant the exe through command line passing in a directory your_program. Faced with such when the working directory of start was not that where lies exe, or to change it or to add QCoreApplication:: addLibraryPath (QCoreApplication:: applicationFilePath ()) (it is not assured that earns) if nothing that helps to walk on source codes and to look whence tries to be loaded qwindows.dll __> and if I collected under x86, whether that will be launched in such variant under x64? Yes

4

Re: could not find or load the Qt platform plugin "windows"

Hello, _hum _, you wrote: __> __> This application failed to start because it could not find or load the Qt platform plugin "windows" __> Somebody already faced? How to organize portability of a program with dynamic ? __> Zakidyvanie by councils  in a program folder qwindows.dll, and-or "plugins\qwindows.dll" - do not help. __> and if I collected under x86, whether that will be launched in such variant under x64? Launch in whom to a line such command: windeployqt.exe Prog.exe It copies all necessary files.

5

Re: could not find or load the Qt platform plugin "windows"

Hello, Denwer, you wrote: D> Hello, _hum _, you wrote: __>> __>> This application failed to start because it could not find or load the Qt platform plugin "windows" __>> Somebody already faced? How to organize portability of a program with dynamic ? __>> Zakidyvanie by councils  in a program folder qwindows.dll, and-or "plugins\qwindows.dll" - do not help. __>> and if I collected under x86, whether that will be launched in such variant under x64? D> Launch in whom to a line such command: D>windeployqt.exe Prog.exe D> It copies all necessary files. Thanks. The necessary thing.

6

Re: could not find or load the Qt platform plugin "windows"

Hello, _hum _, you wrote: __> __> This application failed to start because it could not find or load the Qt platform plugin "windows" __> Somebody already faced? How to organize portability of a program with dynamic ? __> Zakidyvanie by councils  in a program folder qwindows.dll, and-or "plugins\qwindows.dll" - do not help. Very much I advise attentively to esteem about  in Qt. In due time killed some days on bug search when application collected on one  the agent fell at start of tests on the second. This link helped here. Short: if there is a file qt.conf search qwindows.dll will be conducted at first in that directory, which  in Qt5Core.dll at installation. And if by other machine on this way other version Qt there will be very strange  lies. Personally I always put qt.conf in resources.

7

Re: could not find or load the Qt platform plugin "windows"

Hello, SaZ, you wrote: SaZ> very much I advise attentively to esteem about  in Qt. In due time killed some days on bug search when application collected on one  the agent fell at start of tests on the second. This link helped here. Short: if there is a file qt.conf search qwindows.dll will be conducted at first in that directory, which  in Qt5Core.dll at installation. And if by other machine on this way other version Qt there will be very strange  lies. SaZ> Personally I always put qt.conf in resources. SaZ so and if to use the automatic assembly through windeployqt.exe, this problem will not be? (windeployqt.exe itself "" Qt5Core.dll?)

8

Re: could not find or load the Qt platform plugin "windows"

Hello, _hum _, you wrote: __> SaZ so and if to use the automatic assembly through windeployqt.exe, this problem will not be? (windeployqt.exe itself "" Qt5Core.dll?) Qt5Core.dll  it is not necessary and windeployqt it not . Application should  without usage of absolute paths. It is logical. It is necessary to use qt.conf. Esteem about .

9

Re: could not find or load the Qt platform plugin "windows"

Hello, SaZ, you wrote: SaZ> Hello, _hum _, you wrote: __>> SaZ so and if to use the automatic assembly through windeployqt.exe, this problem will not be? (windeployqt.exe itself "" Qt5Core.dll?) SaZ>Qt5Core.dll  it is not necessary and windeployqt it not . Application should  without usage of absolute paths. It is logical. It is necessary to use qt.conf. SaZ> Esteem about . My question was - whether it is necessary for me to be perverted with qt.config (I do not want while needlessly to get into all these subtleties of adjustments of type of priorities of loadings and so forth) If I used windeployqt.exe (, on idea, should me make the automatic machine the correct assembly, that is if it is necessary, itself to add qt.conf or  copied in a directory  Qt5Core.dll, time in initial there "" the directory ) upd. , everything, the question is removed. windeployqt.exe, predictably, itself  Qt5Core.dll The tool can be found in QTDIR/bin/windeployqt. It takes an.exe file or a directory that contains an.exe file as an argument, and scans the executable for dependencies. If a directory is passed with the - qmldir argument, windeployqt uses the qmlimportscanner tool to scan QML files inside the directory for QML import dependencies. Identified dependencies are then copied to the executable's directory. T he hardcoded local paths in Qt5Core.dll are furthermore replaced with relative ones.