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. Executable size and dependencies (newbie)
Forum Updated to NodeBB v4.3 + New Features

Executable size and dependencies (newbie)

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.9k 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.
  • LeandroAL Offline
    LeandroAL Offline
    LeandroA
    wrote on last edited by LeandroA
    #1

    Hi,
    This is my 2nd post here :)
    I'm getting to know Qt and I created simple QtWidgets like "hello world", text box, command button, ...

    I'm curious about the executable size and its dependencies.
    For a simple hello world, pressing F5 generated a .exe larger than 1Mb! Yet when I try to run it outside Qt <F5>, it says a lot of dlls are missing.

    Can anyone give me some directions here?
    Say this hello world would be my 1st release. How do I set it up so I get a proper size for the executable and its dependencies, how do I know which DLLs will I need?

    jsulmJ 2 Replies Last reply
    0
    • LeandroAL LeandroA

      Hi,
      This is my 2nd post here :)
      I'm getting to know Qt and I created simple QtWidgets like "hello world", text box, command button, ...

      I'm curious about the executable size and its dependencies.
      For a simple hello world, pressing F5 generated a .exe larger than 1Mb! Yet when I try to run it outside Qt <F5>, it says a lot of dlls are missing.

      Can anyone give me some directions here?
      Say this hello world would be my 1st release. How do I set it up so I get a proper size for the executable and its dependencies, how do I know which DLLs will I need?

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

      @LeandroA I guess you're building in debug mode? Try to build in release mode, then it should be smaller.
      Regarding dependencies: read this http://doc.qt.io/qt-5/windows-deployment.html

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

      1 Reply Last reply
      0
      • LeandroAL LeandroA

        Hi,
        This is my 2nd post here :)
        I'm getting to know Qt and I created simple QtWidgets like "hello world", text box, command button, ...

        I'm curious about the executable size and its dependencies.
        For a simple hello world, pressing F5 generated a .exe larger than 1Mb! Yet when I try to run it outside Qt <F5>, it says a lot of dlls are missing.

        Can anyone give me some directions here?
        Say this hello world would be my 1st release. How do I set it up so I get a proper size for the executable and its dependencies, how do I know which DLLs will I need?

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

        @LeandroA Actually even in debug mode your executable should be much smaller than 1MB!
        On which OS are you, which Qt version are you using and what is the compiler?

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

        1 Reply Last reply
        0
        • LeandroAL Offline
          LeandroAL Offline
          LeandroA
          wrote on last edited by LeandroA
          #4

          Thanks jsulm,
          Yesterday I run it in debug mode pressing <F5> and the executable file was exactly 1.3Mb.
          Today I compiled the same using <F5> and I get the .exe with 26Kb.
          I'll never know why the difference.
          Screenshot: http://s31.postimg.org/3whk2cixn/s20160627154451.png

          Thanks!
          http://doc.qt.io/qt-5/windows-deployment.html was very useful!

          1 Reply Last reply
          0
          • LeandroAL Offline
            LeandroAL Offline
            LeandroA
            wrote on last edited by LeandroA
            #5

            configure.exe and nmake.exe shown here (http://doc.qt.io/qt-5/windows-deployment.html ) are missing for me:
            Screenshots:
            http://s31.postimg.org/ekpwexiaj/s20160627160209.png
            http://s31.postimg.org/x1kb5qy8r/s20160627160406.png
            http://s31.postimg.org/5d29bz0m3/s20160627162620.png
            Am I missing something?

            If I install this "MSVC2013 64-bit" then I can compile projects using it or it is just a "bridge" to the installed MSVC?

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

              HI,

              If you install a MSVC build of Qt, you also need to install the matching Visual Studio. It's not something that the installer can do for you because it's exclusively provided by Microsoft.

              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
              • LeandroAL Offline
                LeandroAL Offline
                LeandroA
                wrote on last edited by
                #7

                Thanks!
                Excuse my ignorance. :)
                I'm getting acquainted with Qt.

                Thanks for the patience.

                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