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

deploying Mac app using macdeployqt fails



  • Hello

    I would like to build a self contained .app bundle with all Qt frameworks embed inside. I try to use macdeployqt on the .app. (build with QtCreator / Qt 5.8)
    I get those warnings :
    WARNING: Could not find any external Qt frameworks to deploy in "WaveTag.app"
    WARNING: Perhaps macdeployqt was already used on "YourApp.app" ?
    WARNING: If so, you will need to rebuild "YourApp.app" before trying again.

    .. and no framework is copied into the bundle

    The paths showed by otool looks ok :
    @rpath/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.8.0, current version 5.8.0)
    @rpath/QtQml.framework/Versions/5/QtQml (compatibility version 5.8.0, current version 5.8.0)
    @rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.8.0, current version 5.8.0)
    .. etc

    Any Idea ?


  • Lifetime Qt Champion

    Hi,

    How are you calling macdeployqt ?



  • terminal command :
    ~/Qt/5.8/clang_64/bin]$ macdeployqt ~/(pathToReleaseBuild)/MyApp.app



  • ok my bad, I had another macdeployqt installed somewhere on my machine.
    Thanks!



  • for completeness : macdeployqt needs also to copy all qml plugins. So the complete command is :

    ./macdeployqt <path_to_app_bundle> -qmldir=<full_path_to_qml_files_folder>
    

    (called from the Qt install directory)


  • Lifetime Qt Champion

    On a side note for people coming here: <full_path_to_qml_files_folder> means path to the project qml files folder.


Log in to reply