PDA

View Full Version : MacOs deployment problem (QT 4.6.2)



Annihilator
3rd March 2010, 10:37
Hello. I recompilled successfully my application on MacOs. Now I want to create budle to make possible launching application on Mac where QT is not installed.
I did like described here (http://doc.trolltech.com/4.6/deployment-mac.html)
mkdir plugandpaint.app/Contents/Frameworks
cp -R Library/Frameworks/QtCore.framework myapp/myapp.app/Contents/Frameworks
cp -R Library/Frameworks/QtGui.framework myapp/myapp.app/Contents/Frameworks


install_name_tool -id @executable_path/../Library/Frameworks/QtCore.framework/Versions/4.0/QtCore
myapp/myapp.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore
install_name_tool -id @executable_path/../Library/Frameworks/QtGui.framework/Versions/4.0/QtGui
myapp/myapp.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui

install_name_tool -change Library/Frameworks/QtCore.framework/Versions/4.0/QtCore
@executable_path/../Library/Frameworks/QtCore.framework/Versions/4.0/QtCore
myapp/myapp.app/Contents/MacOs/myapp
install_name_tool -change Library/Frameworks/QtGui.framework/Versions/4.0/QtGui
@executable_path/../Library/Frameworks/QtGui.framework/Versions/4.0/QtGui
myapp/myapp.app/Contents/MacOs/myapp

install_name_tool -change Library/Frameworks/QtCore.framework/Versions/4.0/QtCore
@executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
myapp/myapp.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui

After that size of myapp.app increased. I run otool and make sure that myapp.app contains QtCore and QtGui. But when I change folder name of previously installed QtGui (to immitate Mac without QT) my programm does not launch. I`ve got error cause of QtGui. The same with QtCore. I dont know why does not my program see QtCore and QtGui inside its bundle.

axeljaeger
3rd April 2010, 15:28
What gives otool -L on your application?