Hmm... I think we already ship MapServer with the C wrapper generated.
IIRC, you can use the standard way to build the python module also,
which does not require swig:
cd mapscript/python && python setup.py build && python setup.py install
Alan
On 12-07-05 01:08 AM, Umberto Nicoletti wrote:
python mapscript now requires swig 2.x: install it then rerun configure
and make
hth,
Umberto
On Thursday, July 5, 2012, Jackey Cheung wrote:
Hi all,
Not sure if i've done anything wrong. I've met the "Unknown option:
-a" while compiling Python MapScript.
MapServer: Git trunk, CentOS 6 box running on Intel Pentium D.
./configure --with-wms --with-wfs --with-curl --with-jpeg
--with-freetype --with-png --with-threads --with-postgis --with-xml2
--with-libiconv --with-proj --with-ogr --with-gdal --with-cairo
--with-ftgl --with-opengl --with-threads --with-geos --with-postgis
--with-mysql --with-wmsclient --with-wfsclient --with-sos --with-wcs
--with-curl --with-kml --with-xml-mapfile --with-xslt --with-fastcgi
--with-exempi --with-fribidi-config --with-zlib --with-gd
--with-postgis --with-mysql --with-php --with-libsvg-cairo
--enable-fast-nint --enable-proj-fastpath --enable-point-z-m
--enable-python-mapscript
Although I don't need all these features yet, I've decided to test
compiling all of them in case I need them in future. Configure went
well, and finished with everything. But while compiling Python:
cd mapscript/python; make;
make[1]: Entering directory
`/home/jackey.cheung/mapserver-6.2.0-beta1/mapscript/python'
python -shadow -modern -templatereduce -fastdispatch -fvirtual
-fastproxy -modernargs -castmode -dirvtable -fastinit -fastquery
-noproxydel -nobuildnone -DUSE_PROJ_FASTPATHS -DUSE_POINT_Z_M
-DUSE_FASTCGI -DUSE_SVG_CAIRO -DUSE_CAIRO -DUSE_FRIBIDI
-DUSE_FRIBIDI2 -DUSE_EXSLT -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR
-DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL
-DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI -DUSE_WCS_SVR
-DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS
-DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS
-DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_OGL
-DUSE_FTGL -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF
-DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE
-DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR
-DDISABLE_CVSID -o mapscript_wrap.c ../mapscript.i
Unknown option: -a
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
Any clue?
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Alan Boudreault
http://www.mapgears.com/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users