Impossible de trouver ou de charger le plug-in de la plate-forme Qt «Windows».

Tout d’abord, pour éviter les doublons de rapports, j’ai essayé plusieurs solutions données ici , ici , ici , ici et ici .

J’utilise Qt 5.5.1 avec Visual Studio 2012 et j’ai développé mon application sous Windows 10 x64 (sans utiliser Qt Creator). L’application est compilée en mode release.

En fait, mon application fonctionne sur mon PC, sans aucun problème et les seules bibliothèques dont j’ai besoin dans mon répertoire sont:

Qt5Core.dll Qt5Gui.dll Qt5WinExtras.dll Qt5Widgets.dll Qt5Network.dll msvcp110.dll msvcr110.dll 

Maintenant, lorsque j’essaie de lancer mon application sur une nouvelle installation de Windows 7 x86, le message d’erreur suivant s’affiche:

Cette application n’a pas pu démarrer car elle n’a pas pu trouver ou charger le plug-in “Windows” de la plate-forme Qt.

Réinstaller l’application peut résoudre ce problème.

Maintenant, je ne peux pas m’en débarrasser. Selon les questions précédemment posées, il peut s’agir d’un problème avec le fichier qwindows.dll (ou plus précisément avec une application ne pouvant pas le localiser), tout d’abord, j’ai déployé mon répertoire de publication de la manière suivante:

[..]\msvc2012\bin>windeployqt.exe

Il a généré tous les fichiers nécessaires au lancement de mon application, y compris les platforms/qwindows.dll . Je les ai donc simplement tous copiés dans le répertoire Windows 7 sans aucun effet – une erreur se produit toujours.

J’ai également essayé de copier manuellement un qwindows.dll partir des msvc2012\plugins\platformsmsvc2012\plugins\platforms – aucun effet,

Ma dernière étape a été une inspection de mon application dans Dependency Walker . Chose surprenante, il n’ya pas de dépendance liée à qwindows.dll :

image

Donc, je suis à court d’idées, quel est le problème ici?

Voici ce que je fais pour déployer QOwnNotes (Qt5) sous Windows: https://github.com/pbek/QOwnNotes/blob/develop/appveyor.yml

 # AppVeyor build configuration # http://www.appveyor.com/docs/build-configuration os: unstable skip_tags: true install: - set QTDIR=C:\Qt\5.5\mingw492_32 - set PATH=%PATH%;%QTDIR%\bin;C:\MinGW\bin - set RELEASE_PATH=appveyor\release before_build: # getting submodules - git submodule update --init build_script: # using a header file without MemoryBarrier, that causes the build to fail - copy appveyor\qopenglversionfunctions.h %QTDIR%\include\QtGui # workaround for MinGW bug - sed -is/_hypot/hypot/gc:\mingw\include\math.h - cd src # we need to modify that to make it running on AppVeyor - sed -i "s/CONFIG += c++11/QMAKE_CXXFLAGS += -std=gnu++0x/g" QOwnNotes.pro - "echo #define RELEASE \"AppVeyor\" > release.h" # setting the build number in the header file - "echo #define BUILD %APPVEYOR_BUILD_NUMBER% > build_number.h" - qmake QOwnNotes.pro -r -spec win32-g++ # - qmake QOwnNotes.pro -r -spec win32-g++ "CONFIG+=debug" - mingw32-make # creating the release path - md ..\%RELEASE_PATH% # copy the binary to our release path - copy release\QOwnNotes.exe ..\%RELEASE_PATH% # copy OpenSSL DLLs to the release path - copy ..\appveyor\OpenSSL\libeay32.dll ..\%RELEASE_PATH% - copy ..\appveyor\OpenSSL\libssl32.dll ..\%RELEASE_PATH% - copy ..\appveyor\OpenSSL\ssleay32.dll ..\%RELEASE_PATH% # copy portable mode launcher to the release path - copy ..\appveyor\QOwnNotesPortable.bat ..\%RELEASE_PATH% # copy translation files - copy languages\*.qm ..\%RELEASE_PATH% - cd ..\%RELEASE_PATH% # fetching dependencies of QT app # http://doc.qt.io/qt-5/windows-deployment.html - windeployqt --release QOwnNotes.exe # this dll was missed by windeployqt - copy ..\libwinpthread-1.dll . /y # this dll didn't work when released by windeployqt - copy "..\libstdc++-6.dll" . /y # for some reason AppVeyor or windeployqt uses a copy of the German # translation file as English one, which screws up the English user interface - del "translations\qt_en.qm" artifacts: # pushing entire folder as a zip archive - path: appveyor\release name: QOwnNotes deploy: # Deploy to GitHub Releases - provider: GitHub artifact: QOwnNotes draft: false prerelease: false auth_token: secure: spcyN/Dz3B2GXBPii8IywDLq6vfxC1SrN+xR2wMerFM7g2nTy0Lrh5agQONFoInR on: branch: master notifications: # Gitter webhook - provider: Webhook url: https://webhooks.gitter.im/e/b6ef22402eb4af50f73a on_build_success: true on_build_failure: true on_build_status_changed: false 

J’espère que ça aide un peu…