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

Thread: Glut in Linux

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    8

    Glut in Linux

    I am new to programming Opengl in linux...Can you use glut in linux too? If not is there something like using glut for linux? thanx

  2. #2
    Member Regular Contributor
    Join Date
    Aug 2001
    Posts
    264

    Re: Glut in Linux

    RTFM. Yes you can use glut in linux. It comes with most distros if it didnt come with yours google(http://www.google.com/linux) it. OGL and most things for it come to linux before win because M$ sux and they dont support OGL. You may also want to look into SDL.

  3. #3
    Intern Contributor
    Join Date
    Nov 2002
    Location
    Torun/Poland
    Posts
    60

    Re: Glut in Linux

    If you are a rookie linux programmer I suggest that you should use GLFW (found in google - I don't remember exact link). It's much better than GLUT and as simple in use.
    .

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    8

    Re: Glut in Linux

    How can I put the header files in the right places? Do I have to...like in VS? Do I just put the glut.dll in the project?

  5. #5
    Intern Newbie
    Join Date
    Apr 2002
    Posts
    30

    Re: Glut in Linux

    You can cd /usr/include and make sure that all your opengl headers are in /usr/include/GL, and if they are not you can copy them like cp glut.h /usr/include/GL/glut.h, or something like that, you could also use the gui interface to do all the same things. Once everything is all set, glut.lib, or glut.a, or glut.so(or libglut.whatever), or all the above should be, or placed in /usr/lib, and to compile glut g++, or
    gcc file.c -o file -lGL -lGLU -lglut -lm(g++, and gcc take the same args, but g++ is best.) Don't use kdevelope, and there is no form of VB, or basic of any kind on linux. For and editor, use advanced editor; don't use kate, or kedit for programming, but some people like emacs, or for the command line lovers pico.

Posting Permissions

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