Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: OpenGL and Glut libraries

  1. #1
    Join Date
    Feb 2006
    Beans
    60

    OpenGL and Glut libraries

    I need to compile a program which requires OpenGL and Glut libraries. I tried searching for glut, mesa, opengl, and it came up with several packages. Which package will I need to install?

    Thank you.

  2. #2
    Join Date
    Jul 2006
    Location
    USA
    Beans
    277
    Distro
    Ubuntu 14.04 Trusty Tahr

    Lightbulb Re: OpenGL and Glut libraries

    Good question I haven't done it myself yet but I shall try to take a shot at it. First you need to the files (.h and .cpp I am assuming that it's a C++ program). Now easy way to do it have a folder with the gult libraries and call for in your makefile.

    OR

    You can add the location of the files in .bash_profile I think it goes something like
    PATH=location/of/your/files/
    this should work unless if I have it wrong considering I haven't done this in 4 years. I am going to try it out when I get home and I shall update you on it if it works out for me.
    Yeah I know pirated copy of XP is free, but so is Ubuntu and it's LEGAL!

  3. #3

    Re: OpenGL and Glut libraries

    mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libglut3-dev

    Those are the ones I appear to have installed - you may not need them all - try the ones in bold first and see if the rest install as dependancies.
    Last edited by bukwirm; November 12th, 2006 at 03:33 AM. Reason: spelling

  4. #4
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: OpenGL and Glut libraries

    when installing libfreeglut3-dev, it will install needed things as dependencies.

    then you just link your program to glut via -lglut (it will link for OpenGL, GLU and GLUT)

  5. #5
    Join Date
    May 2006
    Location
    Nowra, NSW, Australia
    Beans
    17
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: OpenGL and Glut libraries

    Hi, I am also trying to compile in OpenGL. I have compiled simple C++ programs before just using:
    g++ <file>

    But I don't know how to compile a C++ OpenGL program. Can you please give me an explanation and an example which will compile a C++ OpenGL program? I'm pretty sure I have all the required libraries after looking into this a few days ago, but I couldn't manage to compile anything. I've been told I need to set some options at the command line.

    Also, any good resources for learning OpenGL through C++?

    Please shed some light on this for me.

  6. #6
    Join Date
    Nov 2005
    Location
    Almeria, Spain
    Beans
    276
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: OpenGL and Glut libraries

    Compiling C++ files using glut is as simple as this:

    $ g++ -lglut file.cpp

    As for resources for learning glut with C++, the same ones for glut with C will serve.

    Here is a nice introduction:

    http://mind****.de-brauwer.be/articles/glut/
    Francisco Camenforte Torres
    http://fmct.blogspot.com

  7. #7
    Join Date
    Aug 2006
    Location
    Belgium
    Beans
    Hidden!
    Distro
    Xubuntu 8.04 Hardy Heron

    Re: OpenGL and Glut libraries

    hey i wrote that page

  8. #8
    Join Date
    Nov 2005
    Location
    Almeria, Spain
    Beans
    276
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: OpenGL and Glut libraries

    It was quite useful to me back in the CG course.
    Francisco Camenforte Torres
    http://fmct.blogspot.com

  9. #9
    Join Date
    Jun 2006
    Location
    Manchester, UK
    Beans
    305

    Re: OpenGL and Glut libraries

    cheers for the link, im looking into gl programming, and couldn't get anything to produce better than a blank window - the teapot appeared from the link, so its gonna work now...yay!

  10. #10
    Join Date
    Aug 2006
    Beans
    156
    Distro
    Ubuntu 6.10 Edgy

    Re: OpenGL and Glut libraries

    I've been wanting to get back into 3D graphics programming (after quitting it for GUI application development in Linux), and that looks like a nice tutorial, amo-ej1.

    Do you think it is worth it doing raw OpenGL over a 3D engine like Irrlicht? I'm not sure whether I want to use a prebuilt engine or not...

    -----BEGIN GEEK CODE BLOCK-----
    GCS/MU dpu s-:-- a16--- C++++ UL++ P+ L+++>++++ E--- W+++ N++ o k? w--- !O M V-- PS !PE Y+ PGP+ t+ 5- X R+ tv+ b+++ DI+ D++ G e- h! r! !y

    ------END GEEK CODE BLOCK------

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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