Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt for weston desktop



  • Dears

         I‘ve successfully cross-compiling Qt use the following configure:
    
    #!/bin/sh
    ./configure \
    -v \
    -confirm-license \
    -prefix /opt/qt5.9.6 \
    -release \
    -opensource \
    -accessibility \
    -make libs \
    -xplatform linux-aarch64-gnu-g++ \
    -pch \
    -tslib \
    -sqlite \
    -qt-libjpeg \
    -qt-libpng \
    -qt-zlib \
    -qt-freetype \
    -opengl es2 \
    -nomake examples -nomake tools \
    -sysroot /home/wadexu/debian_buster_renesas_OpenGL_for_QT_15.1 \
    -I /home/wadexu/debian_buster_renesas_OpenGL_for_QT_15.1/usr/include \
    -L /home/wadexu/debian_buster_renesas_OpenGL_for_QT_15.1/usr/lib \
    -L /home/wadexu/debian_buster_renesas_OpenGL_for_QT_15.1/usr/lib/aarch64-linux-gnu \
    -L /home/wadexu/debian_buster_renesas_OpenGL_for_QT_15.1/lib
    
     My board system is running on a wayland/weston desktop. But when I run my Qt project Execute file, There is an error :
    
    This application failed to start because it could not find or load the Qt platform plugin "wayland"
    in "/opt/qt5.9.6/plugins".
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, xcb.
    
    Reinstalling the application may fix this problem.
    Aborted
    
    
    I checked my /opt/qt5.9.6/plugins/platforms. There do have the wayland related files:
    
    /opt/qt5.9.6/plugins/platforms$ ls
    libqeglfs.so    libqminimalegl.so  libqwayland-egl.so             libqxcb.so
    libqlinuxfb.so  libqoffscreen.so   libqwayland-generic.so
    libqminimal.so  libqvnc.so         libqwayland-xcomposite-egl.so
    
    Is there something should I do still?
    

    Thanks

    Wade Xu


  • Lifetime Qt Champion

    @Wade Set QT_DEBUG_PLUGINS before starting your app and check the output (or post it here). See https://doc.qt.io/qt-5/debug.html



  • @jsulm said in Qt for weston desktop:

    QT_DEBUG_PLUGINS

    Hi,Jsulm

    Sorry so late to reply,The following is my message after run ./app -platform wayland

    build-QtDemo-Qt5_9_6_for_Arm64-Release# ./QtDemo -patform wayland
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/qt5.9.6/plugins" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/main.o"
    "Failed to extract plugin meta data from '/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/main.o'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/Makefile"
    QElfParser: '/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/Makefile' is not an ELF object
    "'/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/Makefile' is not an ELF object"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/moc_predefs.h"
    QElfParser: '/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/moc_predefs.h' is not an ELF object
    "'/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/moc_predefs.h' is not an ELF object"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/moc_qwmainwindow.cpp"
    QElfParser: '/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/moc_qwmainwindow.cpp' is not an ELF object
    "'/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/moc_qwmainwindow.cpp' is not an ELF object"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/moc_qwmainwindow.o"
    "Failed to extract plugin meta data from '/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/moc_qwmainwindow.o'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/QtDemo"
    "Failed to extract plugin meta data from '/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/QtDemo'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/qwmainwindow.o"
    "Failed to extract plugin meta data from '/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/qwmainwindow.o'"
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/ui_qwmainwindow.h"
    QElfParser: '/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/ui_qwmainwindow.h' is not an ELF object
    "'/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/ui_qwmainwindow.h' is not an ELF object"
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/qt5.9.6/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqeglfs.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 329219
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqlinuxfb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "linuxfb"
            ]
        },
        "className": "QLinuxFbIntegrationPlugin",
        "debug": false,
        "version": 329990
    }
    
    
    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqminimal.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 329219
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 329219
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 329219
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqvnc.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqvnc.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "vnc"
            ]
        },
        "className": "QVncIntegrationPlugin",
        "debug": false,
        "version": 329990
    }
    
    
    Got keys from plugin meta data ("vnc")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqwayland-egl.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqwayland-egl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-egl"
            ]
        },
        "className": "QWaylandIntegrationPlugin",
        "debug": false,
        "version": 329219
    }
    
    
    Got keys from plugin meta data ("wayland-egl")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqwayland-generic.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqwayland-generic.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland"
            ]
        },
        "className": "QWaylandIntegrationPlugin",
        "debug": false,
        "version": 329219
    }
    
    
    Got keys from plugin meta data ("wayland")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqwayland-xcomposite-egl.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-xcomposite-egl"
            ]
        },
        "className": "QWaylandIntegrationPlugin",
        "debug": false,
        "version": 329219
    }
    
    
    Got keys from plugin meta data ("wayland-xcomposite-egl")
    QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.9.6/plugins/platforms/libqxcb.so"
    Found metadata in lib /opt/qt5.9.6/plugins/platforms/libqxcb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "xcb"
            ]
        },
        "className": "QXcbIntegrationPlugin",
        "debug": false,
        "version": 329219
    }
    
    
    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/tsinglin/build-QtDemo-Qt5_9_6_for_Arm64-Release/platforms" ...
    Cannot load library /opt/qt5.9.6/plugins/platforms/libqwayland-generic.so: (libQt5WaylandClient.so.5: cannot open shared object file: No such file or directory)
    QLibraryPrivate::loadPlugin failed on "/opt/qt5.9.6/plugins/platforms/libqwayland-generic.so" : "Cannot load library /opt/qt5.9.6/plugins/platforms/libqwayland-generic.so: (libQt5WaylandClient.so.5: cannot open shared object file: No such file or directory)"
    This application failed to start because it could not find or load the Qt platform plugin "wayland"
    in "/opt/qt5.9.6/plugins".
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, xcb.
    
    Reinstalling the application may fix this problem.
    Aborted
    

    Thanks & Best Regards
    Wade Xu


  • Lifetime Qt Champion

    @Wade said in Qt for weston desktop:

    Cannot load library /opt/qt5.9.6/plugins/platforms/libqwayland-generic.so: (libQt5WaylandClient.so.5: cannot open shared object file: No such file or directory)
    QLibraryPrivate::loadPlugin failed on "/opt/qt5.9.6/plugins/platforms/libqwayland-generic.so" : "Cannot load library /opt/qt5.9.6/plugins/platforms/libqwayland-generic.so: (libQt5WaylandClient.so.5: cannot open shared object file: No such file or directory)"

    Looks like libQt5WaylandClient.so.5 is missing.



  • Hi , jsulm

      Thanks , I've solved this problem by local compile.
    

    Thanks
    Wade Xu


Log in to reply