GdkGLExt-WARNING **:Window系统不支持OpenGL

时间:2016-06-23 10:51:22

标签: opencv opengl-es raspberry-pi raspbian imshow

我在raspberry pi 2中使用Opencv。它工作正常但在将其升级为raspbian Jessie后,在调用cv :: imshow()函数时显示以下错误: GdkGLExt-WARNING **: Window system doesn't support OpenGL 和崩溃。 尝试安装libgl1-mesa-dri,但它已经是最新版本了。谁能说出问题是什么?

1 个答案:

答案 0 :(得分:0)

使用vnc4server替换tightvncserver和其他软件包解决了这个问题,如下面的bash脚本所示:

#! /bin/bash

# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi
dpkg --purge tightvncserver
dpkg -i xbitmaps_1.1.1-2_all.deb
dpkg -i x11-apps_7.7+4_armhf.deb
dpkg -i x11-session-utils_7.7+1_armhf.deb
dpkg -i xbase-clients_1%3a7.7+7_all.deb
dpkg -i vnc4server_4.1.1+X4.3.0-37.6_armhf.deb
# Restart vnc running script in background
systemctl restart vncboot.service