Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Could not find the Qt platform plugin "xcb" in imx8m-mini(NXP)

Could not find the Qt platform plugin "xcb" in imx8m-mini(NXP)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 630 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    Bonty
    wrote on last edited by
    #1

    Iam building yocto based linux on below configuration, i try to run cinematicexperience app in qt5 but it shows error "Could not find the Qt platform plugin "xcb" in" .

    Please help!!

    Build Configuration:
    BB_VERSION = "2.0.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "universal"
    TARGET_SYS = "aarch64-poky-linux"
    MACHINE = "imx8mmevk"
    DISTRO = "fsl-imx-wayland"
    DISTRO_VERSION = "5.15-kirkstone"
    TUNE_FEATURES = "aarch64 armv8a crc crypto"
    TARGET_FPU = ""
    meta
    meta-poky = "HEAD:602922d492351ee747d2ff00f8ed5aab284a706b"
    meta-oe
    meta-multimedia
    meta-python = "HEAD:8f2dc1023482863e2630d1b94052c41ce748b38f"
    meta-freescale = "HEAD:06e1cf4099caa53da33c10e1884064f73dc184dd"
    meta-freescale-3rdparty = "HEAD:6d8213fc5ec192c33f963b8095d1f01af1574eea"
    meta-freescale-distro = "HEAD:fc15f5003043da23212596be7366ae2547c308ad"
    meta-bsp
    meta-sdk
    meta-ml
    meta-v2x = "HEAD:a0303c88a5abf96cbe3e4dccd339a323aad726fa"
    meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
    meta-clang = "HEAD:d669d873edf68dc7440bb07096737203bb7ec505"
    meta-gnome
    meta-networking
    meta-filesystems = "HEAD:8f2dc1023482863e2630d1b94052c41ce748b38f"
    meta-virtualization = "HEAD:cca772a457a75b2661371932ff79c392da3118db"
    meta-qt5 = "master:c22b8fac9ca18687c3a163807dd74853101945a8"

    local.conf ->

    MACHINE ??= 'imx8mmevk'
    DISTRO ?= 'fsl-imx-wayland'
    PACKAGE_CLASSES ?= 'package_rpm'
    EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
    USER_CLASSES ?= "buildstats"
    PATCHRESOLVE = "noop"
    BB_DISKMON_DIRS ??= "
    STOPTASKS,${TMPDIR},1G,100K
    STOPTASKS,${DL_DIR},1G,100K
    STOPTASKS,${SSTATE_DIR},1G,100K
    STOPTASKS,/tmp,100M,100K
    HALT,${TMPDIR},100M,1K
    HALT,${DL_DIR},100M,1K
    HALT,${SSTATE_DIR},100M,1K
    HALT,/tmp,10M,1K"
    PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
    CONF_VERSION = "2"

    DL_DIR ?= "${BSPDIR}/downloads/"
    ACCEPT_FSL_EULA = "1"

    Switch to Debian packaging and include package-management in the image

    PACKAGE_CLASSES = "package_deb"
    EXTRA_IMAGE_FEATURES += "package-management"
    IMAGE_INSTALL += "cinematicexperience"
    #PACKAGECONFIG_append_pn-qtbase = " linuxfb "
    PACKAGECONFIG_APPEND_PN-QTBASE = " linuxfb "
    EXTRA_IMAGE_FEATURES = " debug-tweaks tools-debug eclipse-debug"
    IMAGE_INSTALL_APPEND = " tcf-agent openssh-sftp-server qtbase-examples libusb-compat"

    DISTRO_FEATURES_REMOVE = " x11 "
    IMAGE_INSTALL_APPEND = " qtbase qtbase-fonts qtbase-plugins qtwayland cinematicexperience"

    JonBJ 1 Reply Last reply
    0
    • B Bonty

      Iam building yocto based linux on below configuration, i try to run cinematicexperience app in qt5 but it shows error "Could not find the Qt platform plugin "xcb" in" .

      Please help!!

      Build Configuration:
      BB_VERSION = "2.0.0"
      BUILD_SYS = "x86_64-linux"
      NATIVELSBSTRING = "universal"
      TARGET_SYS = "aarch64-poky-linux"
      MACHINE = "imx8mmevk"
      DISTRO = "fsl-imx-wayland"
      DISTRO_VERSION = "5.15-kirkstone"
      TUNE_FEATURES = "aarch64 armv8a crc crypto"
      TARGET_FPU = ""
      meta
      meta-poky = "HEAD:602922d492351ee747d2ff00f8ed5aab284a706b"
      meta-oe
      meta-multimedia
      meta-python = "HEAD:8f2dc1023482863e2630d1b94052c41ce748b38f"
      meta-freescale = "HEAD:06e1cf4099caa53da33c10e1884064f73dc184dd"
      meta-freescale-3rdparty = "HEAD:6d8213fc5ec192c33f963b8095d1f01af1574eea"
      meta-freescale-distro = "HEAD:fc15f5003043da23212596be7366ae2547c308ad"
      meta-bsp
      meta-sdk
      meta-ml
      meta-v2x = "HEAD:a0303c88a5abf96cbe3e4dccd339a323aad726fa"
      meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
      meta-clang = "HEAD:d669d873edf68dc7440bb07096737203bb7ec505"
      meta-gnome
      meta-networking
      meta-filesystems = "HEAD:8f2dc1023482863e2630d1b94052c41ce748b38f"
      meta-virtualization = "HEAD:cca772a457a75b2661371932ff79c392da3118db"
      meta-qt5 = "master:c22b8fac9ca18687c3a163807dd74853101945a8"

      local.conf ->

      MACHINE ??= 'imx8mmevk'
      DISTRO ?= 'fsl-imx-wayland'
      PACKAGE_CLASSES ?= 'package_rpm'
      EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
      USER_CLASSES ?= "buildstats"
      PATCHRESOLVE = "noop"
      BB_DISKMON_DIRS ??= "
      STOPTASKS,${TMPDIR},1G,100K
      STOPTASKS,${DL_DIR},1G,100K
      STOPTASKS,${SSTATE_DIR},1G,100K
      STOPTASKS,/tmp,100M,100K
      HALT,${TMPDIR},100M,1K
      HALT,${DL_DIR},100M,1K
      HALT,${SSTATE_DIR},100M,1K
      HALT,/tmp,10M,1K"
      PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
      CONF_VERSION = "2"

      DL_DIR ?= "${BSPDIR}/downloads/"
      ACCEPT_FSL_EULA = "1"

      Switch to Debian packaging and include package-management in the image

      PACKAGE_CLASSES = "package_deb"
      EXTRA_IMAGE_FEATURES += "package-management"
      IMAGE_INSTALL += "cinematicexperience"
      #PACKAGECONFIG_append_pn-qtbase = " linuxfb "
      PACKAGECONFIG_APPEND_PN-QTBASE = " linuxfb "
      EXTRA_IMAGE_FEATURES = " debug-tweaks tools-debug eclipse-debug"
      IMAGE_INSTALL_APPEND = " tcf-agent openssh-sftp-server qtbase-examples libusb-compat"

      DISTRO_FEATURES_REMOVE = " x11 "
      IMAGE_INSTALL_APPEND = " qtbase qtbase-fonts qtbase-plugins qtwayland cinematicexperience"

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Bonty said in Could not find the Qt platform plugin "xcb" in imx8m-mini(NXP):

      Please help!!

      If you looked through this forum you would see "hundreds" of other posts on this topic. They all tell you to start by setting environment variable QT_DEBUG_PLUGINS to 1 and then running your Qt application. Look at the diagnostic output you will get.

      1 Reply Last reply
      1
      • B Offline
        B Offline
        Bonty
        wrote on last edited by
        #3

        Thanks for rply!

        can u please share the link of actual solution.

        jsulmJ JonBJ 2 Replies Last reply
        0
        • B Bonty

          Thanks for rply!

          can u please share the link of actual solution.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Bonty said in Could not find the Qt platform plugin "xcb" in imx8m-mini(NXP):

          can u please share the link of actual solution

          You want @JonB to search for you? You can't do it on your own?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • B Bonty

            Thanks for rply!

            can u please share the link of actual solution.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Bonty
            There isn't any one solution. There are multiple possibilities depending on the diagnostic output. Start by setting that environment variable and looking at it, especially right near the end where it should indicate what your situation is.

            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