Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Plugin loading failed

Plugin loading failed

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 5 Posters 3.8k 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.
  • N Offline
    N Offline
    nhatquang
    wrote on 31 May 2017, 09:00 last edited by
    #1

    Hi,
    I just install "qt-opensource-windows-x86-5.9.0" on Windows 10 x64. I build successfully a plugin "led-designer-plugin", i put "led-designer-plugin.dll" in "C:\Qt\Qt5.9.0\Tools\QtCreator\bin\plugins\designer". Then i open a GUI project in QtCreator 4.3. But I got this message in Plugin Information window:

    "Cannot load library C:\Qt\Qt5.9.0\Tools\QtCreator\bin\plugins\designer\led-designer-plugin.dll: %1 is not a valid Win32 application"
    Can you tell me what i was wrong to set the enviroment for QtCreator ?

    Thank you in advance,

    J J 2 Replies Last reply 31 May 2017, 09:39
    0
    • N nhatquang
      31 May 2017, 09:00

      Hi,
      I just install "qt-opensource-windows-x86-5.9.0" on Windows 10 x64. I build successfully a plugin "led-designer-plugin", i put "led-designer-plugin.dll" in "C:\Qt\Qt5.9.0\Tools\QtCreator\bin\plugins\designer". Then i open a GUI project in QtCreator 4.3. But I got this message in Plugin Information window:

      "Cannot load library C:\Qt\Qt5.9.0\Tools\QtCreator\bin\plugins\designer\led-designer-plugin.dll: %1 is not a valid Win32 application"
      Can you tell me what i was wrong to set the enviroment for QtCreator ?

      Thank you in advance,

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 31 May 2017, 09:39 last edited by J.Hilk
      #2

      @nhatquang Hi
      my first guess is, you did not build the plugin with the same compiler as your QtCreator was build in.

      But I don't have much experience with plugins maybe someone else can help you more.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3
      • V Offline
        V Offline
        Vinod Kuntoji
        wrote on 31 May 2017, 09:58 last edited by
        #3

        @nhatquang ,

        Have you provided the dll path in .pro file?

        win32: LIBS += -L$$PWD/../../../../bin/ -ledDesigner
        DEPENDPATH += $$PWD/../../../../bin/

        C++, Qt, Qt Quick Developer,
        PthinkS, Bangalore

        N 1 Reply Last reply 31 May 2017, 15:56
        1
        • N nhatquang
          31 May 2017, 09:00

          Hi,
          I just install "qt-opensource-windows-x86-5.9.0" on Windows 10 x64. I build successfully a plugin "led-designer-plugin", i put "led-designer-plugin.dll" in "C:\Qt\Qt5.9.0\Tools\QtCreator\bin\plugins\designer". Then i open a GUI project in QtCreator 4.3. But I got this message in Plugin Information window:

          "Cannot load library C:\Qt\Qt5.9.0\Tools\QtCreator\bin\plugins\designer\led-designer-plugin.dll: %1 is not a valid Win32 application"
          Can you tell me what i was wrong to set the enviroment for QtCreator ?

          Thank you in advance,

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 31 May 2017, 11:23 last edited by
          #4

          @nhatquang To add to @J-Hilk : the Qt and compiler version must be exactly the same and you have to build your plug-in in release mode.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply 31 May 2017, 15:49
          0
          • J jsulm
            31 May 2017, 11:23

            @nhatquang To add to @J-Hilk : the Qt and compiler version must be exactly the same and you have to build your plug-in in release mode.

            N Offline
            N Offline
            nhatquang
            wrote on 31 May 2017, 15:49 last edited by
            #5

            @jsulm Thank you, could please tell me more in details. I'm new with QT.

            M 1 Reply Last reply 31 May 2017, 15:53
            0
            • N nhatquang
              31 May 2017, 15:49

              @jsulm Thank you, could please tell me more in details. I'm new with QT.

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 31 May 2017, 15:53 last edited by mrjj
              #6

              @nhatquang
              Hi
              For plugins to be be loadable for Creator, it must be compiled with visual studio compiler.
              (on the windows platform. On linux is gcc)
              Mingw compiler won't work. ( on windows )

              Look in Help->About Creator
              alt text

              So to make plugins for this creator, you must be using vs 2015 32 bit to compile plugin
              and it should be in release mode.

              N 1 Reply Last reply 31 May 2017, 16:09
              2
              • V Vinod Kuntoji
                31 May 2017, 09:58

                @nhatquang ,

                Have you provided the dll path in .pro file?

                win32: LIBS += -L$$PWD/../../../../bin/ -ledDesigner
                DEPENDPATH += $$PWD/../../../../bin/

                N Offline
                N Offline
                nhatquang
                wrote on 31 May 2017, 15:56 last edited by
                #7

                @Vinod-Kuntoji said in Plugin loading failed:

                @nhatquang ,

                Have you provided the dll path in .pro file?

                win32: LIBS += -L$$PWD/../../../../bin/ -ledDesigner
                DEPENDPATH += $$PWD/../../../../bin/

                Thanks, i will try

                1 Reply Last reply
                0
                • M mrjj
                  31 May 2017, 15:53

                  @nhatquang
                  Hi
                  For plugins to be be loadable for Creator, it must be compiled with visual studio compiler.
                  (on the windows platform. On linux is gcc)
                  Mingw compiler won't work. ( on windows )

                  Look in Help->About Creator
                  alt text

                  So to make plugins for this creator, you must be using vs 2015 32 bit to compile plugin
                  and it should be in release mode.

                  N Offline
                  N Offline
                  nhatquang
                  wrote on 31 May 2017, 16:09 last edited by
                  #8

                  @mrjj said in Plugin loading failed:

                  @nhatquang
                  Hi
                  For plugins to be be loadable for Creator, it must be compiled with visual studio compiler.
                  (on the windows platform. On linux is gcc)
                  Mingw compiler won't work. ( on windows )

                  Look in Help->About Creator
                  alt text

                  So to make plugins for this creator, you must be using vs 2015 32 bit to compile plugin
                  and it should be in release mode.

                  Thank you, but I'm using VS2017 without QT addin support. It mean, i can't build plugin?

                  M 1 Reply Last reply 31 May 2017, 19:47
                  0
                  • N nhatquang
                    31 May 2017, 16:09

                    @mrjj said in Plugin loading failed:

                    @nhatquang
                    Hi
                    For plugins to be be loadable for Creator, it must be compiled with visual studio compiler.
                    (on the windows platform. On linux is gcc)
                    Mingw compiler won't work. ( on windows )

                    Look in Help->About Creator
                    alt text

                    So to make plugins for this creator, you must be using vs 2015 32 bit to compile plugin
                    and it should be in release mode.

                    Thank you, but I'm using VS2017 without QT addin support. It mean, i can't build plugin?

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 31 May 2017, 19:47 last edited by mrjj
                    #9

                    @nhatquang
                    Hi. No there is 1 (one) exception. Vs 2017 should be compatible with VS2015
                    as far as i understand.
                    Should be 32 bit though.
                    Remember to check your Creator just to be sure.

                    N 1 Reply Last reply 1 Jun 2017, 05:31
                    1
                    • M mrjj
                      31 May 2017, 19:47

                      @nhatquang
                      Hi. No there is 1 (one) exception. Vs 2017 should be compatible with VS2015
                      as far as i understand.
                      Should be 32 bit though.
                      Remember to check your Creator just to be sure.

                      N Offline
                      N Offline
                      nhatquang
                      wrote on 1 Jun 2017, 05:31 last edited by
                      #10

                      @mrjj said in Plugin loading failed:

                      @nhatquang
                      Hi. No there is 1 (one) exception. Vs 2017 should be compatible with VS2015
                      as far as i understand.
                      Should be 32 bit though.
                      Remember to check your Creator just to be sure.

                      But QtCreator 4.3 built based on Qt 5.8, not 5.9. How can i solve?

                      M J 2 Replies Last reply 1 Jun 2017, 06:27
                      0
                      • N nhatquang
                        1 Jun 2017, 05:31

                        @mrjj said in Plugin loading failed:

                        @nhatquang
                        Hi. No there is 1 (one) exception. Vs 2017 should be compatible with VS2015
                        as far as i understand.
                        Should be 32 bit though.
                        Remember to check your Creator just to be sure.

                        But QtCreator 4.3 built based on Qt 5.8, not 5.9. How can i solve?

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 1 Jun 2017, 06:27 last edited by mrjj 6 Jan 2017, 08:30
                        #11

                        @nhatquang
                        That should work anyway. Might not be correct.
                        Its the visual studio version that is important.
                        But vs2015 works as vs2017. ( for the first time ever)

                        update:
                        Seems i was too optimistic

                        Better to use 5.8 then for compiling the plugin.

                        1 Reply Last reply
                        3
                        • N nhatquang
                          1 Jun 2017, 05:31

                          @mrjj said in Plugin loading failed:

                          @nhatquang
                          Hi. No there is 1 (one) exception. Vs 2017 should be compatible with VS2015
                          as far as i understand.
                          Should be 32 bit though.
                          Remember to check your Creator just to be sure.

                          But QtCreator 4.3 built based on Qt 5.8, not 5.9. How can i solve?

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 1 Jun 2017, 06:52 last edited by
                          #12

                          @nhatquang Install Qt 5.8 and use it for your plug-in. You can keep Qt 5.9 ass QtCreator can handle many Qt versions.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          M 1 Reply Last reply 1 Jun 2017, 08:29
                          4
                          • J jsulm
                            1 Jun 2017, 06:52

                            @nhatquang Install Qt 5.8 and use it for your plug-in. You can keep Qt 5.9 ass QtCreator can handle many Qt versions.

                            M Offline
                            M Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on 1 Jun 2017, 08:29 last edited by
                            #13

                            @jsulm
                            So the 5.8 -> 5.9 will be too much version span for plugin to load ?

                            J 1 Reply Last reply 1 Jun 2017, 09:01
                            0
                            • M mrjj
                              1 Jun 2017, 08:29

                              @jsulm
                              So the 5.8 -> 5.9 will be too much version span for plugin to load ?

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 1 Jun 2017, 09:01 last edited by
                              #14

                              @mrjj I guess so. 5.8.0 -> 5.8.1 should be OK, but 5.8 -> 5.9 probably not.

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              N 1 Reply Last reply 2 Jun 2017, 04:18
                              2
                              • J jsulm
                                1 Jun 2017, 09:01

                                @mrjj I guess so. 5.8.0 -> 5.8.1 should be OK, but 5.8 -> 5.9 probably not.

                                N Offline
                                N Offline
                                nhatquang
                                wrote on 2 Jun 2017, 04:18 last edited by
                                #15

                                I'm stuck ! I can't do successfully

                                1 Reply Last reply
                                0

                                1/15

                                31 May 2017, 09:00

                                • Login

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