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

macOS binaries have incorrect LC_RPATH

    XMLWordPrintable

Details

    Description

      Running e.g. designer.app fails:

      ./designer.app/Contents/MacOS/designer 
      dyld: Library not loaded: @rpath/QtDesignerComponents.framework/Versions/6/QtDesignerComponents
        Referenced from: /Users/msorvig/Qt/6.0.0/clang_64/bin/./designer.app/Contents/MacOS/designer
        Reason: image not found
      

      Where does @rpath point to?

      otool -l ./designer.app/Contents/MacOS/designer 
      ...
      Load command 35
            cmd LC_RPATH
            cmdsize 40
            path /Users/qt/work/install/lib (offset 12)
      

      Looks like "/Users/qt/work/install/lib" is a local build system path.

      Attachments

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

        Activity

          People

            alexandru.croitor Alexandru Croitor
            sorvig Morten Sørvig
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes