Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How do I make apps smaller with qmake and macdeployqt
Qt 6.11 is out! See what's new in the release blog

How do I make apps smaller with qmake and macdeployqt

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 2.5k 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.
  • D Offline
    D Offline
    danieloberg
    wrote on last edited by
    #1

    How do I make apps smaller with qmake and macdeployqt?

    I have set QT = core gui in the projects .pro file and run qmake and macdeployqt on the resulting app.

    The problem is that the program is bundling QtNetwork, QtScript, QtSvg etc. I've tried setting QT -= network script svg (and then make clean, rm -rf *.app, qmake, make).

    In total the app is 32 MB.

    .pro file:
    @
    TEMPLATE = app
    TARGET = throw
    DEPENDPATH += .
    INCLUDEPATH += .
    CONFIG += x86_64 release
    QT = core gui

    unix {
    CONFIG += link_pkgconfig
    PKGCONFIG += glib-2.0
    }

    Input

    SOURCES += main.cpp

    Headers

    HEADERS += throw.h

    RESOURCES += throw.qrc

    ICON = throw.png

    mac {
    QMAKE_INFO_PLIST = Info.plist
    ICON = throw.icns
    }
    @

    [edit: code highlighted / Denis Kormalev]

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Don't forget to highlight your code blocks with @.

      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