[Gdal-dev] trouble installing latest svn ngpython bindings on python 2.5

Matthew Perry perrygeo at gmail.com
Thu Apr 19 21:50:59 EDT 2007


Hey folks,

 I checked out svn revision 11300 and I'm getting an error installing
the ngpython bindings:

make[2]: Entering directory `/home/perry/src/gdal/swig/python'
python setup.py install --prefix=/usr/local
numpy include /usr/lib/python2.5/site-packages/numpy/core/include
running install
running build
running build_py
running build_ext
building '_gdal' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg
-I../../ogr -I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/python2.5 -c gdal_wrap.cpp -o
build/temp.linux-i686-2.5/gdal_wrap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gdal_wrap.cpp: In function 'int
SWIG_Python_ConvertFunctionPtr(PyObject*, void**, swig_type_info*)':
gdal_wrap.cpp:2051: error: invalid conversion from 'const char*' to 'char*'
gdal_wrap.cpp: In function 'void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**, swig_type_info**)':
gdal_wrap.cpp:11168: error: invalid conversion from 'const char*' to 'char*'
error: command 'gcc' failed with exit status 1
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/perry/src/gdal/swig/python'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/perry/src/gdal/swig'
make: *** [install-actions] Error 2


Any ideas?

-- 
Matthew T. Perry
http://www.perrygeo.net

"You never change things by fighting the existing reality.
To change something, build a new model that makes
the existing model obsolete" - R. Buckminster Fuller



More information about the Gdal-dev mailing list