Can I use GLEW without requiring GLU?
I never use GLU functionality anymore, but I've become a big fan of GLEW. I've had a couple people unable to compile my project because they did not have GLU installed yet (Ubuntu users). Is there a way to effectively disable GLU in GLEW? I suppose I could edit the GLEW header to not include GLU, but I think that violates the license, and GLEW seems to have lots of preprocessor directives. Maybe it has one I don't know about... ?
The file glew.h makes a direct attempt to include glu.h. I doubt the rest of GLEW makes any use of it, but it does include the header file. :(
Remove it. Also, email the developer to remove it.
//edit: actually, I think they include it because GLU include gl.h and if someone in their source includes glu.h before glew.h, then you get preprocessor messages from GLEW complaining. In your case, just comment out GLU.h
//edit: actually, I think they include it because GLU include gl.h and if someone in their source includes glu.h before glew.h, then you get preprocessor messages from GLEW complaining. In your case, just comment out GLU.h
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement