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 6 of 6

Thread: Newbe: Is OpenGL already installed on my system?

  1. #1
    Intern Newbie
    Join Date
    Apr 2001
    Posts
    36

    Newbe: Is OpenGL already installed on my system?

    I just recently installed
    Mandrake 7.2 and did the reccomended install, then chose FULL install.

    I found glut libraries in my /usr/X116/lib

    but I can't find any gl.h or glu.h or anything like that on my computer.

    Do I have to install these or am I just not finding them?

    Basically what do I need to do to get OpenGL program's compiling and running on my Mandrake 7.2

    thanks

  2. #2
    Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    418

    Re: Newbe: Is OpenGL already installed on my system?

    You need to install the development RPMS.

    Specifically, XFree86-devel and Mesa-common-devel, and maybe some other ones.

    Cheers.

  3. #3
    Intern Newbie
    Join Date
    Apr 2001
    Posts
    36

    Re: Newbe: Is OpenGL already installed on my system?

    Thanks, XFree86-devel was already installed,
    but I can't find Mesa-common-devel on my CD's or anything, is there somewhere I can download it? I looked for it at www.linux-mandrake.com but I just kept getting sent in circles, never finding the file to download.

  4. #4
    Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    418

    Re: Newbe: Is OpenGL already installed on my system?


  5. #5
    Intern Newbie
    Join Date
    Apr 2001
    Posts
    36

    Re: Newbe: Is OpenGL already installed on my system?

    Thanks, I actually found it on my extra's CD and installed it..worked great. got my program to compile and run.

    Now I have another problem, in another one of my opengl programs it uses sqrt, sin, cos functions from math.h

    but I get undefined refrence to 'sqrt'

    I'm sure it something stupid, but I'm just learning this gcc...never really used it before I always used VC++ on windows.

  6. #6
    Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    418

    Re: Newbe: Is OpenGL already installed on my system?

    You need to link in the math library.

    Add -lm to the end of your gcc options.

Posting Permissions

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