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

macdeployqt misses some libraries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.2.2
    • None
    • MacBook Pro M1 Pro, macOS Monterey 12.2
    • macOS

    Description

      I think `macdeployqt` is missing a library during the deployment process! 
      After deploying and singing my app, I notice that my `.app` doesn't run and it crashes. Since I had some RPATH issues I headed to the `.app/Contents/MacOS` to check my binary. Attempting to run it leads to an DYLD error indicating that a library is missing. So, `libbrotlidec.1.dylib` is looking for `libbrotlicommon.1.dylib` and it cannot find it, and if I just manually copy the library in the Frameworks everything is fine. 

      ❯ ./JASP
       dyld[60834]: Library not loaded: @loader_path/libbrotlicommon.1.dylib
       Referenced from: /Users/amabdol/Developer/JASP/jasp-desktop/build/Install/JASP.app/Contents/Frameworks/libbrotlidec.1.dylib
       Reason: tried: '/Users/amabdol/Developer/JASP/jasp-desktop/build/Install/JASP.app/Contents/Frameworks/libbrotlicommon.1.dylib' (no such file), '/usr/lib/libbrotlicommon.1.dylib' (no such file)
       [1] 60834 abort ./JASP

      and the otool output of the binary is as follow,

      ❯ otool -L JASP
       JASP:
       @loader_path/../Frameworks/libreadstat.1.dylib (compatibility version 3.0.0, current version 3.7.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11) 
      @executable_path/../Frameworks/R.framework/Versions/4.1-arm64/Resources/lib/libR.dylib (compatibility version 4.1.0, current version 4.1.2) /usr/lib/libarchive.2.dylib (compatibility version 9.0.0, current version 9.2.0) 
      @loader_path/../Frameworks/libjsoncpp.25.dylib (compatibility version 25.0.0, current version 25.0.0) @loader_path/../Frameworks/QtWebEngineWidgets.framework/Versions/A/QtWebEngineWidgets (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtWebEngineQuick.framework/Versions/A/QtWebEngineQuick (compatibility version 6.0.0, current version 6.2.2) 
      @loader_path/../Frameworks/QtWebEngineCore.framework/Versions/A/QtWebEngineCore (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtPositioning.framework/Versions/A/QtPositioning (compatibility version 6.0.0, current version 6.2.2) 
      @loader_path/../Frameworks/QtWebChannel.framework/Versions/A/QtWebChannel (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtSvg.framework/Versions/A/QtSvg (compatibility version 6.0.0, current version 6.2.2) 
      @loader_path/../Frameworks/QtPrintSupport.framework/Versions/A/QtPrintSupport (compatibility version 6.0.0, current version 6.2.2) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 56.0.0) /usr/lib/libcups.2.dylib (compatibility version 2.0.0, current version 2.14.0) @loader_path/../Frameworks/QtXml.framework/Versions/A/QtXml (compatibility version 6.0.0, current version 6.2.2) 
      @loader_path/../Frameworks/QtQuickControls2.framework/Versions/A/QtQuickControls2 (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtQuickControls2Impl.framework/Versions/A/QtQuickControls2Impl (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtQuickWidgets.framework/Versions/A/QtQuickWidgets (compatibility version 6.0.0, current version 6.2.2) 
      @loader_path/../Frameworks/QtWidgets.framework/Versions/A/QtWidgets (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtCore5Compat.framework/Versions/A/QtCore5Compat (compatibility version 6.0.0, current version 6.2.2) 
      @loader_path/../Frameworks/QtQuickTemplates2.framework/Versions/A/QtQuickTemplates2 (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtQuick.framework/Versions/A/QtQuick (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtOpenGL.framework/Versions/A/QtOpenGL (compatibility version 6.0.0, current version 6.2.2) 
      @loader_path/../Frameworks/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.2.2) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2113.20.111) /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 258.17.0) 
      @loader_path/../Frameworks/QtQmlModels.framework/Versions/A/QtQmlModels (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtDBus.framework/Versions/A/QtDBus (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtQmlWorkerScript.framework/Versions/A/QtQmlWorkerScript (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtQml.framework/Versions/A/QtQml (compatibility version 6.0.0, current version 6.2.2) 
      @loader_path/../Frameworks/QtNetwork.framework/Versions/A/QtNetwork (compatibility version 6.0.0, current version 6.2.2) @loader_path/../Frameworks/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.2.2) /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1200.3.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              mrmsdbdl Amir Masoud Abdol
              Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes