Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT Platform plugin issue on raspberry pi
Forum Updated to NodeBB v4.3 + New Features

QT Platform plugin issue on raspberry pi

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 1.0k 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.
  • C Offline
    C Offline
    cbarreto
    wrote on 8 May 2024, 01:24 last edited by
    #1

    I'm trying to run a code in Visual Studio Code for ArUco marker detection and i'm using an ArduCam camera module 3. But once I run the code I am receiving this message through the terminal:

    Selected sensor format: 1536x864-SBGGR10_1X10 - Selected unicam format: 1536x864-pBAA
    QObject::moveToThread: Current thread (0x7f8002f960) is not the object's thread (0x7f8017f550).
    Cannot move to target thread (0x7f8002f960)

    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/cbarreto/env/lib/python3.11/site-packages/cv2/qt/plugins" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

    Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

    Aborted

    I wish I could submit a photo to not make this post gigantic but I've tried installing libxcb-xinerama0. I updated picamera2 and opencv. I checked for missing dependencies using ldd /path/to/qt/plugins/platforms/libqxcb.so but it didn't seem to do anything and i also tried to create a symbolic link with sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/ but nothing seemed to happen in the terminal. I'm very new to raspberry pi so I don't know what I'm doing or if I'm doing it properly.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 8 May 2024, 06:58 last edited by
      #2

      Please set QT_DEBUG_PLUGINS env variable before starting your app and then check the output: it should say exactly what is wrong. See https://doc.qt.io/qt-6/debug.html

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

      1 Reply Last reply
      0

      1/2

      8 May 2024, 01:24

      • Login

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