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?

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

Scheduled Pinned Locked Moved Solved Qt for Python
7 Posts 4 Posters 1.4k 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.
  • A Offline
    A Offline
    ALIENQuake
    wrote on 29 Aug 2019, 08:07 last edited by ALIENQuake 9 Mar 2019, 15:56
    #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 C 2 Replies Last reply 1 Jul 2023, 09:46
    0
    • K Offline
      K Offline
      Kent-Dorfman
      wrote on 1 Sept 2019, 03:01 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 3 Sept 2019, 16:10
      0
      • K Kent-Dorfman
        1 Sept 2019, 03:01

        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 3 Sept 2019, 16:10 last edited by ALIENQuake 9 Mar 2019, 16:11
        #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.

        K 1 Reply Last reply 3 Sept 2019, 16:53
        0
        • A ALIENQuake
          3 Sept 2019, 16:10

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

          K Offline
          K Offline
          Kent-Dorfman
          wrote on 3 Sept 2019, 16:53 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 4 Sept 2019, 07:12
          0
          • K Kent-Dorfman
            3 Sept 2019, 16:53

            @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 4 Sept 2019, 07:12 last edited by ALIENQuake 9 Apr 2019, 07:14
            #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
              29 Aug 2019, 08:07

              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 1 Jul 2023, 09:46 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
                29 Aug 2019, 08:07

                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?
                C Offline
                C Offline
                CristianMaureira
                wrote on 12 Jul 2023, 09:24 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