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

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.8.6
    • 4.8.6
    • Packaging & Installer
    • None
    • Mac OSX 10.8.2
    • 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

            releaseteam Qt Release Team
            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