Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Qt for Python - closed-source application as single executable?
Forum Updated to NodeBB v4.3 + New Features

Qt for Python - closed-source application as single executable?

Scheduled Pinned Locked Moved Solved Qt for Python
7 Posts 4 Posters 1.4k 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.
  • A Offline
    A Offline
    ALIENQuake
    wrote on last edited by ALIENQuake
    #1

    Hello,

    I want to create application using Open Source version of Qt + Qt for Python. The distribution requirements is: it has to be single executable with all dll/files bundles inside. The application will be closed source.

    1. Can i do this technically?
    2. No licensing problems?
    B CristianMaureiraC 2 Replies Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      Nope...when you use python you accept that the code is distributed in multiple files. If you must do single file executable then write it in C++ and hope that static linking is fully supported on your platform.

      Also, generally speaking you cannot do a statically linked closed source program if it contains open source code in it.

      A 1 Reply Last reply
      0
      • Kent-DorfmanK Kent-Dorfman

        Nope...when you use python you accept that the code is distributed in multiple files. If you must do single file executable then write it in C++ and hope that static linking is fully supported on your platform.

        Also, generally speaking you cannot do a statically linked closed source program if it contains open source code in it.

        A Offline
        A Offline
        ALIENQuake
        wrote on last edited by ALIENQuake
        #3

        @kent-dorfman said in Qt for Python as single executable.:

        Also, generally speaking you cannot do a statically linked closed source program if it contains open source code in it.

        What do you mena by that? When I compile application and I link all dll, I'm not modifying the source of those dll library's. And if someone puts his ow version of the library's at the same folder where the executable is, Dynamic-Link Library Redirection will load those custom library's instead of the linked ones, at least on Windows. So the LGPL requirement is fulfill.

        Kent-DorfmanK 1 Reply Last reply
        0
        • A ALIENQuake

          @kent-dorfman said in Qt for Python as single executable.:

          Also, generally speaking you cannot do a statically linked closed source program if it contains open source code in it.

          What do you mena by that? When I compile application and I link all dll, I'm not modifying the source of those dll library's. And if someone puts his ow version of the library's at the same folder where the executable is, Dynamic-Link Library Redirection will load those custom library's instead of the linked ones, at least on Windows. So the LGPL requirement is fulfill.

          Kent-DorfmanK Offline
          Kent-DorfmanK Offline
          Kent-Dorfman
          wrote on last edited by
          #4

          @alienquake you inferred static linking where there is one executable (all dll/files inside). that would be verboten under LGPL.

          A 1 Reply Last reply
          0
          • Kent-DorfmanK Kent-Dorfman

            @alienquake you inferred static linking where there is one executable (all dll/files inside). that would be verboten under LGPL.

            A Offline
            A Offline
            ALIENQuake
            wrote on last edited by ALIENQuake
            #5

            @kent-dorfman said in Qt for Python - closed-source application as single executable?:

            @alienquake you inferred static linking where there is one executable (all dll/files inside). that would be verboten under LGPL.

            Static linking is not forbidden under LGPL. If the app uses statically linked LGPL library, all you have to do is provide your object files and the LGPL requirement is still satisfied. Or use Dynamic-Link Library Redirection feature. It's written inside LGPL FAQ: https://www.gnu.org/licenses/gpl-faq.en.html#LGPLStaticVsDynamic

            1 Reply Last reply
            0
            • A ALIENQuake

              Hello,

              I want to create application using Open Source version of Qt + Qt for Python. The distribution requirements is: it has to be single executable with all dll/files bundles inside. The application will be closed source.

              1. Can i do this technically?
              2. No licensing problems?
              B Offline
              B Offline
              bers
              wrote on last edited by
              #6

              @ALIENQuake said in Qt for Python - closed-source application as single executable?:

              Can i do this technically?

              Yes. Check out pyinstaller or nuitka.

              1 Reply Last reply
              0
              • A ALIENQuake

                Hello,

                I want to create application using Open Source version of Qt + Qt for Python. The distribution requirements is: it has to be single executable with all dll/files bundles inside. The application will be closed source.

                1. Can i do this technically?
                2. No licensing problems?
                CristianMaureiraC Offline
                CristianMaureiraC Offline
                CristianMaureira
                wrote on last edited by
                #7

                @ALIENQuake check the scriptableapplication example. It's a Qt/C++ application that includes a Python interpreter, so you can access some of the Qt C++ objects from Python.
                Then it will be a matter of how you compile/package your app.
                If you app follows LGPL, then you need to make the code available. If you hold a Qt Commercial license, then you can not make the code available and distribute the application.

                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