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

macdeployqt does not! fixup platform plugin @loader_path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.2
    • None
    • macOS

    Description

      Built an app and fired macdeployqt. This is the otool output 

      _CPack_Packages/Darwin/DragNDrop/albert/albert.app/Contents/PlugIns/platforms/libqcocoa.dylib
                cmd LC_RPATH
            cmdsize 40
               path @loader_path/../../lib (offset 12)
      --
                cmd LC_RPATH
            cmdsize 40
               path @loader_path/../../lib (offset 12)
      _CPack_Packages/Darwin/DragNDrop/albert/albert.app/Contents/PlugIns/platforms/libqcocoa.dylib (architecture x86_64):
          […]
          @rpath/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.5.2)
          […]
          @rpath/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.5.2)
          […]
      _CPack_Packages/Darwin/DragNDrop/albert/albert.app/Contents/PlugIns/platforms/libqcocoa.dylib (architecture arm64):
          […]
          @rpath/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.5.2)     
          […]
          @rpath/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.5.2)
          […]

      LC_RPATH @loader_path/../../lib

      This make sense in the QT_DIR but the correct path of libraries in a macos bundle is @loader_path/../../Frameworks where macdepoyqt puts the libraries. ofc running the app fails due to the missing library.  

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            manuelschneid3r Manuel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes