QCocoaIntegrationPlugin in CMakeLists.txt

B.J. bj at koupps.net
Tue May 9 16:06:00 UTC 2017


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
libqcocoa_debug.dylib libqminimal_debug.dylib libqoffscreen_debug.dylib
libqcocoa_debug.dylib.dSYM libqminimal_debug.dylib.dSYM libqoffscreen_debug.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() 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/libqminimal.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/libqminimal.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329728
}
 
 
Got keys from plugin meta data ("minimal")
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/libqminimal_debug.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/libqminimal_debug.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": true,
    "version": 329728
}
 
 
Got keys from plugin meta data ("minimal")
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/libqoffscreen.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/libqoffscreen.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329728
}
 
 
Got keys from plugin meta data ("offscreen")
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/libqoffscreen_debug.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/libqoffscreen_debug.dylib, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": true,
    "version": 329728
}
 
 
Got keys from plugin meta data ("offscreen")
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
 

> On May 6, 2017, at 11:58, JAZEIX Johnny <jazeix at gmail.com> wrote:
> 
> Hi,
> 
> can you try to export QT_DEBUG_PLUGINS=1 and run it after to have more logs?
> 
> Can you also check if the plugin is in the package? I don't know if the issue is because the file hasn't been copied or if the application does not look at the good place for the plugins.
> 
> Johnny
> 
> On 05/05/17 14:53, B.J. wrote:
>> I used the 5.8 tree to build the fresh one…same error?  I wonder if it has to do with the part that says ~ in “”. ~  Anyway, I’ll build it against a new 5.7 cmake just for fun…here’s some output:
>> 
>>>> 
>> $ grep CocoaIntegration ../gcompris-qt-0.70/src/core/CMakeLists.txt 
>>     list(APPEND _qt_plugins Qt5::QTgaPlugin Qt5::QTiffPlugin Qt5::QCocoaIntegrationPlugin)
>>  
>> $ /Applications/gcompris-qt.app/Contents/MacOS/gcompris-qt 
>> 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
>> 
>> 
>>> On May 4, 2017, at 10:42, Johnny Jazeix <jazeix at gmail.com <mailto:jazeix at gmail.com>> wrote:
>>> 
>>> Thanks, so the issue is with the missing platform plugin cocoa.
>>> Can you add it in https://github.com/gcompris/GCompris-qt/blob/master/src/core/CMakeLists.txt#L96 <https://github.com/gcompris/GCompris-qt/blob/master/src/core/CMakeLists.txt#L96>
>>> I guess it should be something like QCocoaIntegrationPlugin for cocoa.
>> 
> 

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


More information about the GCompris-devel mailing list