1、问题描述
opencv第一次编译时,报错GL/gl.h: No such file or directory
错误信息如下:

/home/wrj/anaconda3/include/qt/QtGui/qopengl.h:139:22: fatal error: GL/gl.h: 没有那个文件或目录
compilation terminated.

2、原因分析
说明系统里面缺少OpenGl库

3、解决方法

sudo apt-get install mesa-common-dev
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev

 

相关文章:

  • 2022-02-18
  • 2021-09-12
  • 2021-10-04
  • 2022-12-23
  • 2021-11-15
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2021-06-07
相关资源
相似解决方案