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. no Qt plugin?

no Qt plugin?

Scheduled Pinned Locked Moved Solved Installation and Deployment
solvedclosed
10 Posts 2 Posters 1.2k Views
  • 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.
  • M Offline
    M Offline
    Miixtar
    wrote on 29 Apr 2020, 18:06 last edited by Miixtar
    #1

    Heyya peops!

    I am learning how to use Qt, so to see if all is well, I did the simplest program: just a button in a window. I execute the programm from Qt creator, it works fine. Then I try launching the .exe. I get the error telling me about missing .dll files, so I copy the ones each error asks for. I launch and I get this error:

    This application failed to start because no Qt platform plugin could be initialized.

    I then try launching it from Qt creator again, and the same error occures. The only way for that error to stop is changing compiler, but then I try the .exe and back to square one. Please help, it is driving me mad.

    Lots of Love to all of you!

    Tell me if you need/want any more info!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Apr 2020, 18:10 last edited by
      #2

      Hi and welcome to devnet,

      Use windeployqt. It will copy all required dlls as well as plugins to allow your application to start.

      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
      0
      • M Offline
        M Offline
        Miixtar
        wrote on 29 Apr 2020, 18:31 last edited by Miixtar
        #3

        Thanks, so I used the tool, it added files but I still got the error! alt text
        on the image, "abandonner" means give up, "recommencer" is "retry" and "Ignorer" id "ignore".
        What can I do now?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 29 Apr 2020, 18:33 last edited by
          #4

          One thing to test: nuke your build folder and rebuild everything. Then use windeployqt.

          Do you have several versions of Qt installed ? If so, are you sure you are using the correct version of 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
          0
          • M Offline
            M Offline
            Miixtar
            wrote on 29 Apr 2020, 18:43 last edited by Miixtar
            #5

            After nuking and rebuilding I had a strange error so I tried with mvsc more recent version and all good! Thank you very much! btw, how does windeployqt know which plugins to add?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 29 Apr 2020, 18:46 last edited by
              #6

              There's a set of standard plugins and the rest comes from a map where the modules and their respective plugins are listed so depending on the libraries your application is linked against it will add the corresponding plugins.

              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
              0
              • M Offline
                M Offline
                Miixtar
                wrote on 29 Apr 2020, 19:06 last edited by
                #7

                Ok thx, and last thing, if I rebuild the programm when changing the code a bit, must I reuse windeployqt?

                Thank you very much for the help!

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 29 Apr 2020, 19:11 last edited by
                  #8

                  Unless you added a new module, no.

                  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
                  0
                  • M Offline
                    M Offline
                    Miixtar
                    wrote on 29 Apr 2020, 19:27 last edited by
                    #9

                    Ok well thank you

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 29 Apr 2020, 19:48 last edited by
                      #10

                      You're welcome !

                      Since you ha e it working now, please mark the thread as closed using the "Topic Tools" button or the three doted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

                      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
                      0

                      1/10

                      29 Apr 2020, 18:06

                      • Login

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