[GRASS-dev] compiling today's grass7 trunk: ogr_srs_api.h: No
such file or directory
Glynn Clements
glynn at gclements.plus.com
Wed Jun 17 17:59:40 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.
>
> In swig/python/Makefile, I see
>
> proj_wrap_c_FLAGS = $(PROJINC) $(GDALCFLAGS)
>
> but I don't really understand where this comes into play.
This should ensure that proj_wrap.c can find the PROJ and GDAL
headers.
> Am I the only one seeing this error ?
I don't see it. It would be help if you post the gcc command which
generates the error message.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list