Re: [greenstone-users] how to compile the source code?

From Stefan Boddie
DateThu, 22 May 2003 16:55:56 +1200
Subject Re: [greenstone-users] how to compile the source code?
In-Reply-To (20030522043248-5386-qmail-webmail30-rediffmail-com)
> Thankx to Michael and Stefan
> for the kind help in generating custom navigation button.
> how to compile the source code that i modified a little.
> I have the following environments on my PC.
> OS:window98
> webserver: apache1.3
> greenstone2.39 installed for web option with source code.
> I have VC++ compiler. Do i need anything else to compile the
> code?
> deepak

Attached is the relevant section from the gsdl/Install.txt file.


-- Compiling on Windows --

Greenstone has been successfully compiled using Microsoft Visual C++
versions 4.2 and 6.0. If anyone succeeds in compiling Greenstone with
another compiler (or another version of VC++) we'd appreciate hearing about
it at

The major difference between compiling with VC++ 4.2 compared with VC++ 6.0
is that 4.2 must use the STLport standard template library (packaged with
Greenstone) while VC++ 6.0 may use its own built in STL implementation.

Perform the following steps to compile and install Greenstone. Note that
some parts of the process described are specific to one or other of the two
compilation options mentioned above (STLport or non-STLport). These steps
are marked as such.

1. Unzip the following zip archives (into the directories in which the
zip files themselves are contained).

* (STLport version only)

2. To use VC++ command line tools you may need to execute the
MSDEVBINVCVARS32.BAT batch file to set up your environment.

3. cd to the top level gsdl directory (i.e. the directory where this file

4. compile the web library (library.exe) with
"nmake /f win32.mak USE_STLPORT=1" (STLport version)
"nmake /f win32.mak" (non-STLport version).

5. compile the local library (server.exe) with
"nmake /f win32.mak USE_STLPORT=1 LOCAL_LIBRARY=1" (STLport version)
"nmake /f win32.mak LOCAL_LIBRARY=1" (non-STLport version)

This will install library.exe to the gsdlcgi-bin directory and server.exe
to the top level gsdl directory.