Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Opengl

  1. #11
    Join Date
    Oct 2007
    Beans
    49
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Opengl

    so how to do that?? (srry but I'm a newbie here)

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

    Re: Opengl

    add -lgl as an option
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

  3. #13
    Join Date
    Oct 2007
    Beans
    49
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Opengl

    add it where?? and how??
    Last edited by madfrenzy; March 2nd, 2008 at 10:27 PM.

  4. #14
    Join Date
    Oct 2007
    Beans
    49
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Opengl

    what are the header files required for this program?? in ubuntu ofcorse

  5. #15
    Join Date
    Jun 2006
    Beans
    943

    Re: Opengl

    This may possibly help. Especially Wybiral's post (it is the second one):

    http://ubuntuforums.org/showthread.p...wybiral+opengl

  6. #16
    WW is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Oct 2004
    Beans
    1,532

    Re: Opengl

    Somehow madfrenzy has to tell Netbeans to add the options -lGLU -lGL (or something similar) to the g++ command that links the program. I've never used Netbeans, but it appears from the output shown above that it creates a Makefile and uses make to compile and link the code. Can someone help madfrenzy figure out how to tell Netbeans to use the OpenGL libraries?

  7. #17
    Join Date
    Aug 2007
    Location
    127.0.0.1
    Beans
    1,800
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Opengl

    The correct way to add them is:

    #include <GL/glut.h>
    #include <GL/gl.h>
    (notice the uppercase on GL)

    You can check if you have the files if there is a folder:
    ls -l /usr/include/GL
    If it isn't,get them with the freeglut3-dev package, and it should install everything. I just installed this and I can include glut.h and gl.h on C
    sudo apt-get install freeglut3-dev
    *Yeah, I was right, I uninstalled the freeglut3-dev and glut.h disappeared. So that's the correct package.
    Last edited by Can+~; March 5th, 2008 at 04:22 AM.
    "Just in terms of allocation of time resources, religion is not very efficient. There's a lot more I could be doing on a Sunday morning."
    -Bill Gates

Page 2 of 2 FirstFirst 12

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
  •