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

Moritz Lennert mlennert at club.worldonline.be
Wed Jun 17 09:44:12 EDT 2009


On 16/06/09 17:14, Glynn Clements wrote:
> 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. Am I the only 
one seeing this error ?

Moritz



More information about the grass-dev mailing list