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