Results 1 to 2 of 2

Thread: Deploy Qt application on Mac OS X 10.4 Tiger

  1. #1
    Join Date
    Mar 2008
    Posts
    55
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Deploy Qt application on Mac OS X 10.4 Tiger

    Hello everyone, I’ve ported my application from windows to mac and it works. I’ve deployed it by proceeding as the Trolltech document inhttp://doc.trolltech.com/4.3/deployment-mac.html but when I tested the bundle on an other mac it doesn’t lunch.
    I’m on Mac OS X 10.4.6 Tiger and using Qt 4.3.2. I tested it on Mac OS X 10.4.10 Tiger. Here are the steps I've done :
    Qt Code:
    1. cd /Projets/Deploy_Autonome/autonome/buid/Release/Autonome.app/Contents
    2. mkdir Frameworks
    3. cp -R /Volumes/Dev/Library/Frameworks/QtCore.framework Frameworks
    4. cp -R /Volumes/Dev/Library/Frameworks/QtGui.framework Frameworks
    5. cp -R /Volumes/Dev/Library/Frameworks/QtSql.framework Frameworks
    6. cp -R /Volumes/Dev/Library/Frameworks/Qt3Support.framework Frameworks
    7. cp -R /Volumes/Dev/Library/Frameworks/QtXml.framework Frameworks
    8. cp -R /Volumes/Dev/Library/Frameworks/QtNetwork.framework Frameworks
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Autonome.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore
    2. install_name_tool -id @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui Autonome.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui
    3. install_name_tool -id @executable_path/../Frameworks/QtSql.framework/Versions/4.0/QtSql Autonome.app/Contents/Frameworks/QtSql.framework/Versions/4.0/QtSql
    4. install_name_tool -id @executable_path/../Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support Autonome.app/Contents/Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support
    5. install_name_tool -id @executable_path/../Frameworks/QtXml.framework/Versions/4.0/QtXml Autonome.app/Contents/Frameworks/QtXml.framework/Versions/4.0/QtXml
    6. install_name_tool -id @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork Autonome.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Autonome.app/Contents/MacOs/Autonome
    2. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtGui.framework/Versions/4.0/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui Autonome.app/Contents/MacOs/Autonome
    3. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtSql.framework/Versions/4.0/QtSql @executable_path/../Frameworks/QtSql.framework/Versions/4.0/QtSql Autonome.app/Contents/MacOs/Autonome
    4. install_name_tool -change /Volumes/Dev/Library/Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support @executable_path/../Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support Autonome.app/Contents/MacOs/Autonome
    5. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtXml.framework/Versions/4.0/QtXml @executable_path/../Frameworks/QtXml.framework/Versions/4.0/QtXml Autonome.app/Contents/MacOs/Autonome
    6. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork Autonome.app/Contents/MacOs/Autonome
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Autonome.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui
    2. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Autonome.app/Contents/Frameworks/QtSql.framework/Versions/4.0/QtSql
    3. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Autonome.app/Contents/Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support
    4. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Autonome.app/Contents/Frameworks/QtXml.framework/Versions/4.0/QtXml
    5. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Autonome.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork
    To copy to clipboard, switch view to plain text mode 
    PLUGINS:
    Qt Code:
    1. mkdir Autonome.app/Contents/plugins
    2. cp /Volumes/Dev/Developer/Applications/Qt/plugins/sqldrivers/libqsqlibase.dylib Autonome.app/Contents/plugins
    3. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Autonome.app/Contents/plugins/libqsqlibase.dylib
    4. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtGui.framework/Versions/4.0/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui Autonome.app/Contents/plugins/libqsqlibase.dylib
    5. install_name_tool -change /Volumes/Dev/Library/Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support @executable_path/../Frameworks/QtSql.framework/Versions/4.0/QtSql Autonome.app/Contents/plugins/libqsqlibase.dylib
    6. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtSql.framework/Versions/4.0/QtSql @executable_path/../Frameworks/Qt3Support.framework/Versions/4.0/Qt3Support Autonome.app/Contents/plugins/libqsqlibase.dylib
    7. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtXml.framework/Versions/4.0/QtXml @executable_path/../Frameworks/QtXml.framework/Versions/4.0/QtXml Autonome.app/Contents/plugins/libqsqlibase.dylib
    8. install_name_tool -change /Volumes/Dev/Library/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork Autonome.app/Contents/plugins/libqsqlibase.dylib
    To copy to clipboard, switch view to plain text mode 

    Can anyone tell me where I’m wrong and how to proceed?
    Many thanks.
    Regurads, Mourad.
    Last edited by jpn; 24th March 2008 at 12:30. Reason: missing tags

  2. #2
    Join Date
    Sep 2006
    Posts
    68
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Deploy Qt application on Mac OS X 10.4 Tiger

    http://wiki.qtcentre.org/index.php?t...loyment_Script

    Take a look there. Thats what worked for me.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.