[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@mkdir myapp.app/Contents/Frameworks
cp -R /path/to/Qt/lib/QtCore.framework myapp.app/Contents/Frameworks
.
.
install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
myapp.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore
.
.
install_name_tool -change path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
@executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
myapp.app/Contents/MacOs/myapp@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.