I want to deploy my application on OSX using dynamically linked libraries inside the app-bundle. Therefore I included and relinked them all by hand (not with macdeployqt) following this guide. The problem is a 3rd-party library I compiled myself.

When running the program on another Mac I get the error:

Qt Code:
  1. dyld: Library not loaded: lib/kqoauth.framework/Versions/0/kqoauth
  2. Referenced from: /macbuild/MyProject
  3. Reason: image not found
To copy to clipboard, switch view to plain text mode 

Here's what I executed to assign the right dependencies for kqoauth (the 3rd party library):

Qt Code:
  1. cp -R /Library/Frameworks/kqoauth.framework Frameworks
  2.  
  3. install_name_tool -id @executable_path/../Frameworks/kqoauth.framework/Versions/0/kqoauth Frameworks/kqoauth.framework/Versions/0/kqoauth
  4.  
  5. #Dependencies of kqOAuth
  6. install_name_tool -change /Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/Current/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Frameworks/kqoauth.framework/Versions/0/kqoauth
  7. install_name_tool -change /Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/QtNetwork.framework/Versions/Current/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork Frameworks/kqoauth.framework/Versions/0/kqoauth
  8. install_name_tool -change /Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/QtGui.framework/Versions/Current/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui Frameworks/kqoauth.framework/Versions/0/kqoauth
To copy to clipboard, switch view to plain text mode 

And that is the file-structure of my project: