[GRASS-dev] compiling today's grass7 trunk: ogr_srs_api.h: No such file or directory

Glynn Clements glynn at gclements.plus.com
Tue Jun 16 11:14:55 EDT 2009


Moritz Lennert wrote:

> I get the following error running make in swig/python in grass7 of today 
> (rev 37908).
> 
> In file included from proj_wrap.c:2694:
> /home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-gnu/include/grass/gprojects.h:23:29: 
> error: ogr_srs_api.h: No such file or directory

> The file ogr_srs_api.h sits in /usr/include/gdal/.
> 
> Any ideas of what is wrong here ?

The libgrass_gproj wrapper includes <grass/gprojects.h>, which
includes ogr_srs_api.h. It adds (or should add) $(PROJINC) and
$(GDALCFLAGS) when compiling the wrapper.

> I also get a make errors for a few scripts (v.in.garmin, v.in.gpsbabel, 
> v.out.gps, r.li/r.li.setup) but I guess this is linked to the fact that 
> they haven't been ported to python, yet ?

Yes.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list