Ubuntu12.4 + Qt4.8.1+OpenGL配置

 

QT 4.8.1 + OpenGL 无法使用GLU库的问题 :

1、在需要glu库的cpp下,包含“GL/glu.h”

2、这样还是会提示gluPerspective() 的 reference 没有(还没链接glu的库),所以在*.pro 下 加一句:

LIBS+=-lGLU\
原文地址:https://www.cnblogs.com/panxihua/p/2740699.html