Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Yocto Qt6 run QML app
Forum Updated to NodeBB v4.3 + New Features

Yocto Qt6 run QML app

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 318 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by MartinD
    #1

    Hi,
    finally I was able to bitbake a yocto Qt6 image for raspberry pi 3. I can now run my QML app if I run it with -platform linuxfb

    If I try -platform xcb, I get this error:

    qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb patform plugin.
    

    How do I add these libraries to my image?

    If I try -platform eglfs, I get this error with QT_DEBUG_PLUGINS=1:

    qt.core.plugin.factoryloader: checking directory path "/usr/lib/plugins/platforms" ...
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqvkkhrdisplay.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqvkkhrdisplay.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "vkkhrdisplay"
            ]
        },
        "archlevel": 0,
        "className": "QVkKhrDisplayIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay")
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqeglfs.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "archlevel": 0,
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqvnc.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqvnc.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "vnc"
            ]
        },
        "archlevel": 0,
        "className": "QVncIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc")
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqxcb.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqxcb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "xcb"
            ]
        },
        "archlevel": 0,
        "className": "QXcbIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqoffscreen.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "archlevel": 0,
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqlinuxfb.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqlinuxfb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "linuxfb"
            ]
        },
        "archlevel": 0,
        "className": "QLinuxFbIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb")
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqminimalegl.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "archlevel": 0,
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl")
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqminimal.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "archlevel": 0,
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
    qt.core.plugin.factoryloader: checking directory path "/opt/app2/platforms" ...
    qt.core.library: "/usr/lib/plugins/platforms/libqeglfs.so" loaded library
    qt.core.plugin.factoryloader: checking directory path "/usr/lib/plugins/egldeviceintegrations" ...
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/egldeviceintegrations/libqeglfs-emu-integration.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/egldeviceintegrations/libqeglfs-emu-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_emu"
            ]
        },
        "archlevel": 0,
        "className": "QEglFSEmulatorIntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs_emu")
    qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/egldeviceintegrations/libqeglfs-x11-integration.so"
    qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/egldeviceintegrations/libqeglfs-x11-integration.so, metadata=
    {
        "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "eglfs_x11"
            ]
        },
        "archlevel": 0,
        "className": "QEglFSX11IntegrationPlugin",
        "debug": false,
        "version": 394496
    }
    
    
    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs_x11")
    qt.core.plugin.factoryloader: checking directory path "/opt/app2/egldeviceintegrations" ...
    qt.core.library: "/usr/lib/plugins/egldeviceintegrations/libqeglfs-emu-integration.so" loaded library
    Could not initialize egl display
    

    How to fix this eglfs error?

    K 1 Reply Last reply
    0
    • M MartinD

      Hi,
      finally I was able to bitbake a yocto Qt6 image for raspberry pi 3. I can now run my QML app if I run it with -platform linuxfb

      If I try -platform xcb, I get this error:

      qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb patform plugin.
      

      How do I add these libraries to my image?

      If I try -platform eglfs, I get this error with QT_DEBUG_PLUGINS=1:

      qt.core.plugin.factoryloader: checking directory path "/usr/lib/plugins/platforms" ...
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqvkkhrdisplay.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqvkkhrdisplay.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "vkkhrdisplay"
              ]
          },
          "archlevel": 0,
          "className": "QVkKhrDisplayIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay")
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqeglfs.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqeglfs.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "eglfs"
              ]
          },
          "archlevel": 0,
          "className": "QEglFSIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqvnc.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqvnc.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "vnc"
              ]
          },
          "archlevel": 0,
          "className": "QVncIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc")
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqxcb.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqxcb.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "xcb"
              ]
          },
          "archlevel": 0,
          "className": "QXcbIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqoffscreen.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqoffscreen.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "offscreen"
              ]
          },
          "archlevel": 0,
          "className": "QOffscreenIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqlinuxfb.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqlinuxfb.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "linuxfb"
              ]
          },
          "archlevel": 0,
          "className": "QLinuxFbIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb")
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqminimalegl.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqminimalegl.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "minimalegl"
              ]
          },
          "archlevel": 0,
          "className": "QMinimalEglIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl")
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/platforms/libqminimal.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/platforms/libqminimal.so, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "minimal"
              ]
          },
          "archlevel": 0,
          "className": "QMinimalIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
      qt.core.plugin.factoryloader: checking directory path "/opt/app2/platforms" ...
      qt.core.library: "/usr/lib/plugins/platforms/libqeglfs.so" loaded library
      qt.core.plugin.factoryloader: checking directory path "/usr/lib/plugins/egldeviceintegrations" ...
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/egldeviceintegrations/libqeglfs-emu-integration.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/egldeviceintegrations/libqeglfs-emu-integration.so, metadata=
      {
          "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
          "MetaData": {
              "Keys": [
                  "eglfs_emu"
              ]
          },
          "archlevel": 0,
          "className": "QEglFSEmulatorIntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs_emu")
      qt.core.plugin.factoryloader: looking at "/usr/lib/plugins/egldeviceintegrations/libqeglfs-x11-integration.so"
      qt.core.plugin.loader: Found metadata in lib /usr/lib/plugins/egldeviceintegrations/libqeglfs-x11-integration.so, metadata=
      {
          "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
          "MetaData": {
              "Keys": [
                  "eglfs_x11"
              ]
          },
          "archlevel": 0,
          "className": "QEglFSX11IntegrationPlugin",
          "debug": false,
          "version": 394496
      }
      
      
      qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs_x11")
      qt.core.plugin.factoryloader: checking directory path "/opt/app2/egldeviceintegrations" ...
      qt.core.library: "/usr/lib/plugins/egldeviceintegrations/libqeglfs-emu-integration.so" loaded library
      Could not initialize egl display
      

      How to fix this eglfs error?

      K Offline
      K Offline
      kluszon
      wrote on last edited by
      #2

      @MartinD Did you solve it? I've got the same problem on Rpi CM4...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved