[Mapserver-users] Python/Mapscript

Norman Vine nhv at cape.com
Sat Jul 12 12:54:02 PDT 2003


Sean Gillies writes:
> 
> On Saturday, July 12, 2003, at 11:53  AM, Heitzso wrote:
> > >
> > I followed the directions at
> >    http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript
> > to build the python mapscript module. 
> >
> Heitzso,
> 
> Please disregard the directions on the Wiki page.  They are a bit
> out of date.  Here is the official recipe to compile Python
> MapScript.
> 
> 1. Download and compile the latest nightly (pre-4.0) MapServer.
>     This is important because it will allow you to pick up some
>     important changes made to the mapscript wrappers since the
>     4.0beta1 release was made.
> 2. cd into the mapscript/python directory
> 3. execute "python setup.py install".  That's it.

Hmm there seems to be a problem ....
< This is with CVS files >

mapscript_wrap.c: In function `mapObj_processQueryTemplate':
mapscript_wrap.c:1652: warning: passing arg 2 of `msProcessQueryTemplate' makes integer from pointer without a cast
mapscript_wrap.c:1652: warning: passing arg 4 of `msProcessQueryTemplate' makes pointer from integer without a cast
mapscript_wrap.c:1652: too few arguments to function `msProcessQueryTemplate'

< cheap hack to get mapscript to compile is >
$ cvs diff mapscript.i
Index: mapscript.i
===================================================================
RCS file: /data2/cvsroot/mapserver/mapscript/mapscript.i,v
retrieving revision 1.113
diff -r1.113 mapscript.i
397c397,398
<     return msProcessQueryTemplate(self, names, values, numentries);
---
> //    return msProcessQueryTemplate(self, names, values, numentries);
>       return msProcessQueryTemplate(self, 0, names, values, numentries);



> If MapServer was built properly, the newest setup.py script will
> find all the required libraries for you.

FYI - This new script does *not* work for me

For anyone else on a unix like system who is having problems building 
python mapscript I keep the files I use at
http://www.vso.cape.com/~nhv/files/python/mapscript.html

Cheers

Norman





More information about the MapServer-users mailing list