Here we say again: GLEW is not part of OpenGL . This is a third-party library.
You don't need GLEW on MacOS X!
You bark the wrong tree!
Instead of trying to fix GLEW (which you don't need). Just fix your program so you donβt use GLEW when compiling for MacOS X.
Everywhere in your program where you find
#include <glew.h>
or
#include <GL/glew.h>
Change it to
#ifndef __APPLE__ #include <GL/glew.h> #else #include <OpenGL/gl.h> #endif/*__APPLE__*/
Place any event in which the GLEW function is called between
#ifndef __APPLE__ β¦ #endif
.
You do not need GLEW on MacOS X! Do not use it there.
source share