-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOW-TO] Could not load the Qt platform plugin "xcb" in "" even though it was found. #789
Comments
Is your Pi connected directly to a display using an HDMI cable? Are you logged directly in to your Pi (through an attached keyboard), or are you connected via ssh or VNC? Could you test if |
Sorry for the belated response.
This is not an issue; understand just a little bit about what is going on here. VNC: Not sure why the preview window did not launch. libcamera-hello --qt-preview Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Aborted VNC: In the last scenario, an untitled window appears momentarily and then disappears. Again, FWIW, I am using libcamera utilities successfully on other diverse RPi boards. This specific board is an older one (SDcard not microSD! Raspberry Pi Model B Plus Rev 1.2). If you feel that I should simply re-image it with the latest Raspberry Pi OS and try again, I will gladly do that. I am simply hoping for a quick fix since the computer does infrastructure support and I'd prefer some update/upgrade fix rather than re-install other 3rd party packages. Thanks again for all your support. Sincerely appreciate it. Regards. |
You wrote: |
Generally I find that managing Qt and OpenCV versions (among other packages) is a bit tricky, and if you ever install the "wrong" version of something it can be quite difficult to know how to recover. If you do have a spare SD card and are able to, it's probably worth trying a fresh install. If you use the full version of the OS, your original script should "just work". The point about using an older device is a good one. I believe a fresh install should work, however, rendering through to the display using Qt and X Windows is likely to be pretty painful, I'd have thought, to the point of barely usable. If you can, you might want to consider the Lite OS and the DRM preview. |
Thanks, @davidplowman. Will accept the advice and re-image. Naturally, I'll get picamera2 library to work first before installing all the other stuff most of which are scripted anyway. I have several RPis and Picamera2 is working (and some supporting OpenCV too). My purpose in logging the issue was two-fold:
Regards. |
Please only ask one question per issue!
Describe what it is that you want to accomplish
The error message contains the string:
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Which application should be re-installed?
Describe alternatives you've considered
Running the following script from The Picamera2 Library page 7 documentation:
Preview.DRM had more errors.
Additional context
Add any other context or screenshots about the request here.
There is no pip3 installed v4l2 package as shown below:
Glamor is enabled; required to run libcamera-hello successfully.
With Preview.QTGL the following output is displayed:
Thanks!
The text was updated successfully, but these errors were encountered: