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. Why does macdeployqt create a frameworks dir..

Why does macdeployqt create a frameworks dir..

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 1.6k 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.
  • P Offline
    P Offline
    PSI-lbc
    wrote on last edited by
    #1

    Why does macdeployqt create a frameworks directory populated with parts of the Qt framework not used by the Application?

    I do "otool -L appbundle" and the output lists a few Qt frameworks I know are used by the application.

    When I run "macdeployqt appbundle" the framework is populated with most if not all Qt frameworks and a boatload of plugins regardless of whether the application actually uses them or not.

    Is it safe to delete the Qt frameworks from the Appbundle/Frameworks directory not listed in the otool output?

    Is there a command line option for macdeployqt that I'm missing?

    I don't want to deploy unnecessary frameworks if they aren't required.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jakepetroules
      wrote on last edited by
      #2

      This is a known issue. It's been fixed in Qt 5. See:

      https://bugreports.qt-project.org/browse/QTBUG-14699
      https://bugreports.qt-project.org/browse/QTBUG-18172
      https://bugreports.qt-project.org/browse/QTBUG-18189

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PSI-lbc
        wrote on last edited by
        #3

        Thx for the reply. Is there a way to address this short of upgrading to Qt 5 ?

        I'm using 4.7.3 and would prefer to not change horses mid-stream...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can safely remove everything that is not used/linked to your application from the bundle.
          Also, if you have external dependencies, check that their path are set to use what's inside your bundle (i.e otool -L)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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