Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

trying to deploy with macdeployqt and subdirs project.



  • Hello I'm attempting to deploy a subdirs project release on Mac Catalina. I can confirm i'm using the correct version macdeployqt for my Qt build, however when I try to run the executable/dmg i'm getting an error which i believe points to some of my dylib files as being missing. In my main .pro file i have used the .depends to point to my library.

    Crashed Thread: 0

    Exception Type: EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Exception Note: EXC_CORPSE_NOTIFY

    Termination Reason: DYLD, [0x1] Library missing

    Application Specific Information:
    dyld: launch, loading dependent libraries

    Dyld Error Message:
    Library not loaded: libTree_Core.1.dylib
    Referenced from: /Volumes/VOLUME/TreeView.app/Contents/MacOS/TreeView
    Reason: image not found

    Binary Images:
    0x10e1bd000 - 0x10e1d2ff7 +test.TreeView (0) <316CFA14-C20D-3EB6-B81F-3BDB28D50FB5> /Volumes/VOLUME/TreeView.app/Contents/MacOS/TreeView
    0x119539000 - 0x1195caeff dyld (750.5) <1F893B81-89A5-3502-8510-95B97B9F730D> /usr/lib/dyld

    My question is how do i add my .dylib file to the .dmg file and where must it be placed within the .dmg file?



  • Hello SGaist, it looks like I was able to get it going. useing macdeploy using libpath=


  • Lifetime Qt Champion

    Hi,

    Did you check the content of the app bundle after the run of macdeployqt ?

    Did you try to increase the verbosity of macdeployqt to see if there was a message related to your libraries ?



  • Hello SGaist, it looks like I was able to get it going. useing macdeploy using libpath=


Log in to reply