Mac deployment: Using Qt from a framework - QFactoryLoader anyway looks for plugins in a (non-Qt) app bundle
Unsolved
Installation and Deployment
-
Hello,
I want to use Qt internally in the Mac framework (dynamic library). A separate non-Qt app uses this framework through the exposed C API.
macdeployqt
seems correctly putting all the dependencies inside the framework bundle.When I run the app (with QT_DEBUG_PLUGINS=1):
QFactoryLoader::QFactoryLoader() checking directory path "..../MyApp.app/Contents/MacOS/platforms" ...
This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "".So basically QFactoryLoader looks for the "cocoa" plugin inside the non-Qt app bundle.
How to make it look inside the framework bundle which actually uses Qt?
Thank you!