PDA

View Full Version : Building Qt app on mac os x for deployment



nikhil
18th October 2012, 14:33
Hi,
I am building Qt app for deployment on mac os x 10.7.2 with Qt 4.8.3. my app is 'Test.app'
after running otool -L Test.app it is giving path as below.
QtGui.framework/Versions/4/QtGui
QtCore.framework/Versions/4/QtCore

then i used following commands

install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore
Test.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore

install_name_tool -id @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui
Test.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui.

then used change command like this

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

After that if i will otool -L Test.app still it is giving previous path.

Thanks in advance