[Gdal-dev] What python libs are required for gdal compile?
Frank Warmerdam
warmerdam at pobox.com
Tue Jun 6 15:02:47 EDT 2006
Patton, Eric wrote:
> Having received repeated libtool errors during compliation, I complied with
> libtool support suppressed:
>
> gdal_wrap.c:12035: warning: data definition has no type or storage class
> gdal_wrap.c: In function 'init_gdal':
> gdal_wrap.c:12040: error: 'PyObject' undeclared (first use in this function)
Eric,
The above is quite disturbing. I find it hard to imagine successfully
including Python.h but not having the PyObject definition at this late
point in the file.
> gdal_wrap.c:12040: error: 'm' undeclared (first use in this function)
> gdal_wrap.c:12040: error: 'd' undeclared (first use in this function)
> gdal_wrap.c:12040: warning: left-hand operand of comma expression has no
> effect
> gdal_wrap.c:12040: warning: statement with no effect
> gdal_wrap.c:12042: warning: implicit declaration of function 'Py_InitModule'
> gdal_wrap.c:12043: warning: implicit declaration of function
> 'PyModule_GetDict'
> make[1]: *** [gdal_wrap.o] Error 1
> make[1]: Leaving directory `/opt/gdal-1.3.2/pymod'
> make: *** [py-module] Error 2
>
> Does anyone know what these errors mean? Are these errors indicate problems
> with my python libraries?
Is this all the errors you get? Is it possible you get some earlier
errors that might give more clues?
Note, it is critical to have the python development package (which contains
Python.h) installed.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list