home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / readme.glut < prev   
Text File  |  1996-05-27  |  2KB  |  71 lines

  1.  
  2.  
  3.           Instructions for Using GLUT with Mesa
  4.  
  5.  
  6. Mark Kilgard's GLUT (OpenGL Utility Toolkit) is a toolkit for quickly
  7. and easily writing OpenGL demos and applications.
  8.  
  9. GLUT has been used successfully with Mesa on many systems.  If you have
  10. problems contact Brian Paul if you think the problem is caused by Mesa.
  11. Contact Mark Kilgard, or post to the Mesa mailing list, if you think the
  12. problem is in GLUT.
  13.  
  14. At the time of Mesa's 1.2.7 release the latest version of GLUT is 3.0
  15.  
  16.  
  17. Here's how to get GLUT and build it using Mesa:
  18.  
  19. 1. Use your WWW browser to open the URL:
  20.     http://reality.sgi.com/employees/mjk_asd/glut3/glut3.html
  21.  
  22.    Under "About the GLUT source code distribution" is a link to the
  23.    distribution file glut-3.0.tar.Z  Click on it to download GLUT.
  24.  
  25. 2. In your shell, move glut-3.0.tar.Z into the Mesa-1.2.x directory and
  26.    unpack it with:
  27.     zcat glut.3.0.tar.Z | tar xvf -
  28.  
  29. 3. cd to the GLUT directory:
  30.     cd glut-3.0
  31.  
  32. 4. Make a backup copy of Glut.cf:
  33.     cp Glut.cf Glut.cf.orig
  34.  
  35. 5. Make sure GLut.cf is writable since we have to edit it:
  36.     chmod +w Glut.cf
  37.  
  38. 6. If you're using a Sun with Solaris then define the following two
  39.    environment variables from your shell:
  40.  
  41.     OGLHOME    to where you've installed Mesa (like /usr/home/brian/Mesa)
  42.     OPENWINHOME to something like /usr/openwin
  43.  
  44.    Otherwise, edit Glut.cf as follows:
  45.  
  46.     change:        EXTRA_INCLUDES = -I$(TOP)
  47.     to look like:    EXTRA_INCLUDES = -I$(TOP)/../include -I$(TOP)
  48.  
  49.     change:        OPENGL = -lGL
  50.     to look like:    OPENGL = $(TOP)/../lib/libMesaGL.a
  51.  
  52.     change:        GLU = -lGLU
  53.     to look like:    GLU = $(TOP)/../lib/libMesaGLU.a
  54.  
  55.    NOTE: if you made shared Mesa libraries, the suffixes might be .so instead
  56.    of .a
  57.  
  58. 7. Run the mkmkfiles.imake script:
  59.     mkmkfiles.imake
  60.  
  61. 8. Run make:
  62.     make
  63.  
  64. 9. If all goes well there should be many executables in the progs/
  65.    directories for you to try out.
  66.  
  67. 8. You may want to copy the lib/glut/libglut.a file to wherever you have
  68.    your Mesa libraries (libMesaGL.a, libMesaGLU.a, etc) if you're going to
  69.    use it for your own work.
  70.  
  71.