Results 1 to 4 of 4

Thread: Huge Mac .dmg files, can anything be done to make them smaller?

  1. #1
    Join Date
    Mar 2010
    Posts
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Huge Mac .dmg files, can anything be done to make them smaller?

    Hi - My Qt app, which uses shared libs (gui, core, network and webkit) ends up as a 17mb installer on Windows (comprising my app binary plus the Qt dlls and image plugins), built with VC2010.

    I now do a Mac version. Using the standard Qt 4.7.1 distribution (for cocoa) on my Mac (Mac OSX 10.6.6) with Xcode 3.2.5 (ie using the prebuilt Qt from nokia, not one built by me). I build the app in totally standard way (qmake, then build in Xcode). I then use macdeployqt with -dmg option and get a .dmg file. Thats all fine and it works.

    But the dmg file is 44 mb big, ie almost 3 times bigger on Mac than the same program for Windows.

    Any ideas how to make for a smaller binary distribution on Mac?

    Thanks.

    PS I am definitely building in release mode.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Huge Mac .dmg files, can anything be done to make them smaller?

    Make sure all the libs are stripped. And remember you are building for a 64bit system which has bigger words, you install will always be larger than for a 32bit system.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2010
    Posts
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Huge Mac .dmg files, can anything be done to make them smaller?

    But how do I struip them? And where are they? I'm using the pre-built qt from nokia; I didnt compile it. I would have thought their release libs would already have been stripped. Thanks.

  4. #4
    Join Date
    Mar 2008
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Huge Mac .dmg files, can anything be done to make them smaller?

    Had exactly the same problem - most of the size in Mac installer comes from having both 32-bit and 64-bit versions of Qt libraries (and your executable probably) bundled together in individual files (in Mac lingo, this is called "universal binaries"). You could check this by yourself, for example through running "file" in terminal on libraries and executable in your installation directory. For this reason, I wish that Trolltech guys change this, and split 32-bit and 64-bit versions, but that probably won't happen, so your only choice at the moment is to compile Qt by yourself: I did that, and am delivering 32-bit version only of libraries and the executable in my Mac installer, and the size of installer is alike to Windows installer (still somewhat larger, but acceptable).

Similar Threads

  1. Is any way to make smaller installer package
    By jay in forum Installation and Deployment
    Replies: 6
    Last Post: 30th March 2010, 12:57
  2. How to make build smaller
    By stefan in forum Installation and Deployment
    Replies: 9
    Last Post: 10th September 2008, 20:56
  3. Huge error list from qt files
    By Raccoon29 in forum Qt Programming
    Replies: 4
    Last Post: 8th September 2008, 16:22
  4. How can I make size of QGraphicsScene smaller?
    By troorl_ua in forum Qt Programming
    Replies: 6
    Last Post: 21st April 2007, 08:56
  5. How to make .pro files
    By merry in forum Newbie
    Replies: 2
    Last Post: 8th March 2007, 21:46

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.