macdeployqt again



  • OSX Sierra 10.12.2
    Qt 5.8.0

    So I tried running macdeployqt a couple different ways.

    Method 1) from the Terminal command line, I cd to the Deploy folder. This contains an app bundle that has been copied from the release build folder. Items not needed for deployment are stripped or renamed, leaving a, .app bundle ready to add the Framework and Plugins via macdeployqt.

    Method 2) is also done in Terminal. The difference is I cd to the macdeloyqt bin folder and pass it paths to the app bundle.

    Nothing really special about the macdeployqt command:

    macdeployqt SFA.app -always-overwrite -executable='./SFA.app/Contents/MacOS/License' -verbose=3 
    

    The License executable is a helper app. It resides in the MacOS folder in the app bundle. Same place as the SFA app executable.

    On running macdeployqt, the relative paths in the executables are not changed to reflect the Framework location within the app bundle. All the actual Framework folders are copied into the app bundle, though..along with all plugins. So macdeployqt is "sorta working".

    This is the Terminal output..

    # terminal output blocks
    
    ===running from the “deploy directory” ===
    
    Last login: Wed Mar  8 20:36:27 on ttys002
    Lawrences-MacBook-Pro:~ PSI$ cd '/Users/PSI/Projects/SFA Mac Deploy and Automate/SFA Deploy/'
    Lawrences-MacBook-Pro:SFA Deploy PSI$ /Developer/SDKs/QtMultiC/5.8/clang_64/bin/macdeployqt SFA.app -always-overwrite -executable='./SFA.app/Contents/MacOS/License' -verbose=3 
    Log: Using otool:
    Log:  inspecting "/Users/PSI/Projects/SFA Mac Deploy and Automate/SFA Deploy/SFA.app/Contents/MacOS/SFA"
    Log: Using otool:
    Log:  inspecting "/Developer/SDKs/QtMultiC/5.8/clang_64/lib/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets"
    Log: Adding framework:
    Log: Framework name "QtWebKitWidgets.framework" 
     Framework directory "/Developer/SDKs/QtMultiC/5.8/clang_64/lib/" 
     Framework path "/Developer/SDKs/QtMultiC/5.8/clang_64/lib/QtWebKitWidgets.framework" 
     Binary directory "Versions/5.602.3" 
     Binary name "QtWebKitWidgets" 
     Binary path "/Versions/5.602.3/QtWebKitWidgets" 
     Version "5.602.3" 
     Install name "@rpath/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets" 
     Deployed install name "@rpath/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets" 
     Source file Path "/Developer/SDKs/QtMultiC/5.8/clang_64/lib/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets" 
     Framework Destination Directory (relative to bundle) "Contents/Frameworks/QtWebKitWidgets.framework" 
     Binary Destination Directory (relative to bundle) "Contents/Frameworks/QtWebKitWidgets.framework/Versions/5.602.3" 
    .
    .
    .
    Log: Created configuration file: "SFA.app/Contents/Resources/qt.conf"
    Log: This file sets the plugin search path to "SFA.app/Contents/PlugIns"
    Log: Using strip:
    Log:  stripped "/Users/PSI/Projects/SFA Mac Deploy and Automate/SFA Deploy/SFA.app/Contents/MacOS/SFA"
    Lawrences-MacBook-Pro:SFA Deploy PSI$ cd '/Users/PSI/Projects/SFA Mac Deploy and Automate/SFA Deploy/SFA.app/Contents/MacOS/'
    Lawrences-MacBook-Pro:MacOS PSI$ otool -L SFA
    SFA:
    	@rpath/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets (compatibility version 5.0.0, current version 5.255.3)
    	@rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.8.0, current version 5.8.0)
    	@rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.8.0, current version 5.8.0)
    	@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.8.0, current version 5.8.0)
    	@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.8.0, current version 5.8.0)
    	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
    	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    	@rpath/QtWebKit.framework/Versions/5.602.3/QtWebKit (compatibility version 5.0.0, current version 5.255.3)
    	@rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.8.0, current version 5.8.0)
    	@rpath/QtXml.framework/Versions/5/QtXml (compatibility version 5.8.0, current version 5.8.0)
    	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    	/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.4.0)
    	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
    Lawrences-MacBook-Pro:MacOS PSI$ 
    
    ===running from the macdeployqt bin directory ===
    
    Last login: Wed Mar  8 21:20:01 on ttys002
    Lawrences-MacBook-Pro:~ PSI$ cd '/Developer/SDKs/QtMultiC/5.8/clang_64/bin/'
    Lawrences-MacBook-Pro:bin PSI$ pwd
    /Developer/SDKs/QtMultiC/5.8/clang_64/bin
    Lawrences-MacBook-Pro:bin PSI$ ls -l mac*
    -rwxr-xr-x  1 PSI  admin   81692 Jan 18 14:55 macchangeqt
    -rwxr-xr-x  1 PSI  admin  212852 Jan 18 14:55 macdeployqt
    Lawrences-MacBook-Pro:bin PSI$ ./macdeployqt '/Users/PSI/Projects/SFA Mac Deploy and Automate/SFA Deploy/SFA.app' -always-overwrite -executable='/Users/PSI/Projects/SFA Mac Deploy and Automate/SFA Deploy/SFA.app/Contents/MacOS/License' -verbose=3 
    Log: Using otool:
    Log:  inspecting "/Users/PSI/Projects/SFA Mac Deploy and Automate/SFA Deploy/SFA.app/Contents/MacOS/SFA"
    Log: Using otool:
    Log:  inspecting "/Developer/SDKs/QtMultiC/5.8/clang_64/lib/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets"
    Log: Adding framework:
    Log: Framework name "QtWebKitWidgets.framework" 
     Framework directory "/Developer/SDKs/QtMultiC/5.8/clang_64/lib/" 
     Framework path "/Developer/SDKs/QtMultiC/5.8/clang_64/lib/QtWebKitWidgets.framework" 
     Binary directory "Versions/5.602.3" 
     Binary name "QtWebKitWidgets" 
     Binary path "/Versions/5.602.3/QtWebKitWidgets" 
     Version "5.602.3" 
     Install name "@rpath/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets" 
     Deployed install name "@rpath/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets" 
     Source file Path "/Developer/SDKs/QtMultiC/5.8/clang_64/lib/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets" 
     Framework Destination Directory (relative to bundle) "Contents/Frameworks/QtWebKitWidgets.framework" 
     Binary Destination Directory (relative to bundle) "Contents/Frameworks/QtWebKitWidgets.framework/Versions/5.602.3" 
    .
    .
    .
    Lawrences-MacBook-Pro:MacOS PSI$ otool -L SFA
    SFA:
    	@rpath/QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets (compatibility version 5.0.0, current version 5.255.3)
    	@rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.8.0, current version 5.8.0)
    	@rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.8.0, current version 5.8.0)
    	@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.8.0, current version 5.8.0)
    	@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.8.0, current version 5.8.0)
    	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
    	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    	@rpath/QtWebKit.framework/Versions/5.602.3/QtWebKit (compatibility version 5.0.0, current version 5.255.3)
    	@rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.8.0, current version 5.8.0)
    	@rpath/QtXml.framework/Versions/5/QtXml (compatibility version 5.8.0, current version 5.8.0)
    	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    	/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.4.0)
    	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
    Lawrences-MacBook-Pro:MacOS PSI$ 
    ‘’’

  • Lifetime Qt Champion

    Hi,

    Looks like a similar question than this thread, correct ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.