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

macdeployqt replaces symlinks to libraries with target file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7.2
    • None
    • macOS

    Description

      When using macdeployqt with vcpkg and dynamic builds, it will put multiple copies of the same library into the resulting app bundle. This leads to a crash on startup.

       

      Startup errors:

      objc[99843]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.dylib (0x10bf84608) and /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.7.1.dylib (0x10b412608). One of the two will be used. Which one is undefined.

      objc[99843]: Class KeyValueObserver is implemented in both /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.dylib (0x10bf84630) and /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.7.1.dylib (0x10b412630). One of the two will be used. Which one is undefined.

      objc[99843]: Class RunLoopModeTracker is implemented in both /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.dylib (0x10bf84680) and /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.7.1.dylib (0x10b412680). One of the two will be used. Which one is undefined.

      objc[99843]: Class QDarwinPermissionHandler is implemented in both /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.dylib (0x10bf846f8) and /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.7.1.dylib (0x10b4126f8). MyApp of the two will be used. Which one is undefined.

      Cannot add multiple registrations for QtQuick

       

      Qt installation:

      ls -al installed/x64-osx-dynamic/lib/libQt6Core*

      -rwxr-xr-x@ 1 mkuhn  staff  5458176 Jun 24 10:18 installed/x64-osx-dynamic/lib/libQt6Core.6.7.1.dylib

      lrwxr-xr-x@ 1 mkuhn  staff       22 Jun 22 10:34 installed/x64-osx-dynamic/lib/libQt6Core.6.dylib -> libQt6Core.6.7.1.dylib

      lrwxr-xr-x@ 1 mkuhn  staff       18 Jun 22 10:34 installed/x64-osx-dynamic/lib/libQt6Core.dylib -> libQt6Core.6.dylib

      rw-rr-@ 2 mkuhn  staff      220 Jun 22 07:37 installed/x64-osx-dynamic/lib/libQt6Core.prl

      -rwxr-xr-x@ 3 mkuhn  staff   421304 Jun 22 08:00 installed/x64-osx-dynamic/lib/libQt6Core5Compat.6.7.1.dylib

      lrwxr-xr-x@ 1 mkuhn  staff       29 Jun 22 10:34 installed/x64-osx-dynamic/lib/libQt6Core5Compat.6.dylib -> libQt6Core5Compat.6.7.1.dylib

      lrwxr-xr-x@ 1 mkuhn  staff       25 Jun 22 10:34 installed/x64-osx-dynamic/lib/libQt6Core5Compat.dylib -> libQt6Core5Compat.6.dylib

      rw-rr-@ 3 mkuhn  staff      313 Jun 22 08:00 installed/x64-osx-dynamic/lib/libQt6Core5Compat.prl

       

      Deployed bundle:

      ls -al /Applications/MyApp.app/Contents/Frameworks/libQt6Core*

      -rwxr-xr-x@ 1 mkuhn  admin  5458176 Jun 23 19:35 /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.7.1.dylib

      -rwxr-xr-x@ 1 mkuhn  admin  5458176 Jun 23 19:35 /Applications/MyApp.app/Contents/Frameworks/libQt6Core.6.dylib

      -rwxr-xr-x@ 1 mkuhn  admin   380192 Jun 23 19:34 /Applications/MyApp.app/Contents/Frameworks/libQt6Core5Compat.6.7.1.dylib

       

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            mkuhn Matthias Kuhn
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes