I realize this is going to be terrible vague, but I really dont understand the inner workings of various linux distributions to give more details…
I have ubuntu on my laptop, and when I wrote programs in opengl using a makefile that looked like this:
CC = g++
LDLIBS = -lglut -lGL -lGLU -lX11 -lm -L/usr/lib
.cpp:
$(CC) $@.cpp $(LDLIBS) -o $@
However, when using a makefile like this on my desktop, which is running fedora, and trying to compile a program containing the header
#include<GL/glut.h>
I get this compiler error:
blah.cpp:2:21: error: GL/glut.h: No such file or directory
Does this mean I need to manually download and install the source? Or will the headers be located elsewhere? I’ve poked around for a bit and haven’t really found anything that looks like glut.h in the include and lib directories, but then I really dont know where I should be looking. Any help would be GREATLY appreciated.
Thanks!