Results 1 to 6 of 6

Thread: Distributing qt applications

  1. #1
    Join Date
    Nov 2010
    Posts
    9
    Thanks
    1

    Default Distributing qt applications

    Hi guys,

    lately I started developing a small tool with a qt gui. Actually I used qtJambi.

    My question is if it is possible to pack the required libraries further. The default qt library for win32 for instance is ~18MB. For a very small tool this seems unreasonable.

    Regards

  2. #2
    Join Date
    Sep 2010
    Posts
    145
    Thanks
    1
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Distributing qt applications

    Check out upx.

  3. #3
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Distributing qt applications

    If you want a small size app don't use qt (nor java, nor any other lib). Code native.

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Distributing qt applications

    I don't know what OS your coding under, but under Linux, the size of the library is irrelevant as only one copy is needed and is typically used by other apps anyway.

    It only becomes an issue on Windows, where there is no standard library system.

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Distributing qt applications

    In my Qt install on Windows the core libraries are QtCore4.dll at 2.3 MB and QtGui4.dll at 9.1 MB for a total of 11.3 MB. When you package them for distribution with something like NSIS and the lzma compression they come down to slightly smaller than 4 MB. Sure they take up the same space when unpacked but they are hardly a major imposition for the utility they provide. They are much smaller than the Java runtime that Jambi will also require on the target machine. To make the installed size smaller see the upx suggestion above.

  6. #6
    Join Date
    Nov 2010
    Posts
    9
    Thanks
    1

    Default Re: Distributing qt applications

    thanks for all your answers.

    In fact I'm programming on windows and need to distribute mainly to windows.

    I'll dig into the upx stuff, thanks for the suggestion.

    regards

Similar Threads

  1. Distributing my app
    By been_1990 in forum Qt Programming
    Replies: 8
    Last Post: 21st September 2010, 15:11
  2. Distributing applications which use QSslSocket
    By walec51 in forum Qt Programming
    Replies: 4
    Last Post: 9th April 2008, 10:49
  3. Distributing multiple Qt applications?
    By gfunk in forum Qt Programming
    Replies: 5
    Last Post: 23rd August 2007, 17:41
  4. Distributing Qt programs
    By scwizard in forum Qt Programming
    Replies: 3
    Last Post: 19th March 2007, 22:36
  5. Distributing apps on a CD
    By munna in forum General Discussion
    Replies: 1
    Last Post: 1st November 2006, 21:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.