Results 1 to 5 of 5

Thread: deployment size issues, please help

  1. #1
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question deployment size issues, please help

    Hi i just created some apps and was deploying a simple binary to hex converter
    The app was desiged in release mode with executable less than 500kb but With the executable to run on any windowsi had to provide 3 extra things with the executable in setup

    mingwm10.dll
    qtcore4.dll
    qtgui4.dll

    The total accounted for around 13.4 mb with qtgui4.dll tking about 10 mb

    so i was hoping anyone can tell me is there a better way out so that to reduce the size of such a small app to less than 1mb or less, . It is just a binary to hexadecimal converter and should not take such huge size
    Last edited by udit; 14th August 2009 at 20:21. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: deployment size issues, please help

    if you have a commercial license, you can do static linking.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: deployment size issues, please help

    Packing exe and libraries with UPX will also help.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: deployment size issues, please help

    Quote Originally Posted by axeljaeger View Post
    if you have a commercial license, you can do static linking.
    ...or using the GPL.

  5. #5
    Join Date
    Jul 2008
    Location
    London, UK
    Posts
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: deployment size issues, please help

    To follow up Boron's post. Statically link Qt and run UPX over the final executable. You can find UPX here http://upx.sourceforge.net/

    To give you some context. I've got a fairly complex UI here with embedded webkit and a lot of other code in (server IO etc). I'm using Core, Gui, Network, Xml, OpenGL and Webkit in this project and the statically linked binary is around 14.1 megabytes. Once UPX'd the size of this falls to 4.5 megabytes - I HUGE saving - plus I've just got one exe to deploy to my users. A very simple installation task.

Similar Threads

  1. resizing widgets depending on a main widget size
    By luf in forum Qt Programming
    Replies: 6
    Last Post: 10th October 2009, 16:13
  2. Reducing deployment size
    By zoharl in forum Installation and Deployment
    Replies: 3
    Last Post: 11th March 2008, 20:16
  3. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  4. size issues for custom QWidget in QScrollArea
    By anotheruser in forum Qt Programming
    Replies: 1
    Last Post: 27th April 2006, 14:52
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

Tags for this Thread

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.