Need help with compiling mapscript for use with Tcl.

Tom Poindexter tpoindex at nyx.net
Mon Nov 20 16:54:50 PST 2000


On Mon, Nov 20, 2000 at 03:48:33PM -0700, Yeewen Sat wrote:
> I "swiged" mapscript.i to create c wrappers for tcl.
> 
> $ swig -tcl mapscript.i
> Making wrappers for Tcl
> ../../map.h : Line 362. Warning. Array member will be read-only.
> ../../maperror.h : Line 35. Warning. Array member will be read-only.
> ../../maperror.h : Line 36. Warning. Array member will be read-only.
> ../../mapshape.h : Line 72. Warning. Array member will be read-only.
> 
> 
> Are the above warnings critical?
 
No.  The warnings mean that some Mapserver objects (the primary C structs)
have members that are readonly.  If you peek in the map.h and mapshape.h
files, you'll see the SWIG '%readonly' operator used.

> Also, before I go further, does anyone have a Makefile that will compile
> mapscript for use with Tcl?

I have a Tcl interface that has been submitted for inclusion into CVS, but
last time I check it still hasn't been merged.  I made some enhancements to
the interface to open some extra functions, and have a few nice demo programs
in the works.  One is a mapfile viewer, which is mostly based on 
previous work by Peter deVoil.  I'm also working on a mapfile editor, which 
will provide a tree-structured editor for mapfiles.  Using Tcl's often
ignored 'send' command, it should be easy to make the viewer and editor
work well together.    I also have a Makefile, and a minimal 'configure'
script (not a real autoconf one, but one that should work anyway.)

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



More information about the MapServer-users mailing list