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

Glynn Clements glynn at gclements.plus.com
Fri Jun 19 04:12:48 EDT 2009


Moritz Lennert wrote:

> >> Yes, but what I meant is that I don't see where the proj_wrap_c_FLAGS
> >> variable is read.
> > 
> > include/Make/Compile.make:
> > 
> > $(OBJDIR)/%.o : %.c $(LOCAL_HEADERS) $(EXTRA_HEADERS) $($*_c_FLAGS) | $(OBJDIR)
> > 	$(call compiler_c)
> > 
> > $* is the stem, i.e. the part of the name which the % matches, so if
> > the target is $(OBJDIR)/proj_wrap.c, $* is proj_wrap and $*_c_FLAGS is
> > proj_wrap_c_FLAGS.
> 
> Thanks and sorry, should have been able to find this myself...

That's okay; it took me 5 minutes to find it, and I put it there ;)

> > Except ... variables in dependency lines are substituted when the file
> > is read, and proj_wrap_c_FLAGS hasn't been defined at that point. I'll
> > change the compilation rules to move this into the actions.
> > 
> > Try r37929; I can't easily test it, as neither PROJ nor GDAL require
> > any -I switches on my system.
> > 
> 
> Now it get's further, but fails with apparently the same problem at:

> OBJ.i486-pc-linux-gnu/vector_wrap.o -c vector_wrap.c

> error: ogr_api.h: No such file or directory

Er, right. It's using $(VECT_INC), which is always empty. It should be
using $(VECT_CFLAGS), which contains $(GDALCFLAGS). Try r37944.

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


More information about the grass-dev mailing list