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
Forum Updated to NodeBB v4.3 + New Features

Plugin loading failed

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 5 Posters 3.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.
  • Vinod KuntojiV Offline
    Vinod KuntojiV Offline
    Vinod Kuntoji
    wrote on 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
    1
    • N nhatquang

      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,

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      0
      • jsulmJ jsulm

        @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 last edited by
        #5

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

        mrjjM 1 Reply Last reply
        0
        • N nhatquang

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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on 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
          2
          • Vinod KuntojiV Vinod Kuntoji

            @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 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
            • mrjjM mrjj

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

              mrjjM 1 Reply Last reply
              0
              • N nhatquang

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

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on 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
                • mrjjM mrjj

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

                  mrjjM jsulmJ 2 Replies Last reply
                  0
                  • N nhatquang

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

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

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

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 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

                      mrjjM 1 Reply Last reply
                      4
                      • jsulmJ jsulm

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

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

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

                        jsulmJ 1 Reply Last reply
                        0
                        • mrjjM mrjj

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

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 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
                          • jsulmJ jsulm

                            @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 last edited by
                            #15

                            I'm stuck ! I can't do successfully

                            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