compiling with fastcgi enabled on Windows

Frank Warmerdam fwarmerdam at GMAIL.COM
Thu Dec 30 20:53:19 EST 2004


On Tue, 28 Dec 2004 17:16:27 +0100, Bart van den Eijnden
<bartvde at xs4all.nl> wrote:
> Hi list,
>
> has anybody compiled Mapserver in fastcgi mode on Windows?
>
> The current makefiles don't have options for enabling FASTCGI (the
> configure file has though for Unix/Linux), so I am looking for what to add
> to the makefile.vc or nmake.opt in order to get a Mapserver FastCGI.

Bart,

Sorry about that.  I neglected to get the FastCGI stuff into
4.4 in time.  You might want to just use MapServer 4.5 (aka dev)
which does have stubs in the nmake.opt for FastCGI support.

It looks something like:

# FastCGI Support
#
# Uncomment, and update accordingly.
#FCGIDIR=C:\projects\fcgi-2.4.0
#FCGILIB=$(FCGIDIR)\libfcgi\Debug\libfcgi.lib
#FCGIINC=-I$(FCGIDIR)\include
#FCGIDEF=-DUSE_FASTCGI

EXTERNAL_LIBS=$(GD_LIBS) $(TIFF_LIB) $(JPEG_LIB) \
     $(PROJ_LIB) $(OGR_LIB) $(GDAL_LIB)\
     $(CURL_LIB)  $(MING_LIB) $(PDF_LIB) \
     $(WINSOCK_LIB) $(POSTGIS_LIB) $(IMGGEN_LIB) $(ERR_LIB) \
     $(ORACLE_LIB) $(SDE_LIB) $(ICONV_LIB) $(FCGILIB)

NCLUDES=$(GD_INC) $(TIFF_INC) $(JPEG_INC)  \
         $(PROJ_INC) $(REGEX_INC) $(GDAL_INC) $(OGR_INC) \
         $(CURL_INC) $(MING_INC) $(PDF_INC) $(POSTGIS_INC) \
         $(IMGGEN_INC) $(ERR_INC) $(ORACLE_INC) $(SDE_INC)\
         $(ICONV_INC) $(FCGIINC)

MS_DEFS = $(REGEX_OPT) $(STRINGS) $(POSTGIS)  -DWIN32 -D_WIN32 \
          $(EPPL) $(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) \
          $(WMSCLIENT) $(MING) $(IGNORE_MISSING_DATA)
$(NEED_NONBLOCKING_STDERR) $(ENABLE_STDERR_DEBUG) \
          $(GDAL) $(FCGIDEF) \
          $(WFS) $(WFSCLIENT) $(WCS) $(PDF) $(EGIS) \
        $(USE_GD_ANTIALIAS) $(ORACLE) $(MING_VERSION) $(SDE_OPT) $(ICONV)

Let me know if you run into specific problems.  My next FWTools
build of MapServer for win32 will come shipped with FastCGI
enabled.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list