README.win32 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. NB
  2. ==================================
  3. For ancient 16bit compatibility, windef.h (included through windows.h in
  4. freeglut_std.h) defines near and far. Its best to avoid using variables
  5. with these names in your own program.
  6. Installing the Libraries with MSVC
  7. ==================================
  8. To install "freeglut" on your system so that your other projects will see it,
  9. you will need to copy various files to various locations.
  10. - The header files "freeglut.h", "freeglut_ext.h", "freeglut_std.h", and
  11. "glut.h" (distributed in the directory "freeglut\freeglut\include\GL")
  12. need to be copied to a "GL" directory under the MSVC include directory.
  13. The MSVC include directory generally has a path similar to
  14. "C:\Program Files\Microsoft Visual Studio\VC98\Include"
  15. The "GL" subdirectory under that will probably already have the header
  16. files "gl.h", "glaux.h", and "glu.h".
  17. - The library file "freeglut.lib" or "freeglut_static.lib" (from the
  18. corresponding debug or release directory) needs to be copied into the
  19. MSVC library directory. This usually has a path similar to:
  20. "%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Lib" - x86 32 bits LIB's
  21. "%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\Lib" - x64 32 bits LIB's
  22. "%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\Lib\x64" - x64 64 bits LIB's
  23. Note that there is no "GL" subdirectory here. This directory should
  24. already have the files "opengl32.lib", "glu32.lib", and "glaux.lib".
  25. - If you are using the DLL version of "freeglut", the file "freeglut.dll"
  26. needs to be copied from the Debug or the Release directory into the
  27. DLL directory. This usually has a path similar to
  28. "%SystemRoot%\System32\" - x86 32 bits DLL's
  29. "%SystemRoot%\SysWOW64\" - x64 32 bits DLL's
  30. "%SystemRoot%\System32\" - x64 64 bits DLL's
  31. and will probably already have the files "opengl32.dll" and "glu32.dll".
  32. Building and Installing the Libraries with Open Watcom
  33. ======================================================
  34. Start a command prompt and change directory to the freeglut installation
  35. directory. Type "wmake -f Makefile.wat all" to build the DLL and static
  36. libraries in both debug and release versions.
  37. To install "freeglut" on your system so that your other projects will see it,
  38. you will need to copy various files to various locations.
  39. - The header files "freeglut.h", "freeglut_ext.h", "freeglut_std.h", and
  40. "glut.h" (distributed in the directory "freeglut\freeglut\include\GL")
  41. need to be copied to a "GL" directory under the Open Watcom 32-bit
  42. Windows include directory. This usually has a path similar to
  43. "C:\WATCOM\h\nt\GL"
  44. - The library file "freeglut.lib" or "freeglut_static.lib" (from the
  45. corresponding debug or release directory) needs to be copied into the
  46. Open Watcom 32-bit Windows library directory. This usually has a path
  47. similar to
  48. "C:\WATCOM\lib386\nt"
  49. - If you are using the DLL version of "freeglut", the file "freeglut.dll"
  50. needs to be copied from the Debug or the Release directory into the
  51. DLL directory. This usually has a path similar to
  52. "C:\Windows\System32"
  53. and will probably already have the files "opengl32.dll" and "glu32.dll".
  54. Unlike the *nix release, the library names are NOT automatic replacements for
  55. the GLUT library names. You may rename them manually if you wish, but this is
  56. not necessary as the header file includes a pragma telling the compiler which
  57. library file to look for.
  58. Building and Installing the Libraries with Cygwin
  59. =================================================
  60. To build "freeglut" under Cygwin, you have two choices:
  61. - You can build a normal Cygwin library, which depends on Cygwin's X11
  62. libraries. To do this, you can just use the normal autotools incantation:
  63. ./configure && make install
  64. - Alternatively, you can build a DLL which does not depend on X11 and links
  65. against the opengl32 DLL. To do this, configure need a few more flags:
  66. ./configure CPPFLAGS=-mno-cygwin LDFLAGS=-mno-cygwin --without-x && make install
  67. If you don't have MSVC, Open Watcom or Cygwin
  68. =============================================
  69. The "freeglut" developers' community discussed the possibility of distributing
  70. binaries and decided against it. If you need Windows library files, please
  71. contact John F. Fay at <john.fay@eglin.af.mil> or put a request on the
  72. "freeglut" developers' mailing list <freeglut-developer@lists.sourceforge.net>.