[Gdal-dev] NumPy supported in 1.4.0?

William Kyngesburye woklist at kyngchaos.com
Fri Feb 9 22:37:24 EST 2007


And now after trying it... mixed success

I tried both python 2.4 and python 2.5.

2.4, with an old numpy 0.9.8 installed: I get the exact same 'not  
declared in this scope' errors with numpy.  probably expected for an  
old numpy version.

2.4, with new numpy 1.0.1: success, no problems at all.

2.5, with new numpy 1.0.1: immediately, in _gdal, I get something  
completely different:

gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - 
fno-common -dynamic -DNDEBUG -g -O3 -I../../port -I../../gcore - 
I../../alg -I../../ogr -I../../macosx/GDAL/gdal -I/Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/ 
include -I/Library/Frameworks/Python.framework/Versions/2.5/include/ 
python2.5 -c gdal_wrap.cpp -o build/temp.macosx-10.3-fat-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_Python_ConvertFunctionPtr 
(PyObject*, void**, swig_type_info*)':
gdal_wrap.cpp:2051: error: invalid conversion from 'const char*' to  
'char*'

...and many more of these...


I noticed that both python 2.4 and 2.5 compile with gcc, but link  
with g++, even though it's compiling a C++ source.  It seems to work  
in 2.4, but not 2.5.

-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/

Earth: "Mostly harmless"

- revised entry in the HitchHiker's Guide to the Galaxy




More information about the Gdal-dev mailing list