[mapserver-users] Building Mapscript/Python

Norman Vine nhv at cape.com
Tue Aug 21 14:14:47 EDT 2001


Doyon, Jean-Francois writes:
>
>Hello,
>
>I'm trying to build a Mapscript module for Python 2.1 out of the CVS
>version, and am having some problems. I was wondering if anybody has
>succeeded?
>
>I've done:
>
>cd mapserver/mapscript/python
>ln -s ../mapscript.i mapscript.i
>swig -shadow -python mapscript.i
>gcc -c mapscript_wrap.c -I/usr/include/python2.1 -o mapscriptcmodule.o
>ld -shared mapscriptcmodule.o -o mapscriptcmodule.so

I really don't know much about making .so files 
but don't you have to link the shared library against libmap.a  
and the other libraries that it depends on ?

FWIW
I haven't tried building mapserver or mapsript for a while
but find attached a python Setup file that I have used before
to build python mapscript with Linux
If you are familiar with building Python modules this
should be self documenting

IMHO 
Python mapscript really needs a Python DistUtils Setup file written. 
then in a cross platform way this would be as simple as 

% cd $MAP_SRC / mapscript / python
% python setup.py --install

Unfortunately this is currently a rather low-priority on my todo list.
< but that could possibly be changed if someone had a real need >

Cheers

Norman VIne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup.mapscript
Type: application/octet-stream
Size: 962 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010821/3be1e5a5/setup.obj


More information about the mapserver-users mailing list