Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55373

macdeployqt doesn't work for protected executables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.5.1
    • None
    • OSX 10.11.5 El Capitan

    Description

      I'm using Qt 5.5.1 as part of an Internet Plug-in on OSX 10.11.5. When System Integrity Protection is turned on, the plug-in fails to execute. The Console log shows that the plug-in is not getting loaded, with errors showing that the Framework components inserted by macdeployqt are not being found.
      I traced this to the use of @rpath in the executable. It appears that for protected executables, this isn't allowed (I'm not very familiar with OSX, so I'm kind of guessing here). There are @rpath references in the executable and in the Qt Framework libraries. The binaries pointed to by these references don't seem to load.
      When I used install_name_tool to use @loader_path instead the load problem resolved. This requires applying install_name_tool to the executable as well as to the Framework libraries.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            jonawebb Jon Webb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes