UNDER CONSTRUCTION
Downloads:
<a href='http://sourceforge.net/projects/mingw/'>MinGW</a> - for gcc, windres, mingw32-make, msys, cp, and rm.
GLUT for Win32 - for the GLUT for Win32 source files.
makefile - to make the GLUT for Win32 AFTER two small changes have been made to the GLUT for Win32 source files.
OPTIONAL: get-path-info.js - to troubleshoot DLL and EXE conflicts caused by multiple folders in PATH environment variable having DLLs or EXEs with the same name.
Outline:
Download and Install MinGW
Download and Unzip the GLUT for Win32 Source Code
Download the Makefile
Make Two Modifications to the GLUT for Win32 Source Code
Make the GLUT for Win32
Install the GLUT for Win32
Test the GLUT for Win32
Procedure:
Download and Install MinGW
~~~~TODO~~~~
Download and Unzip the GLUT for Win32 Source Code
~~~~TODO~~~~
Download the Makefile
~~~~TODO~~~~
Right click the following link and save the file:
makefile
Save the makefile to the root of the unzipped GLUT for Win32 folder (i.e. glut-3.7.6/ where the README is located).
Make Two Modifications to the GLUT for Win32 Source Code
Make the following modifications:
Add the following lines to include/GL/glut.h starting at line 12:
#ifdef __MINGW32__
#define _STDCALL_SUPPORTED
#endif
Comment out line 21 in lib/glut/win32_winproc.c so that it reads:
//#include <crtdbg.h>
Note: After these modifications have been made glut.h and win32_winproc.c should look like the following:
glut.h
win32_winproc.c
Make the GLUT for Win32
~~~~TODO~~~~
In MSys (the MinGW Shell ... where /mingw is defined), cd to the root of the GLUT for Win32 folder (i.e. glut-3.7.6/ where the makefile was saved).
mingw32-make
Install the GLUT for Win32
~~~~TODO~~~~
mingw32-make install
Test the GLUT for Win32
~~~~TODO~~~~
mingw32-make test
References:
Using GLUT with MinGW
HOWTO Use Mark J. Kilgard's OpenGL Utility Toolkit (GLUT) with MinGW
MSVC and MinGW DLLs
MS resource compiler
UNDER CONSTRUCTION