Qt macdeploy on plugin



  • Hi,

    I've compiled plugin (dylib renamed in mrx)
    for that I use
    CONFIG += plugin no_plugin_name_prefix
    QMAKE_EXTENSION_SHLIB = $${MEDIACAD_EXT}
    My plugin use some of my dylib.

    so after qtmacdeploy link path are not correct
    ex:
    MdProfile.mrx use libMdCore.1.dylib libMdWidgets.1.dylib libMdModels.1.dylib
    but in tool -L MdProfile.mrx
    /Users/mediasoftsdev/Desktop/Mediacad2/build/MdCore/../debug/libMdCore.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /Users/mediasoftsdev/Desktop/Mediacad2/build/MdWidgets/../debug/libMdWidgets.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /Users/mediasoftsdev/Desktop/Mediacad2/build/MdModels/../debug/libMdModels.1.dylib (compatibility version 1.0.0, current version 1.0.0)

    So I would like to replace /Users/mediasoftsdev/Desktop/Mediacad2/build/MdCore/../debug/libMdCore.1.dylib by libMdCore.1.dylib

    What I have to do to have a correct path in qtmacdeploy ?
    thanks.



  • macdeployqt has never been perfect for me; I always use a deploy script that runs it and then fixes any errors.

    You can fix the link errors using install_name_tool with the -change option.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.