2

I have a project which uses the raspberry pi camera and openCV (also: ROS) to do some movement analysis. However, when I want to display the image (with the openCV API or a ROS node), there's an error saying

window system doesn't support opengl

And that happens although the openGL test-programs as well as raspistill work perfectly. I already tried installing openCV 2.7 from source and getting the ros-desktop packages, but nothing worked until now.

I'm using C++ to program everything, not python.

Thanks in advance

SlySven
3,6311 gold badge20 silver badges46 bronze badges
asked Jan 2, 2016 at 16:52
1

2 Answers 2

2

Raspberry Pi doesn't come with OpenGL support by default, but it's a simple installation. I believe you will just need to install libgl1-mesa-dri. You can do that at the command line using: Code:

apt-get update
apt-get install libgl1-mesa-dri
Aloha
7,1861 gold badge29 silver badges53 bronze badges
answered Jan 23, 2016 at 10:43
2
  • Raspberry Pi doesn't come with OpenGL support - but it does have the version for embedded systems, i.e. OpenGL ES 2.0 which is similar but not the same... Also, according to Debian that says about the libgl1-mesa-dri package: "This [...] provides GLX and DRI capabilities: it is capable of both direct and indirect rendering. For direct rendering, it can use DRI modules from the libgl1-mesa-dri package to accelerate drawing. This package does not include the OpenGL library itself, only the DRI modules for accelerating direct rendering. " Commented Jan 24, 2016 at 5:38
  • this didn't work for me - even after reboot (Jessie) Commented Oct 17, 2016 at 10:45
1

Please try

sudo apt-get install libgl1-mesa-dri

and reboot

goldilocks
60.4k17 gold badges117 silver badges236 bronze badges
answered Jan 14, 2016 at 14:45
1
  • Why? Your answer doesn't give any context, and while I know enough to check what it does, we can't assume that the user does, especially when the command contains sudo. Please elaborate. Commented Jan 14, 2016 at 18:47

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.