[Mapserver-users] Error when compiling mapserver in win32.

Ed McNierney ed at topozone.com
Fri Feb 7 13:09:37 EST 2003


Gayathri -

REGEX under Windows provides by far the highest pain/code ratio of any module in the system!

The problem mainly stems from a very bad Windows makefile for regex-0.12.  Here's what I do to fix it.

1. Go to the regex-0.12 directory and do "nmake /f makefile.vc regex.obj".  Be sure to explicitly state the regex.obj target - otherwise the makefile will attempt to build a bunch of stuff that won't build.

2. Edit your MapServer makefile so the "clean" target (at the end) does NOT delete regex.obj.

All you need out of this library is the regex.obj file.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

-----Original Message-----
From: Swaminathan, Gayathri [mailto:gayathri at ou.edu]
Sent: Friday, February 07, 2003 12:41 PM
To: 'mapserver-users at lists.gis.umn.edu'
Subject: FW: [Mapserver-users] Error when compiling mapserver in win32.




-----Original Message-----
From: Swaminathan, Gayathri 
Sent: Friday, February 07, 2003 9:39 AM
To: 'Norman Vine'
Subject: RE: [Mapserver-users] Error when compiling mapserver in win32.


Hi:

I do have the regex from ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz
and my Makefile.vc looks like this,

#REGEX_OBJ=.\regex-0.12\regex.obj
REGEX_INC=-I../regex-0.12

and PHP REGEX looks as follows:

#
# IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS:
#
# If you want to compile the PHP_MAPSCRIPT module, then you have to make
# MapServer uses the same version of the REGEX library that PHP was 
# compiled with:
#
#PHP_REGEX=..\php-3.0.14\regex
#PHP_REGEX=..\php-4.0.6\regex
#PHP_REGEX=..\php-4.1.2\regex
#PHP_REGEX=..\php-4.2.1\regex
#PHP_REGEX=..\php-4.2.2\regex
#REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \
#          $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj
#REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES

#
# REGEX needs some special flags... here they are for VC++ 6.0
#
REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC

Am still getting errors though, any lead?
Thanks,
Gayathri

-----Original Message-----
From: Norman Vine [mailto:nhv at cape.com]
Sent: Friday, February 07, 2003 9:40 AM
To: Swaminathan, Gayathri; mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Error when compiling mapserver in win32.



----- Original Message ----- 
From: "Swaminathan, Gayathri" <gayathri at ou.edu>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Friday, February 07, 2003 12:21 PM
Subject: [Mapserver-users] Error when compiling mapserver in win32.


> Hi:
> I am getting the following errors when trying to compile mapserver 3.6.3
> without any OGR / TIFF ,
> looks like a problem with REGEX.,
> 
> Can anyone tell me how to resolve this?

see required libraries section @
http://mapserver.gis.umn.edu/doc36/win32_compile-howto.html#download

Norman
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list