QCocoaIntegrationPlugin in CMakeLists.txt

JAZEIX Johnny jazeix at gmail.com
Tue May 9 20:34:00 UTC 2017


Hi,

there are some information here 
https://cmake.org/Wiki/CMake_RPATH_handling that could help (last 
paragraph to debug and change the value "easily").

It does not seem to find @rpath/QtGui.framework/Versions/5/QtGui, so I 
would guess the @rpath should contain Contents/Frameworks

Johnny

On 05/09/17 18:06, B.J. wrote:
> maybe something has the wrong "@rpath" ? It doesn't look like it's 
> pointing to the frameworks folder in the app bundle:
>
>
> $ export QT_DEBUG_PLUGINS=1
>
>
> $ ls 
> /Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/Frameworks
> QtCore.framework QtOpenGL.framework QtSvg.framework
> QtGui.framework QtPrintSupport.framework QtWidgets.framework
> QtMultimedia.framework QtQml.framework QtXml.framework
> QtMultimediaQuick_p.framework QtQuick.framework QtXmlPatterns.framework
> QtMultimediaWidgets.framework QtQuickParticles.framework
> QtNetwork.framework QtSensors.framework
>
> $ ls 
> /Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/
> libqcocoa.dylib libqminimal.dylib libqoffscreen.dylib
> libqcocoa.dylib.dSYM libqminimal.dylib.dSYM libqoffscreen.dylib.dSYM
>
> $ gcompris-qt.app/Contents/MacOS/gcompris-qt
> QFactoryLoader::QFactoryLoader() checking directory path 
> "/Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms" 
> ...
> QFactoryLoader::QFactoryLoader() looking at 
> "/Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib"
> Found metadata in lib 
> /Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib, 
> metadata=
> {
>   "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
>   "MetaData": {
>       "Keys": [
>           "cocoa"
>       ]
>   },
>   "className": "QCocoaIntegrationPlugin",
>   "debug": false,
>   "version": 329728
> }
>
> Got keys from plugin meta data ("cocoa")
>
> QFactoryLoader::QFactoryLoader() checking directory path 
> "/Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/MacOS/platforms" 
> ...
> Cannot load library 
> /Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib: 
> (dlopen(/Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib, 
> 133): Library not loaded: @rpath/QtGui.framework/Versions/5/QtGui
> Referenced from: 
> /Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib
> Reason: image not found)
> QLibraryPrivate::loadPlugin failed on 
> "/Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib" 
> : "Cannot load library 
> /Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib:(dlopen(/Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib, 
> 133): Library not loaded: @rpath/QtGui.framework/Versions/5/QtGui\n 
> Referenced from: 
> /Users/faculty/Desktop/src/build-gc170504-5.8/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/plugins/platforms/libqcocoa.dylib\n 
> Reason: image not found)"
> This application failed to start because it could not find or load the 
> Qt platform plugin "cocoa"
> in "".
>
> Available platform plugins are: cocoa, minimal, offscreen.
>
> Reinstalling the application may fix this problem.
> Abort trap: 6
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20170509/60502f89/attachment.html>


More information about the GCompris-devel mailing list