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

Qt 5.6rc contains RPATH on OSX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.6.0 RC
    • Build System
    • None
    • OSX 10.10
    • macOS

    Description

      We build our application against self-build libraries of Qt with Jenkins. So every jenkins will extract a .tar.xz with all dependencies to have a clean environment.

      To let the build find the extracted libraries we define those env variables. Qt is built with "-no-rpath"!

      export DYLD_FALLBACK_FRAMEWORK_PATH=/Users/build/Jenkins/workspace/App/libs/qml/build/dist/lib
      export DYLD_FALLBACK_LIBRARY_PATH=/Users/build/Jenkins/workspace/App/libs/qml/build/dist/lib

      This worked without problems in Qt 5.5.0 and Qt 5.6.0-beta:

      "otool -L" for QtNetwork:

      QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.5.0, current version 5.5.0)
      QtCore.framework/Versions/5/QtCore (compatibility version 5.5.0, current version 5.5.0)

      libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
      libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)

      This is broken since Qt 5.6.0rc because libaries contains an absolute rpath now!

      "otool -L" for QtNetwork:

      /Users/build/Jenkins/workspace/Review_Libs_MacOS/build/dist/lib/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.6.0, current version 5.6.0)

      /Users/build/Jenkins/workspace/Review_Libs_MacOS/build/dist/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.6.0, current version 5.6.0)

      libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
      libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              misery André Klitzing
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes