Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-465

Mac builds with absolute path name embedded in frameworks and plugins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.0.1, 1.1.x
    • Build System
    • None
    • Mac. 10.6. Qt 4.6.3. Qt Mobility from git.

      When build the frameworks on Mac OS (for instance QtMultimediaKit.framework), the install_name is set to an absolute path. This makes it difficult to install the framework in another location. Also, the plug-ins will end up linking to this framework and they too will embed the absolute location of the framework. Again, this makes it difficult to relocate the plug-ins.

      A simple fix:

      diff --git a/features/deploy.pri b/features/deploy.pri
      index 39ea766..3b52012 100644
      — a/features/deploy.pri
      +++ b/features/deploy.pri
      @@ -30,7 +30,7 @@ contains(TEMPLATE,.*lib) {
      INSTALLS+=target headers

      mac:contains(QT_CONFIG,qt_framework) {

      • CONFIG += lib_bundle absolute_library_soname
        + CONFIG += lib_bundle
        FRAMEWORK_HEADERS.version = Versions
        FRAMEWORK_HEADERS.files = $${PUBLIC_HEADERS}
        FRAMEWORK_HEADERS.path = Headers

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

            lopotter Lorn Potter (closed Nokia identity) (Inactive)
            cmeyer Chris Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes