Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38636

Qt 4.8.6 can't deploy on OSX while Qt 4.8.5 can

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 4.8.6
    • Fix Version/s: 4.8.6
    • Component/s: Packaging & Installer
    • Labels:
      None
    • Environment:
      Mac OSX 10.8.2
    • Platform/s:
      macOS

      Description

      Hello,
      I’ve been successfully deploying with Qt 4.8.5 several times and now that I switched to Qt 4.8.6 I can’t anymore.
      It seems the system paths of where the Qt libraries are installed, are ignored, and instead the “otool -L” command on my binaries shows
      “/usr/local/Trolltech/Qt-4.8.6/lib/Qt…” which doesn’t even exist.

      It seems the only place where it is defined is:
      qconfig.pri:QMAKE_RPATHDIR += “/usr/local/Trolltech/Qt-4.8.6/lib”
      in /usr/local/Qt4.8/mkspecs

      So my nametool instructions fails to detect the right paths (which should be /Library/Frameworks/Qt*.framework) and the resulting bundle is corrupted, or works only if Qt is installed in the system.

      I uninstalled Qt 4.8.5 using the uninstall-qt.py tool and then I’ve installed Qt 4.8.6.
      Did I miss something ?
      Does anyone have a suggestion about this ?

      When I uninstalled 4.8.6 and reinstalled 4.8.5 the qconfig.pri doesn’t even have a QMAKE_RPATHDIR variable.
      I also double checked the 4.8.6 release notes and this change is not mentioned.
      Maybe it was worth a word since it dramatically changes things when deploying ?
      I also tried to comment the guilty line from qconfig.pri in Qt 4.8.6 but the result is the same.
      It seems that path is hardcoded in the libraries.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            releaseteam Qt Release Team
            Reporter:
            mcallegari79 Massimo Callegari
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes