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. What happens if I load the GPL library using Qt's QPluginLoader?
Forum Updated to NodeBB v4.3 + New Features

What happens if I load the GPL library using Qt's QPluginLoader?

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 4 Posters 1.7k 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.
  • D Offline
    D Offline
    donbit
    wrote on last edited by
    #1

    I am using Qt commercial license.

    Qt can use the *.so libraries loaded via the QPluginLoader.

    If I load the GPL v2 library through QPluginLoader in my program, will my program become GPL v2?

    My program is not a GPL because my program is not a dynamic link with the GPL library?

    I'm sorry I don't have enough English.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      It should be fine - plugin (by it's very nature) is loaded dynamically, so it is clearly a separate entity and should not force any license on your code.

      (I'm not a lawyer, though, I may be wrong about it)

      (Z(:^

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

        Hi,

        IIRC, that's more complicated than that. You should ask a lawyer or at least contact the fsfe to get their opinion on that.

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

        D 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          IIRC, that's more complicated than that. You should ask a lawyer or at least contact the fsfe to get their opinion on that.

          D Offline
          D Offline
          donbit
          wrote on last edited by
          #4

          @SGaist

          Thank you

          It has helped a lot.

          1 Reply Last reply
          0
          • sierdzioS sierdzio

            It should be fine - plugin (by it's very nature) is loaded dynamically, so it is clearly a separate entity and should not force any license on your code.

            (I'm not a lawyer, though, I may be wrong about it)

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @sierdzio I don't think FSF will agree with you. If you load a lib at runtime it is executed in your process and "extends" it - I'm quite sure FSF sees this as "derived work".

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

            sierdzioS 1 Reply Last reply
            0
            • jsulmJ jsulm

              @sierdzio I don't think FSF will agree with you. If you load a lib at runtime it is executed in your process and "extends" it - I'm quite sure FSF sees this as "derived work".

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by sierdzio
              #6

              @jsulm said in What happens if I load the GPL library using Qt's QPluginLoader?:

              @sierdzio I don't think FSF will agree with you. If you load a lib at runtime it is executed in your process and "extends" it - I'm quite sure FSF sees this as "derived work".

              Possibly. That's why it's very good that Sam recommended getting in touch with them.

              I'd definitely agree that modifying the plugin in question requires it to also be distributed under GPL.

              However, loading the plugin - in my view - does not require the project to adopt GPL. It's very similar to running a command on the command line - you are using a program, and it will modify the outcome of your script, but it does not violate GPL nor your freedoms. You can always decide to load a different plugin / run a different command that does the same work.

              (Z(:^

              jsulmJ 1 Reply Last reply
              0
              • sierdzioS sierdzio

                @jsulm said in What happens if I load the GPL library using Qt's QPluginLoader?:

                @sierdzio I don't think FSF will agree with you. If you load a lib at runtime it is executed in your process and "extends" it - I'm quite sure FSF sees this as "derived work".

                Possibly. That's why it's very good that Sam recommended getting in touch with them.

                I'd definitely agree that modifying the plugin in question requires it to also be distributed under GPL.

                However, loading the plugin - in my view - does not require the project to adopt GPL. It's very similar to running a command on the command line - you are using a program, and it will modify the outcome of your script, but it does not violate GPL nor your freedoms. You can always decide to load a different plugin / run a different command that does the same work.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @sierdzio See https://www.gnu.org/licenses/gpl-faq.en.html#NFUseGPLPlugins
                and https://www.gnu.org/licenses/gpl-faq.en.html#GPLPlugins
                Especially:
                "If the main program dynamically links plug-ins, and they make function calls to each other and share data structures, we believe they form a single combined program, which must be treated as an extension of both the main program and the plug-ins."
                They talk about dynamic linking, not loading at runtime, so I'm not sure what they think about loading at runtime.
                Asking a lawyer as a good idea :-)

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

                1 Reply Last reply
                2
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  OK that sounds like I was wrong :-)

                  (Z(:^

                  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