[Gdal-dev] ngpython compile error (python2.5 / amd64)
Vincent Schut
schut at sarvision.nl
Mon Dec 4 06:42:11 EST 2006
I just did a cvs update and saw some files come along that strongly
suggested the appearance of numpy support in gdal's ngpython module. So
I thought I'd give it a try. However, on building the ngpython gdal
extension I get this error, which is possible related to me using 1)
python2.5, and 2) an amd64 (linux) pc.
building '_gdal' extension
creating build/temp.linux-x86_64-2.5
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC
-I../../port -I../../gcore -I../../alg -I../../ogr
-I/usr/lib64/python2.5/site-packages/numpy/core/include
-I/usr/include/python2.5 -c gdal_wrap.cpp -o
build/temp.linux-x86_64-2.5/gdal_wrap.o
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 'int SWIG_AsCharPtrAndSize(PyObject*, char**,
size_t*, int*)':
gdal_wrap.cpp:2657: error: cannot convert 'int*' to 'Py_ssize_t*' for
argument '3' to 'int PyString_AsStringAndSize(PyObject*, char**,
Py_ssize_t*)'
gdal_wrap.cpp: In function 'PyObject*
_wrap_Dataset_WriteRaster(PyObject*, PyObject*, PyObject*)':
gdal_wrap.cpp:7537: error: cannot convert 'int*' to 'Py_ssize_t*' for
argument '3' to 'int PyString_AsStringAndSize(PyObject*, char**,
Py_ssize_t*)'
gdal_wrap.cpp: In function 'PyObject* _wrap_Band_WriteRaster(PyObject*,
PyObject*, PyObject*)':
gdal_wrap.cpp:9102: error: cannot convert 'int*' to 'Py_ssize_t*' for
argument '3' to 'int PyString_AsStringAndSize(PyObject*, char**,
Py_ssize_t*)'
gdal_wrap.cpp: In function 'void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**, swig_type_info**)':
gdal_wrap.cpp:11099: error: invalid conversion from 'const char*' to 'char*'
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
make[2]: *** [install] Error 1
make[2]: Leaving directory `/usr/local/src/gdal/swig/python'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/local/src/gdal/swig'
make: *** [install-actions] Error 2
Cheers,
Vincent.
More information about the Gdal-dev
mailing list