标题:qt4.8.6编译qwt6.1.0提示缺少gl.h
作者:fariel
日期:2014-06-26 17:02
内容:
系统环境:ubuntu14.04
make的时候总是提示:
compiling qwt_plot_glcanvas.cpp
In file included from qwt_plot_glcanvas.cpp:10:0:
qwt_plot_glcanvas.h:15:17: fatal error: qgl.h: 没有那个文件或目录
#include 可是我已经安装了sudo apt-get installlibgl1-mesa-dev libglu1-mesa-dev是不是还有什么库没有安装呢
#1 [fariel 06-27 12:21]
找到原因了,原来是编译qt4.8.6时,只是用了./configure 这样编译安装的qt4.8.6竟然没有opengl模块,重新编译加上opengl模块就好了