Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Application Install/Running on Windows
Forum Updated to NodeBB v4.3 + New Features

Qt Application Install/Running on Windows

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 4 Posters 4.1k 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.
  • A Offline
    A Offline
    amanhardikar
    wrote on last edited by
    #1

    Hi All,

    I created a small utility in Qt that runs good on linux.
    But, it is not running on windows without either QT SDK or the dll files.
    The application is compiled with static option, but still needs those dll.
    The dlls are around 200MB and my app is around 1MB. So, the user has to download a 200MB file [50+MB compressed].

    Just wanted to know if there is any other way of making things work on windows in a better way.
    Thanks in advance.

    Aman Hardikar
    sub@amanhardikar.com

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

      Hi,

      are you sure, you have libraries for static linking? Did you create Qt by hand for those libs? otherwise you only have dynamic libs. If you link statically, you have to regard the license issues. If you search for static linking on the forum, you will find threads about this topic.

      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
      • M Offline
        M Offline
        maciej
        wrote on last edited by
        #3

        Also check if you need all dll's. Probably you'll need only QtCore4.dll and QtGui4.dll, which should take about 15 MB instead of 200.

        Earth is a beta site.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          amanhardikar
          wrote on last edited by
          #4

          Thank you, Gerolf for the reply.

          The dlls are Qt dlls [mingw32*, QtGui*.dll ..]
          The only reason for going for static is to make the installing/running of utility easy [1 step].
          I will search in this forum also for the various linking methods/procedures.

          Aman Hardikar
          sub@amanhardikar.com

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gedd
            wrote on last edited by
            #5

            Can you post your .pro file ?
            QTCore4.dll is larger than 2 Mb so it's strange that your statically linked application was about 1MB

            Gedd

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

              I assume it's not statically linked, if he had not rebuild Qt completely.
              The SDK does not contain libs for static binding.

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

                Thank you, Maciek for the reply.
                I'll try with only those dlls and will do some trail and error method to identify only the required dlls. QtGuid4.dll alone is 147MB.

                Aman Hardikar
                sub@amanhardikar.com

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  amanhardikar
                  wrote on last edited by
                  #8

                  The .pro file of the utility is below:

                  QT += core gui

                  TARGET = concute
                  TEMPLATE = app

                  SOURCES += main.cpp
                  concute.cpp

                  HEADERS += concute.h

                  FORMS += concute.ui

                  RESOURCES +=
                  seccutersrc.qrc

                  CONFIG += static release no-exceptions

                  Aman Hardikar
                  sub@amanhardikar.com

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

                    [quote author="amanhardikar" date="1305731457"]Thank you, Maciek for the reply.
                    I'll try with only those dlls and will do some trail and error method to identify only the required dlls. QtGuid4.dll alone is 147MB.[/quote]

                    This is the debug dll!
                    You should only distribute release dlls, which means QtGui4.dll, which has (in 4.7.2, mingw) 9,7 MB

                    All dlls with the pattern XXXd4.dll are debug libraries. Take those with XXX4.dll, they are release and much smaller.

                    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
                    • A Offline
                      A Offline
                      amanhardikar
                      wrote on last edited by
                      #10

                      Thank you, Gerolf for the explanation. I thought I have to include these dlls also.
                      I removed them and tested and found the app to the running without any issues. :)

                      Aman Hardikar
                      sub@amanhardikar.com

                      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