Saturday, October 1, 2011

GLUT in Fedora15

For all those who have nightmares trying to install glut in Fedora15 , try these steps.
They worked for me :)
 

#yum install gcc-c++
#yum install freeglut-devel

Compile your c++ code as

g++ -L/usr/lib filename.cpp -lglut -lGL -lGLU

Keyin  ./a.out to view your output.














2 comments:

  1. NOTE:
    In your code :
    #include<GL/glut.h>
    //not #include<GLUT/glut.h>
    //also
    #include<iostream>
    using namespace std;
    //and not <iostream.h>

    ReplyDelete