qt.qpa.xcb: could not connect to display
I am trying to run turtlesim_node
as shown below:
unix20p04p4@DESKTOP-RKF1B6O:~$ ros2 run turtlesim turtlesim_node
Unfortunately, I am getting the following result:
qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Please help.
Asked by Ruedscher on 2022-09-07 05:43:01 UTC
Answers
The problem is unrelated to turtlesim or ROS, for this matter. It is a problem with the display/graphics. A quick Google search gave the following results:
- https://forum.qt.io/topic/134114
- https://forum.qt.io/topic/134780
- https://forum.qt.io/topic/125338
- https://forum.qt.io/topic/132855
- https://forum.qt.io/topic/137749
- https://stackoverflow.com/questions/71250718
- https://github.com/yuk7/ArchWSL/issues/200
Asked by ravijoshi on 2022-09-07 22:10:10 UTC
Comments
Did you ever fix this? I am struggling with the same problem...
Asked by ItsFark on 2022-10-27 08:45:41 UTC
Comments
This fixed my problem.
https://answers.ros.org/question/354808/error-running-turtlesim-noetic/
Greetings
Asked by Ruedscher on 2022-10-31 07:12:58 UTC
Comments
What OS are you using? Are you using a virtual machine?
Asked by Mike Scheutzow on 2022-09-08 06:51:46 UTC
Did you ever fix this? I am struggling with the same problem...
Asked by ItsFark on 2022-10-27 08:45:27 UTC