Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Unable to find the platform plugin.
Qt 6.11 is out! See what's new in the release blog

Unable to find the platform plugin.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
21 Posts 3 Posters 8.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • saitejS Offline
    saitejS Offline
    saitej
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What options are you passing to windeployqt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • saitejS Offline
        saitejS Offline
        saitej
        wrote on last edited by
        #3

        @SGaist
        windeployqt.exe --quick --release --qmldir ../../app_name/ .

        mrjjM 1 Reply Last reply
        0
        • saitejS saitej

          @SGaist
          windeployqt.exe --quick --release --qmldir ../../app_name/ .

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          0
          • saitejS Offline
            saitejS Offline
            saitej
            wrote on last edited by
            #5

            @mrjj

            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

            d1cb6a0d-ea07-4b0e-ab84-cd110ba25851-image.png

            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi
              Could you try with
              --compiler-runtime
              as paramter also. MinGW has some runtime files and I wonder if you get
              those included too.

              1 Reply Last reply
              0
              • saitejS Offline
                saitejS Offline
                saitej
                wrote on last edited by
                #7

                @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/ .
                
                mrjjM 1 Reply Last reply
                0
                • saitejS saitej

                  @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/ .
                  
                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @saitej
                  Ok and the generated folder does have the platform sub folder with the DLL in ?

                  1 Reply Last reply
                  0
                  • saitejS Offline
                    saitejS Offline
                    saitej
                    wrote on last edited by
                    #9

                    no folder is generated inside the release directory

                    mrjjM 1 Reply Last reply
                    0
                    • saitejS saitej

                      no folder is generated inside the release directory

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @saitej
                      Yes i mean , it does get the right subfolder structure ?
                      http://www.tripleboot.org/?p=138

                      alt text

                      1 Reply Last reply
                      1
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        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.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        1
                        • saitejS Offline
                          saitejS Offline
                          saitej
                          wrote on last edited by saitej
                          #12

                          @SGaist

                          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.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            And that was solved using Qt 5.15, correct ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            saitejS 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              And that was solved using Qt 5.15, correct ?

                              saitejS Offline
                              saitejS Offline
                              saitej
                              wrote on last edited by saitej
                              #14

                              @SGaist

                              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

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                Check the corresponding plugins in your Qt installation and copy them over to your deployment folder.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                saitejS 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  Check the corresponding plugins in your Qt installation and copy them over to your deployment folder.

                                  saitejS Offline
                                  saitejS Offline
                                  saitej
                                  wrote on last edited by saitej
                                  #16

                                  @SGaist

                                  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?

                                  5c902790-8fab-4560-ab46-78900df700b6-image.png

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    It's the deployed version that currently has issues, correct ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    saitejS 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      It's the deployed version that currently has issues, correct ?

                                      saitejS Offline
                                      saitejS Offline
                                      saitej
                                      wrote on last edited by
                                      #18

                                      @SGaist

                                      Yes Sir.

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        Did you add the -texttospeech option to your windeployqt call ?

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        saitejS 1 Reply Last reply
                                        0
                                        • SGaistS SGaist

                                          Did you add the -texttospeech option to your windeployqt call ?

                                          saitejS Offline
                                          saitejS Offline
                                          saitej
                                          wrote on last edited by
                                          #20

                                          @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

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved