Can't find library on another Mac
I want to deploy my application on OSX using dynamically linked libraries inside the app-bundle.
Therefore I did included and relinked them all by hand (not with macdeployqt).
The problem is a library I compiled myself.
When running the program on another Mac I get the error:
@dyld: Library not loaded: lib/kqoauth.framework/Versions/0/kqoauth
Referenced from: /macbuild/MyProject
Reason: image not found@
Here's what I executed to change the assign the right dependencies for kqoauth:
@cp -R /Library/Frameworks/kqoauth.framework Frameworks
install_name_tool -id @executable_path/../Frameworks/kqoauth.framework/Versions/0/kqoauth Frameworks/kqoauth.framework/Versions/0/kqoauth
#Dependencies of kqOAuth
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
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
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
And that is the file-structure of my project:
It's important to check every lib involved:
- change libs to use the bundled libs
- change app exe to use the bundled libs
Maybe the app exe still thinks kqoauth is somewhere else.
The scripts I've sent you privately, check all this.
Thanks a lot Volker.
I'll check this out once I find the time to.
After accepting a compromise for my Windows-problem this is the last bug preventing from finally getting my first Qt-tool to the people.