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

Qt binaries

Scheduled Pinned Locked Moved General and Desktop
15 Posts 9 Posters 6.7k Views 1 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.
  • K Offline
    K Offline
    Ketan Shah
    wrote on last edited by
    #1

    Can I make my Qt binaries static..and does it mean that i have to buy a Qt license or is it ok if I use the Qt open source and make my binaries static.

    I tried searching this in many forums including this but still I am not clear.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      Absolutely the answer is yes. You need compile it from source. See "configure --help" for more detailed information.

      Chuck

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on last edited by
        #3

        If you release your program under the GPL license, you can use Qt statically built. I don't see any good reason not to use the dynamic libraries though (especially on unices, where dynamic linking has grown from preference to pretty much a rule).

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          It is recommended not to use static linkage with lgpled libraries. Not sure about gpl btw.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            loladiro
            wrote on last edited by
            #5

            If you want to use Qt as a static library, you either have to publish your application under the GPL, or buy a commercial license.

            EDIT: Wow, 4 answers in 30 sec. That has never happened to me

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chuck Gao
              wrote on last edited by
              #6

              [quote author="loladiro" date="1308840326"]If you want to use Qt as a static library, you either have to publish your application under the GPL, or buy a commercial license.

              EDIT: Wow, 4 answers in 30 sec. That has never happened to me[/quote]

              haha :D

              Chuck

              1 Reply Last reply
              0
              • K Offline
                K Offline
                koahnig
                wrote on last edited by
                #7

                From a technical point you can generate static libraries based on open source license.

                The tricky question is how you like to distribute your applications. I guess it is the legal aspect you like to have an answer for. Unfortunately, I am not an laywer.

                Vote the answer(s) that helped you to solve your issue(s)

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Smar
                  wrote on last edited by
                  #8

                  LGPL and GPL both allows static linking; you just must provide source of your application. LGPL allows closed source programs when the LGPL library is linked in shared manner.

                  There is tons of material available about this issue: http://developer.qt.nokia.com/search/tag/licensing

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    Ketan Shah
                    wrote on last edited by
                    #9

                    Hi,

                    1. My software will be closed source. So I guess I will have to buy a license of QT for which I dont have the money.

                    2. If I dynmically link to libraries, is there a way to reduce the SIZE of the QT libraries ? They are like 100+ MB !

                    When I statically link my software its just 8MB in total.
                    It would be best if its possible to statically link the library for closed source applications.

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      giesbert
                      wrote on last edited by
                      #10

                      [quote author="Ketan Shah" date="1308896414"]Hi,

                      1. My software will be closed source. So I guess I will have to buy a license of QT for which I dont have the money.
                      2. If I dynmically link to libraries, is there a way to reduce the SIZE of the QT libraries ? They are like 100+ MB !
                        When I statically link my software its just 8MB in total.
                        It would be best if its possible to statically link the library for closed source applications.[/quote]

                      Are you talking about debug or release versions?
                      You only have to deliver the dlls you need. It uses more space than statically linked, that's correct.

                      But QtCore & QtGui for example, together in release for MSVS2008 is 10 MB, with mingw it is 12 MB. So select, which libs you need, and it should be less then 100 MB

                      Nokia Certified Qt Specialist.
                      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        Ketan Shah
                        wrote on last edited by
                        #11

                        where are these dlls, I cant find ...
                        are u referring E:\Qt\2010.05\qt\bin\QtCore4.dll..

                        how can I add it to my release folder, because manually adding dlls in the release folder doesnt works.please reply...

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          loladiro
                          wrote on last edited by
                          #12

                          They have to be in the same folder as your application (you can manually copy them). make sure you have QtCore4.dll and all other modules you use (e.g. QtGui.dll). You also have to have the mingw (I don't know the exact name) dll (should be in the mingw bin folder if I remember correctly). You can use the "dependency walker":http://www.dependencywalker.com/ to find out which ones you need!

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            Ketan Shah
                            wrote on last edited by
                            #13

                            but from which folder I can copy these dlls into my application folder...

                            1 Reply Last reply
                            0
                            • G Offline
                              G Offline
                              goetz
                              wrote on last edited by
                              #14

                              May I kindly redirect you to the "Deploying Qt Applications":http://developer.qt.nokia.com/doc/qt-4.7/deployment.html documentation page and the various "other threads":http://developer.qt.nokia.com/search/tag/deployment on this topic please.

                              http://www.catb.org/~esr/faqs/smart-questions.html

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                giesbert
                                wrote on last edited by
                                #15

                                YOu should look in the folder you use, not in QtCreatiors folder:

                                <Qt SDK dir>\Desktop\Qt\4.7.2\msvc2008\bin

                                Nokia Certified Qt Specialist.
                                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                                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