
Building GL4D on Windows
========================================================================

A) Install the necessary software for building GL4D.

     1. CMake (>= 2.6.4)
        http://www.cmake.org/cmake/resources/software.html
        e.g., the installer on Win
              cmake-2.6.4-win32-x86.exe

     2. Microsoft Visual Studio (full or express edition)

B) Download libraries GL4D depends on.

     1. Download the Win32 GLUT binary.
        http://www.xmission.com/~nate/glut.html

     2. Download the Win32 GLEW binary.
        http://glew.sourceforge.net/

     3. Unzip the GL4D_Demo zip package to some directory
         path\to\gl4d
        and you will find this readme file under
         path\to\gl4d\readme.txt

     4. Putting the GLUT and GLEW libraries and header
        files according to the following layout:

         path\to\gl4d/bin/glew32.dll
         path\to\gl4d/bin/glewinfo.exe
         path\to\gl4d/bin/glut32.dll
         path\to\gl4d/bin/visualinfo.exe
         path\to\gl4d/include/GL/glew.h
         path\to\gl4d/include/GL/glut.h
         path\to\gl4d/include/GL/wglew.h
         path\to\gl4d/lib/glew32.lib
         path\to\gl4d/lib/glew32s.lib
         path\to\gl4d/lib/glut32.lib

C) Compile GL4D Demo

     1. Launch Visual Studio command prompt from Start Menu.

     2. Use the following command to build GL4D demo program from demo.c

         > cd path\to\gl4d\src
         > cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.. .
         > nmake install

     3. (Optional) Alternatively one can create a Visual Studio project
        file using the following CMake commands for Visual Studio 2005
        and 2008 respectively.

         > cmake -G "Visual Studio 8 2005" ..
         > cmake -G "Visual Studio 9 2008" ..

D) Run GL4D.

     1. Change directory to 
         path\to\gl4d\bin

     2. Execute gl4d-demo.exe from command line or by double
        clicking it in Windows Explorer
