Building glean under Windows
Note : this document asumes that you are using Microsoft Visual C++ 6 (VC6).
Other software you'll need
Currently glean doesn't build with the STL included with VC6. glean
has been verified to build with the STLport
implementation.
Obtain the source code
Obtain the .zip file containing glean from
ftp://ftp.mesa3d.org/mesa/contrib/.
Unzip the file:
pkunzip -d glean_1_0.zip c:\
cd glean_1_0
This will create a subdirectory named glean_1_0 and make it your
current directory.
Set the GLEAN_ROOT environment variable
To compile or run glean, you will need to set the environment variable
GLEAN_ROOT to the full pathname of the glean source directory.
Open a dos prompt and type
set GLEAN_ROOT=c:\glean_1_0
Be sure to set the environment variable each time you want to compile or
run glean.
Set the VC6 environment variables
To use the command-line tools, you will have to set some environment variables.
There is a batch file in VC6's bin directory called vcvars32.bat that
contains the necessary commands. Just execute this in the same dos
prompt as the previous step and you'll be set to go.
Set Makefile options
Edit GLEAN_ROOT\make\common.win and modify the configuration variables
according to your preferences. Some of the variables that are most likely
to need customization are:
STL_DIR
This variables specifies
the directory containing include files of the STLport.
LIBTIFF_INC_DIR
LIBTIFF_LIB_DIR
These variables specify
the directories that contain the libtiff include files and library resp.
Build glean
When you've finished editing the Makefile, simply type
cd src
nmake /f makefile.win
This will build glean and the other tools in the suite, and install
them in $GLEAN_ROOT/bin.