Details
-
Task
-
Resolution: Done
-
P2: Important
-
5.11
-
None
Description
The ServiceManager of qtivi has a check to only accept plugins using the same configuration (debug/release) as the main lib. This is needed as it could cause crashes otherwise in some cases.
When building qtivi on mac for debug as a framework qtivi will build the qtivi core libs as a macos framework and the plugins as dylib.
The dylib are build in the debug configuration and the plugins define this as part of their metadata. But for frameworks this is different and by default they run in a release mode as long as the DYLD_IMAGE_SUFFIX environment variable forces the framework to be run in debug mode.
This can result in a situation where QtIvi doesn't accept it's own plugins anymore because of the configuration mismatch.
This task is to fix this problem and instead of rejecting those plugins, first search for the plugin in the correct configuration and if not available print a warning, but load the plugin with the different configuration. This fallback should also be configurable.