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. why the size of my qt file is very big?
Forum Updated to NodeBB v4.3 + New Features

why the size of my qt file is very big?

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 5 Posters 5.4k 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.
  • RIVOPICOR RIVOPICO

    @jsulm i build with static libraries using qt in debug mode and release i can too. but the size is very big. its not possible to reduce the size or make my application more light?

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

    @RIVOPICO said in why the size of my qt file is very big?:

    static libraries

    Well, that explains it. You can't expect your executable to be small if you use static libs. Why is it an issue if your executable is 27MB? Do you use it on a very limited hardware?
    Use release mode then it should become smaller (but still bigger than using shared libraries).

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

    1 Reply Last reply
    3
    • RIVOPICOR RIVOPICO

      @jsulm i build with static libraries using qt in debug mode and release i can too. but the size is very big. its not possible to reduce the size or make my application more light?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #6

      @RIVOPICO said in why the size of my qt file is very big?:

      @jsulm i build with static libraries using qt in debug mode and release i can too. but the size is very big. its not possible to reduce the size or make my application more light?

      Yes, you can certainly make it smaller by using dynamic libraries instead of static ones! You may get a size reduction in Release instead of Debug mode.

      1 Reply Last reply
      0
      • RIVOPICOR RIVOPICO

        @jsulm i build with static libraries using qt in debug mode and release i can too. but the size is very big. its not possible to reduce the size or make my application more light?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #7

        @RIVOPICO Theres also Qt Lite if you're interested in that.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        RIVOPICOR 1 Reply Last reply
        3
        • J.HilkJ J.Hilk

          @RIVOPICO Theres also Qt Lite if you're interested in that.

          RIVOPICOR Offline
          RIVOPICOR Offline
          RIVOPICO
          wrote on last edited by
          #8

          @J.Hilk how much is the difference between qt lite and normal? and for using static libraries i must to setup it again or can use the currently static configuration installed in my pc and use it?

          1 Reply Last reply
          0
          • RIVOPICOR Offline
            RIVOPICOR Offline
            RIVOPICO
            wrote on last edited by
            #9

            in qt 5.9 can i use msvc static if i did it with other version of qt? in my case i have qt 5.6

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

              Hi,

              With Qt Lite you can remove everything you don't use and that is not a dependency of what you are using. So it might be a lot.

              If you want to use a Qt 5.9 static build, then you'll have to build it yourself. Keep in mind the licensing implication of using a static build of Qt.

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

              RIVOPICOR 1 Reply Last reply
              1
              • SGaistS SGaist

                Hi,

                With Qt Lite you can remove everything you don't use and that is not a dependency of what you are using. So it might be a lot.

                If you want to use a Qt 5.9 static build, then you'll have to build it yourself. Keep in mind the licensing implication of using a static build of Qt.

                RIVOPICOR Offline
                RIVOPICOR Offline
                RIVOPICO
                wrote on last edited by
                #11

                @SGaist ok thanks. but i have the static compilation with msvc2013 so i can import to qt 5.9?

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

                  What do you mean by import ?

                  You either build your application with your static 5.6 or with your current 5.9.

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

                  RIVOPICOR 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What do you mean by import ?

                    You either build your application with your static 5.6 or with your current 5.9.

                    RIVOPICOR Offline
                    RIVOPICOR Offline
                    RIVOPICO
                    wrote on last edited by
                    #13

                    @SGaist i build qt 5.6 static with msvc2013 and it's static. If i use a new version of qt 5.9 i can use my static compiler because maybe i'm wrong but msvc static is the compiler not qt. So like i have msvc 2013 static maybe i can use it on the new version of qt without repeating all the process not sure.

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

                      There's no such thing as a "static compiler". You compiled a static version of Qt which is a set of libraries., So when building your application with that version of Qt, you'll be linking to it.

                      The version of Qt 5.9 that you installed is a set of shared libraries. So if you want to link to a 5.9 statically, you will first have to compile it statically.

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

                      1 Reply Last reply
                      0
                      • RIVOPICOR Offline
                        RIVOPICOR Offline
                        RIVOPICO
                        wrote on last edited by
                        #15

                        then i prefer to search other solution to qt lite. because reconfigure of new is for sure difficult again.

                        1 Reply Last reply
                        0
                        • RIVOPICOR Offline
                          RIVOPICOR Offline
                          RIVOPICO
                          wrote on last edited by
                          #16

                          i have installed qt 5.7 but like you say must to do everything again, so prefer to search other way. i will try if get other way if not i will must to be happy with the size.

                          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