To install OpenGL and glut in fedora,
Type in the following commands as root user..
If you donot have C++, Instal it
#yum install gcc-c++
Then install the freeglut devel package
#yum install freeglut-devel
Compile your c++ code as
g++ -L/usr/lib filename.cpp -lglut -lGL -lGLU
In the above command,we instruct g++ compiler to fetch glut, gl, glu libraries from /usr/lib
Things to remember:
#include // not GLUT/glut.h
#include //not iostream.h
No comments :
Post a Comment