I'm trying to use GLEW and XServer / X11 in a C++ app as instructed in Chapter 15 of the OpenGL Superbible, 5th ed.
I'm using this Makefile:
LIBDIRS = -L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib INCDIRS = -I/usr/include -L/usr/include CC = g++ CFLAGS = $(COMPILERFLAGS) -g $(INCDIRS) LIBS = -lX11 -lXi -lXmu -lm -lGLEW -lGLU -lGL GLXBasics: GLXBasics.o $(CC) $(CFLAGS) -o GLXBasics $(LIBDIRS) GLXBasics.cpp $(LIBS) clean: rm -f *.o
and getting this result:
GLXBasics.cpp:4:18: fatal error: glew.h: No such file or directory
[EDIT:] After fixing a silly coding error, I now have trouble with X11, and my GLEW issues are history.
/usr/bin/ld: cannot find -lXi /usr/bin/ld: cannot find -lXmu
If I comment out the inclusion of
glew.h, it fails on the inclusion of
I have sudo-copied and pasted
/usr/include/GL. (Which is where I believe they're supposed to be?)
Forgive me in case I forgot to include something in my question - anything you'd like to know or see from my terminal just ask.