Important: Please read the Qt Code of Conduct -

[SOLVED] Deploying Qt, problems

  • I'm trying to use install_name_tool for deploying my C++ application that uses Qt for the gui.
    I did all this steps but the afterwards the executable is broken and it's crashing

    cp -R /path/to/Qt/lib/QtCore.framework
    install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
    install_name_tool -change path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore

    So I did all of this steps, for all the libraries that were shown on the output of the oname tool. And I also have changed the references between the libraries to match with the new locations.

    So can anyone help me with this issue. Or is there any there way to deploy qt libraries with your application

  • Look into the macdeployqt executable which comes with Mac OS X distributions of Qt. It will take care of this for you and make your .app bundle deployment ready.

Log in to reply