Qt编译出错 GL/gl.h:No such file or directory

系统:Ubuntu18.04

软件:QtCreator4.8  Qt5.9.8

编译Qt Widgets Application类型的项目时,出现错误,提示: GL/gl.h: No such file or directory

原因GL相关库为安装,通过以下指令可安装GL相关库

sudo apt-get install  mesa-common-dev
sudo apt-get install  libgl1-mesa-dev libglu1-mesa-dev
原文地址:https://www.cnblogs.com/GregTse/p/11755905.html