Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: unable to run opengl on fedora core 3

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2007
    Location
    bangalore
    Posts
    11

    unable to run opengl on fedora core 3

    hey ppl,
    actually i'm doing a graphics display system using opengl.. i'm using fedora core 3 for that purpose. i installed the full cds of fedora .. but at the end when i'm compiling my code its giving linking error and saying the glut.h file is missing.. i dont understand what is happening because previously also i had used the same version of linux to compile some other codes .. those code are also not running now.. i'm really facing a lot of prob for that.. do help me out what to do.. if possible please tell me the link from where i can download the opengl plugins for fedora core 3 so that i can run my code..

    thanks..
    debasish

  2. #2
    Intern Contributor
    Join Date
    Mar 2007
    Posts
    63

    Re: unable to run opengl on fedora core 3

    You should check if you have glut available. As root try to do '$> updatedb' to update the search database. Then do '$> locate glut.h'. If that does return a path to you glut, make sure you compile your app with '-lglut' to include the link library. If you don't have glut installed, try to yum install glut, or download the source.

    Good luck

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    656

    Re: unable to run opengl on fedora core 3

    since the compiler says that glut.h is missing, it is a compilation error, not a linker error.

    you have to find glut.h; if it is in /usr/X11R6/include/GL/glut.h, you have to compile with

    gcc -I/usr/X11R6/include

    assuming that you include

    #include<GL/glut.h>

    EDIT: sorry, the compiler flag has to be -I , not -L

  4. #4
    Junior Member Newbie
    Join Date
    Mar 2007
    Location
    bangalore
    Posts
    11

    Re: unable to run opengl on fedora core 3

    thanks for the reply ppl.. actually glut.h is not missing.. but the commands under glut.h header is not compiling..

    even the man pages of glutDisplayFunc() and glutReshapeFunc() are not coming.. it says the man pages are not found.. so i assumed that glut.h is not found..
    debasish

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    656

    Re: unable to run opengl on fedora core 3

    the man pages have nothing to do with the compiling process. if the header file and the library are there, it should work.

    maybe you can post some code and the error messages.

  6. #6
    Junior Member Newbie
    Join Date
    Mar 2007
    Location
    bangalore
    Posts
    11

    Re: unable to run opengl on fedora core 3

    ok thank u ppl.. now i'm getting the output.. actually i was not using the -lglut option..
    debasish

  7. #7
    Junior Member Newbie
    Join Date
    Mar 2007
    Location
    bangalore
    Posts
    11

    Re: unable to run opengl on fedora core 3

    hey ppl can u plz tell me how to print dynamec string on the screen using opengl..
    debasish

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •