[Gdal-dev] Python Module Build

Sean Fulton fulton at cmu.edu
Mon Apr 19 23:35:42 EDT 2004


On Apr 15, 2004, at 5:53 PM, Alessandro Amici wrote:

>
> Sean,
>
> On Thursday 15 April 2004 10:02, Alessandro Amici wrote:
>> ok, finally i understand what is going on on MacOS X. i'll try to fix 
>> the
>> configure/make system ASAP. it is not strightforward, but it can be 
>> done
>> ;).
>
> mmm, looks like things are harder than i thought along this route :(. i
> couldn't beat the python build into submission, yet.
>
> however, this is what i wrote in january when the macosx link problem 
> was
> reported for the first time:
>
>> the build of the gdal python module has always been fragile, and it 
>> has
>> became a real hack since the libtool transition (my fault, 
>> admittedly).
>> IMHO the  only hope to get out of the current mess is to use the 
>> distutils
>> infrastructure, that hopefully will take care of the OSX problem as 
>> well.
>>
>> so i refreshed what looked like an abandoned setup.py in the top 
>> directory.
>> current gdal cvs builds and installs fine on linux with:
>> $ ./configure <...> --without-python
>> $ make
>> $ python setup.py build
>> $ python setup.py install
>
> it still works on linux. could you test if it works on MacOS X as well?
>

Alessandro,

That didn't work (a bit of output is below). It looks like it's not 
finding the gdal header files. Is there anyway to get tell it where 
they are? I'm sorry, I don't know much about python so I'm not much 
help.

	Sean

...
pymod/gdal_wrap.c:4587: error: parse error before "_arg0"
pymod/gdal_wrap.c:4589: error: `GDALColorEntry' undeclared (first use 
in this function)
pymod/gdal_wrap.c:4589: error: `_arg2' undeclared (first use in this 
function)
pymod/gdal_wrap.c:4597: error: `_arg0' undeclared (first use in this 
function)
pymod/gdal_wrap.c:4610: warning: implicit declaration of function 
`GDALGetColorEntryAsRGB'
pymod/gdal_wrap.c: In function `_wrap_GDALSetColorEntry':
pymod/gdal_wrap.c:4617: error: `GDALColorTableH' undeclared (first use 
in this function)
pymod/gdal_wrap.c:4617: error: parse error before "_arg0"
pymod/gdal_wrap.c:4619: error: `GDALColorEntry' undeclared (first use 
in this function)
pymod/gdal_wrap.c:4619: error: `_arg2' undeclared (first use in this 
function)
pymod/gdal_wrap.c:4627: error: `_arg0' undeclared (first use in this 
function)
pymod/gdal_wrap.c:4640: warning: implicit declaration of function 
`GDALSetColorEntry'
pymod/gdal_wrap.c: In function `_wrap_GDALSetCacheMax':
pymod/gdal_wrap.c:4653: warning: implicit declaration of function 
`GDALSetCacheMax'
pymod/gdal_wrap.c: In function `_wrap_GDALGetCacheMax':
pymod/gdal_wrap.c:4666: warning: implicit declaration of function 
`GDALGetCacheMax'
pymod/gdal_wrap.c: In function `_wrap_GDALGetCacheUsed':
pymod/gdal_wrap.c:4678: warning: implicit declaration of function 
`GDALGetCacheUsed'
pymod/gdal_wrap.c: In function `_wrap_GDALFlushCacheBlock':
pymod/gdal_wrap.c:4690: warning: implicit declaration of function 
`GDALFlushCacheBlock'
pymod/gdal_wrap.c: In function `_wrap_GDALChecksumImage':
pymod/gdal_wrap.c:4698: error: `GDALRasterBandH' undeclared (first use 
in this function)
pymod/gdal_wrap.c:4698: error: parse error before "_arg0"
pymod/gdal_wrap.c:4709: error: `_arg0' undeclared (first use in this 
function)
pymod/gdal_wrap.c: At top level:
pymod/gdal_wrap.c:10815: warning: function declaration isn't a prototype
pymod/gdal_wrap.c:193: warning: `SWIG_addvarlink' defined but not used
error: command 'gcc' failed with exit status 1




More information about the Gdal-dev mailing list