Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Is macdeployqt a shell script?
QtWS25 Last Chance

Is macdeployqt a shell script?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 3 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PSI_lbc
    wrote on last edited by
    #1

    Anyone know? I cannot tell by looking at it in the /bin folder..or by hex dumping it.

    Using the -verbose=4, macdeployqt output in Terminal shows references to "otool" which would seem to imply that it does some shell functions.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Shell scripts are plain text. Just open the file in a text editor and see if it's a shell script or not.

      1 Reply Last reply
      1
      • P Offline
        P Offline
        PSI_lbc
        wrote on last edited by
        #3

        Did that already...opened with TextEdit on Mac. It has no extension but says it's a unix executable in finder. Garbled content except for the text strings. But it does not look like an executable..more like encrypted script.

        The reason I ask is that if it is using or "shelling" other utilities like "otool" then will it run into permission issues like Automator running a shell script?

        I'm seeing odd results from macdeployqt..specifically that when doing an "otool -L MyApp.app" prior to running it, the output does not change after running macdeployqt. None of the framework paths are changed..they all remain as

        @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)
        @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)
        

        Aren't they supposed to be changed to something like..

        @executable/../../QtWebKitWidgets.framework/Versions/5.602.3/QtWebKitWidgets (compatibility version 5.0.0, current version 5.255.3)
        @executable/../../QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.8.0, current version 5.8.0)
        @executable/../../QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.8.0, current version 5.8.0)
        @executable/../../QtGui.framework/Versions/5/QtGui (compatibility version 5.8.0, current version 5.8.0)
        @executable/../../QtCore.framework/Versions/5/QtCore (compatibility version 5.8.0, current version 5.8.0)
        @executable/../../QtWebKit.framework/Versions/5.602.3/QtWebKit (compatibility version 5.0.0, current version 5.255.3)
        @executable/../../QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.8.0, current version 5.8.0)
        @executable/../../QtXml.framework/Versions/5/QtXml (compatibility version 5.8.0, current version 5.8.0)
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          macdeployqt is a command line tool not a shell script.

          No they are not if the rpath contains the correct search list.

          Run otool -l (lowercase L) on your application executable and search for the LC_RPATH entries.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          P 1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Here is the source code: http://code.qt.io/cgit/qt/qttools.git/tree/src/macdeployqt

            1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              macdeployqt is a command line tool not a shell script.

              No they are not if the rpath contains the correct search list.

              Run otool -l (lowercase L) on your application executable and search for the LC_RPATH entries.

              P Offline
              P Offline
              PSI_lbc
              wrote on last edited by
              #6

              @SGaist

              Load command 28
                        cmd LC_RPATH
                    cmdsize 40
                       path @loader_path/../Frameworks (offset 12)
              

              Good to go?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Yes, good to go.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved