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. OSX deployment ~ frameworks folder = 50MB
Qt 6.11 is out! See what's new in the release blog

OSX deployment ~ frameworks folder = 50MB

Scheduled Pinned Locked Moved Installation and Deployment
16 Posts 4 Posters 7.2k 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.
  • H Offline
    H Offline
    Hedge
    wrote on last edited by
    #5

    The libraries are already only for Intel x64 so lipo doesn't work here.

    1 Reply Last reply
    0
    • frankcyblogic.deF Offline
      frankcyblogic.deF Offline
      frankcyblogic.de
      wrote on last edited by
      #6

      I usually customize my Qt libraries for deployment. Got it down to 8MB per platform without trying to hard. Still a lot of stuff in there that I don't need.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hedge
        wrote on last edited by
        #7

        Can you provide a working qt config file?

        1 Reply Last reply
        0
        • frankcyblogic.deF Offline
          frankcyblogic.deF Offline
          frankcyblogic.de
          wrote on last edited by
          #8

          Ugh, booting up my Mac (haven't done so for weeks;).

          1 Reply Last reply
          0
          • frankcyblogic.deF Offline
            frankcyblogic.deF Offline
            frankcyblogic.de
            wrote on last edited by
            #9

            Note: This is meant to build Qt on Snow Leopard. Haven't tried it since 4.7.0.
            Have fun with it!

            @

            #! /bin/sh

            QTDIR=$PWD/qt-4.7-x86_64-reduced
            QTSRC=$PWD/qt-4.7-src

            export PATH=~/bin:$PATH # to use ccache

            rm -rf $QTDIR
            mkdir $QTDIR

            -arch 'ppc x86 x86_64' \

            cd $QTDIR
            make confclean
            export MAKEFLAGS=-j2
            printf "o\nyes\n" |
            $QTSRC/configure
            -debug-and-release
            -prefix $PWD
            -opensource
            -fast
            -no-pch
            -no-exceptions
            -no-phonon
            -no-qt3support
            -no-stl
            -no-webkit
            -no-xmlpatterns
            -no-scripttools
            -no-multimedia
            -no-declarative
            -no-dbus
            -no-javascript-jit
            -no-feature-concurrent
            -make 'libs' || exit 1
            make || exit 2
            cd ..
            @

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hedge
              wrote on last edited by
              #10

              Thanks, I'll have to tweak it a bit but that will do.

              btw. qconfig is something different. You can exclude features in it like GUI-controls to further decrease the size but it's always a gample whether they'll compile.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #11

                These is the disk space used for the Qt libs in my application (i386 + ppc universal binaries):

                @
                volker@macpro MyApp.app/Contents/Frameworks $ du -ms *.framework
                7 Qt3Support.framework
                6 QtCore.framework
                25 QtGui.framework
                3 QtNetwork.framework
                1 QtSql.framework
                1 QtSvg.framework
                54 QtWebKit.framework
                1 QtXml.framework
                15 QtXmlPatterns.framework
                1 phonon.framework
                @

                I copy the files manually (using a homebrewn script, as macdeployqt was not available when I started development). All files exist only once, with a bunch of symlinks inside the bundle. I don't know if macdeployqt strips this out, but I remove all the header files from the frameworks, that save some bytes too.

                The configure options for unclewerner just strip down the build time of the Qt libs, as not all modules are built. QtCore, QtGui and all other modules that are built, will be the same size.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  Hedge
                  wrote on last edited by
                  #12

                  I have yet to find a fully compiling qconfig-file.

                  The option -no-exceptions makes the libraries smaller though.

                  macdeployqt strips the header-information out.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #13

                    if I

                    @
                    strip Contents/Frameworks/QtGui.framework/Versions/4/QtGui
                    @

                    I get from 25 MB to 23 MB.

                    I would not bet too much on qconfig, you will waste a lot of time for not very much saved space.

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      Hedge
                      wrote on last edited by
                      #14

                      Yeah, you are right with that.

                      Why is your QtGui 25MB anyways (mine is 12 MB) ? Is it the debug-version?

                      OT: what's more important now is the problem I have with the desktop-components (http://developer.qt.nokia.com/forums/viewthread/6047). Will you look into it?

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #15

                        It has two architectures (i386 and ppc) in the universal binary. If I had x86_64 too, it would be roughly 36MB.

                        I'll have a look into the components issue tomorrow, it's just too late now (1:30 in Berlin/Europe) and I need to go to bed :-)

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0
                        • H Offline
                          H Offline
                          Hedge
                          wrote on last edited by
                          #16

                          Ah, at least I can exclude i386 and ppc here.

                          Good night and thanks for all the help.
                          This forum became quickly a new home for me.

                          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