Skip to content

Qt5/Qt6 libraries don't live together quietly #415

Description

@hh227pvd

On macOS and installing gplately via conda-forge forces a simultaneous installation of qt-main (Qt5, via pygplates) and qt6-main (via gplately's modern plotting dependencies), resulting in a conflicting Objective-C runtime collision.

import gplately (or import pygplates for that matter) throws the following warning:

objc[7518]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /opt/anaconda3/envs/w6GPlately/lib/libQt6Core.6.11.1.dylib (0x10ebb9728) and /opt/anaconda3/envs/w6GPlately/lib/libQt5Core.5.15.15.dylib (0x1094892f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7518]: Class KeyValueObserver is implemented in both /opt/anaconda3/envs/w6GPlately/lib/libQt6Core.6.11.1.dylib (0x10ebb9750) and /opt/anaconda3/envs/w6GPlately/lib/libQt5Core.5.15.15.dylib (0x109489320). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[7518]: Class RunLoopModeTracker is implemented in both /opt/anaconda3/envs/w6GPlately/lib/libQt6Core.6.11.1.dylib (0x10ebb97a0) and /opt/anaconda3/envs/w6GPlately/lib/libQt5Core.5.15.15.dylib (0x109489370). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

Not sure if I should worry about it, just giving you heads up.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions