[Gdal-dev] What python libs are required for gdal compile?

Patton, Eric epatton at nrcan.gc.ca
Mon Jun 5 15:13:15 EDT 2006


Having received repeated libtool errors during compliation, I complied with
libtool support suppressed:

./configure --with-libz=internal --with-png=internal \
--with-libtiff=internal \
--with-geotiff=internal \
--with-jpeg=internal \
--with-gif=internal \
--with-sqlite=/usr/local/lib \
--with-libtool=no

And received the following errors:

...
<snip>
(Note: There are dozens of lines of gdal_wrap.c errors. Shown are the last
20 or so lines of these)
gdal_wrap.c:12032: warning: initialization makes integer from pointer
without a cast
gdal_wrap.c:12032: warning: excess elements in scalar initializer
gdal_wrap.c:12032: warning: (near initialization for '_gdalMethods[407]')
gdal_wrap.c:12032: warning: excess elements in scalar initializer
gdal_wrap.c:12032: warning: (near initialization for '_gdalMethods[407]')
gdal_wrap.c:12033: warning: braces around scalar initializer
gdal_wrap.c:12033: warning: (near initialization for '_gdalMethods[408]')
gdal_wrap.c:12033: warning: initialization makes integer from pointer
without a cast
gdal_wrap.c:12033: warning: excess elements in scalar initializer
gdal_wrap.c:12033: warning: (near initialization for '_gdalMethods[408]')
gdal_wrap.c:12034: warning: data definition has no type or storage class
gdal_wrap.c:12035: error: syntax error before '*' token
gdal_wrap.c:12035: warning: type defaults to 'int' in declaration of
'SWIG_globals'
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)
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?

~ Eric.




More information about the Gdal-dev mailing list