[Gdal-dev] [Fwd: strange problem compiling against ndarrayobject.h]

Vincent Schut schut at sarvision.nl
Thu Nov 1 04:05:51 EDT 2007


OK, rebuilding now, thanks for the fix! I was really frightened that I
had screwed up my numpy, or even worse, python build...

Cheers,
Vincent.

Mateusz Loskot wrote:
> Frank Warmerdam wrote:
>   
>> Vincent Schut wrote:
>>     
>>> /usr/lib64/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
>>>
>>>                  from extensions/gdal_array.h:10,
>>>                  from extensions/_gdal_array.cpp:33:
>>> /usr/lib64/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:92:2:
>>>
>>> error: #error Must use Python with unicode enabled.
>>>       
>> Vincent,
>>
>> At first I had no idea and assumed this was a Python 2.5 issue.  But then I
>> ran into it on my system and discovered things were hosed by a change
>> Mateusz made last night.  I have fixed
>> gdal/swig/python/extensions/gdal_array.h
>> in trunk now and things seem to be building ok for me.
>>
>> Update, and try again.
>>     
>
> Frank,
>
> Yes, re-ordering headers broken numpy support.
> Thanks for fixing.
>
> Cheers
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20071101/ecd1fb0a/attachment.html


More information about the Gdal-dev mailing list