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

 

posted @ 2019-10-28 22:08  GregTse  阅读(774)  评论(0编辑  收藏  举报