Unsolved Unable to find the platform plugin.
-
Hi all,
I am unable to deploy my application while using Qt_5_15_0_MinGW_32_bit-Release version. For Qt_5_14_0_MinGW_32_bit-Release version also, I had faced a similar problem but this link helped me solve my issue as they gave a link to a new windeployqt executable. Can i find a solution for the latest QT Version also?
-
Hi,
What options are you passing to windeployqt ?
-
@SGaist
windeployqt.exe --quick --release --qmldir ../../app_name/ . -
@saitej
Hi
What platform do you see this "Unable to find the platform plugin" on ?
I have had some cases where Linux would show this after a upgrade to the Os. -
Windows. I have built on the same system for previous versions of QT. With QT 5.15, i am getting the errors.
With MSVC:
The application gets build successfully but when I run the executable it crashes.
With Mingw: I get this error
-
Hi
Could you try with
--compiler-runtime
as paramter also. MinGW has some runtime files and I wonder if you get
those included too. -
@mrjj said in Unable to find the platform plugin.:
--compiler-runtime
I tried it out still gives the same error. Updated cmd for your reference.
windeployqt.exe --quick --release --compiler-runtime --qmldir ../../appfolder/ .
-
@saitej
Ok and the generated folder does have the platform sub folder with the DLL in ? -
no folder is generated inside the release directory
-
@saitej
Yes i mean , it does get the right subfolder structure ?
http://www.tripleboot.org/?p=138 -
In one of the bug report linked in the thread you got inspiration from, it's explicitly stated that you should not use --release with the pre-built binary. They are built in release mode with debug symbols.
-
After removing --release from the command, I could successfully deploy it with out the platform plugin error. Although, there is a strange thing happening. It is missing out the texttospeech plugin. I get this error when I run the executable from Qt creator after using the windeployqt
No text-to-speech plug-ins were found.
The same error I had shared on this post.
-
And that was solved using Qt 5.15, correct ?
-
Ya. but I had not used windeployqt in the release folder at that time. As soon as I run windeployqt, i get this error No text-to-speech plug-ins were found. and the speech part does not work
-
Check the corresponding plugins in your Qt installation and copy them over to your deployment folder.
-
Yes. I have already tried copying the following relevant texttospeech files from the Qt installation directory. Hope I have not missed out any? Also, is it possible that texttospeech does not work in a Qt Quick Application?
-
It's the deployed version that currently has issues, correct ?
-
Yes Sir.
-
Did you add the -texttospeech option to your windeployqt call ?
-
@SGaist said in Unable to find the platform plugin.:
-texttospeech
Ya I have tried adding -texttospeech in the windeployqt command also but no success. It still gives the same No text-to-speech plug-ins were found. error