Qt error: GL/gl.h

重新安装了Ubuntu12.04,Qt5.1,编译shanbaydict过程,出现错误,这是由于You are missing the OpenGL include files. Install the mesa-common-dev package,
../../Qt5.1.0/5.1.0/gcc_64/include/QtGui/qopengl.h:110:21: fatal error: GL/gl.h: No such file or directory
执行
sudo apt-get install mesa-common-dev
编译出现如下错误提示:
/usr/bin/ld: cannot find -lGL
执行下面命令解决:
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev

猜你喜欢

转载自blog.csdn.net/wo_xiao_lin/article/details/38414259
今日推荐