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

macdeployqt -use-debug-libs is broken in Qt 5.5

    XMLWordPrintable

Details

    Description

      This comes as a result of the fix for QTBUG-31814, which allows mac apps to specify library dependencies using @rpath. i.e. running otool -L on your newly built Qt app will look something like:

      @rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.5.0, current version 5.5.0)
      @rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.5.0, current version 5.5.0)

      Now, macdeployqt only needs to patch the LC_RPATH load command to point to @executable_path/../Frameworks, and the app should work fine.

      But when -use-debug-libs is specified, macdeployqt will only copy debug libs (QtCore_debug, etc) to the app bundle, yet the app itself still points to QtCore, and thus the app won't run because it can't find QtCore - only QtCore_debug was copied.

      Either -use-debug-libs should copy both debug and release Qt libs, or macdeployqt should continue to use install_name_tool to patch the app with the correct path to the debug Qt libs.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            troybowman Troy Bowman
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes