[mapserver-users] Can't compile TCL Mapscript

Tom Poindexter tpoindex at nyx.net
Mon Nov 26 21:53:23 EST 2001


I suspect this has to do with the GD 1.8 version, which uses an extra
parameter for image quality.  I recommend building Mapserver 3.4 with
the included GD 1.2 version for now.  Alternatively, you can 
install SWIG to generate a new mapscript_wrap.c (and then change all of
the Tcl calls to mapscript::msSaveImage to include a quality parameter also.)

I'm working on an upgraded Mapscript/Tcl for MapServer 3.5, which will
support GD 1.8+.  The latest CVS version of MapServer should have the
updated files.


On Mon, Nov 26, 2001 at 03:46:51PM -0500, Jim Palma wrote:
> Help.
> 
> I am trying to compile the tcl interface for Mapscript so I can use
> msworkbench.  This is the output that I get:
> 
> [root at donahuemaps tcl]# make
> gcc -pipe -c -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1
> -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1
> -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1
> -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1
> -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1
> -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1
> -DHAVE_SYS_IOCTL_H=1  -fPIC \
> -I/usr/include \
> -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG
> -DUSE_GD_1_8 -I. -I/usr/local/src/mapserver/gdft -I/usr/include/freetype
> \
> -DUSE_TCL_STUBS -DITCL_NAMESPACES -DItcl_Namespace=int
> -D"spaceId=spcid;Tcl_InitStubs(interp,\"8.1\",0)" \
>         mapscript_wrap.c
> mapscript_wrap.c: In function `_wrap_mapscript_msSaveImage':
> mapscript_wrap.c:555: too few arguments to function `msSaveImage'
> make: *** [stublib] Error 1
> 
> I am using Mapserver 3.4 and do not have SWIG installed.  Anyone know
> what's going on?
> 
> Thanks,
> 
> Jim
> 

-- 
Tom Poindexter
tpoindex at nyx.net
http://www.nyx.net/~tpoindex/



More information about the mapserver-users mailing list