[mapserver-users] Python Mapscript MS 3.6.1

Vinko Vrsalovic vinko at cprsig.cl
Wed Jul 10 16:06:29 EDT 2002


Hello,

	I've been trying to compile the mapscript python module, but I
	keep finding this errors:

	First, when swigging the .i file, i get:

	swig -python -shadow -DSWIGPYTHON -module mapscript -o
	./mapscript_wrap.c ../mapscript.i

	../mapscript.i:37. Warning: class keyword used, but not in C++
	mode.
	../../map.h:424. Warning: class keyword used, but not in C++
	mode.
	/usr/lib/swig1.3/constraints.i:89.  Warning.  Deprecated typemap
	feature ($source/$target).
	swig:  The use of $source and $target in a typemap declaration
	is deprecated.
	swig:  For typemaps related to argument input
	(in,ignore,default,arginit,check), replace
	swig:  $source by $input and $target by $1.   For typemaps
	related to return values (out,
	swig:  argout,ret,except), replace $source by $1 and $target by
	$result.  See the file
	swig:  Doc/Manual/Typemaps.html for complete details.
	/usr/lib/swig1.3/constraints.i:108.  Warning.  Deprecated
	typemap feature ($source/$target).

	That warning goes on for several lines.

	Later, when compiling the mapscript_wrap.c, i get:

	gcc -DNDEBUG -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro
	-march=i586 -ffast-math -fno-strength-reduce -fPIC -UTIFF_STATIC
	-UJPEG_STATIC -UZLIB_STATIC -UIGNORE_MISSING_DATA -UUSE_EPPL
	-UUSE_PROJ -UUSE_PROJ_API_H -UUSE_WMS -UUSE_TIFF -UUSE_JPEG
	-UUSE_GD_PNG -UUSE_GD_JPEG -UUSE_GD_WBMP -UUSE_GDAL
	-UUSE_POSTGIS -I../.. -I../../gd-1.8.4
	-I/usr/local/include/freetype -I/usr/local/include
	-I/usr/include/python2.2 -c mapscript_wrap.c -o
	build/temp.linux-i686-2.2/mapscript_wrap.o
	mapscript_wrap.c: In function `_raise_ms_exception':
	mapscript_wrap.c:1583: `ms_error' undeclared (first use in this
	function)
	mapscript_wrap.c:1583: (Each undeclared identifier is reported
	only once
	mapscript_wrap.c:1583: for each function it appears in.)


	I've read the archives and found references to this error, but
	then i get only: OK, now i solved that and built the extension,
	and I have another problem, but they don't tell how did they
	solve the error :-(

	I've tried to use the Vines's setup.py script, but that doesn't
	solve the compilations problem nor the swig warnings...

	Python 2.2, Swig 1.3.

	Any and all help will be greatly appreciated.

-- 
Vinko Vrsalovic <vinko[|- at -|]cprsig.cl>
http://www.cprsig.cl



More information about the mapserver-users mailing list