QT5.3.2编译程序出错: GL/gl.h: No such file or directory

用QT5.3.2编译程序报错:

 fatal error: GL/gl.h: No such file or directory

原因:

You are missing the OpenGL include files. Install the mesa-common-dev package.

解决方法:

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

你可能感兴趣的:(QT)