[Gdal-dev] What python libs are required for gdal compile?
Patton, Eric
epatton at nrcan.gc.ca
Wed Jun 7 10:12:35 EDT 2006
Thanks to all who replied; Frank, the problem was that I didn't have python
dev package installed.
~ Eric.
-----Original Message-----
From: Zhonghai Wang
To: Frank Warmerdam
Cc: Patton, Eric; gdal-dev at lists.maptools.org
Sent: 6/7/2006 2:56 AM
Subject: Re: [Gdal-dev] What python libs are required for gdal compile?
Hi there,
you need Python 2.3.4, and don`t forget the additional Numeric package
2.3.4.
best regards
zhonghai
On 6/6/06, Frank Warmerdam <warmerdam at pobox.com
<mailto:warmerdam at pobox.com> > wrote:
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 <mailto:warmerdam at pobox.com>
light and sound - activate the windows | http://pobox.com/~warmerdam
<http://pobox.com/~warmerdam>
and watch the world go round - Rush | President OSGF,
http://osgeo.org <http://osgeo.org>
_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org <mailto:Gdal-dev at lists.maptools.org>
<http://lists.maptools.org/mailman/listinfo/gdal-dev>
http://lists.maptools.org/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list