The Mac QT Installer puts its shared libraries under /Library/Frameworks/QtXXX.Framework.
I’m building a QT application using a qmake-generated xcode project. I’d like to add these frameworks as private framewords inside my app bundle for easy deployment.
I’ve tried various options for doing this but I don’t seem to be able to make it work. What I did –
- change the Qt framework files in
/Library/Frameworks/usinginstall_name_toolas described here - copy the these framework bundles manually to inside the app bundle
- recompiling the bundle.
When I change the name of the original framework so it would appear that it’s not there, the app crashes and says that it doesn’t find the needed framework. What am I doing wrong?
Using xcode 4.3 on OSX 10.7.3
Some options to deploy a Qt application on Mac:
The latest released cmake version (2.8.7) doesn’t support XCode 4.3 properly though: Since Xcode 4.3, files previously being installed to
/Developerare now in/Applications/Xcode.app/Contents/Developer. cmake still expects them in/Developer. That is fixed in cmake master but not released yet. A workaround is to create a symlink: