[GRASS-dev] Compiling i.pr

Hamish hamish_b at yahoo.com
Fri Jan 29 01:16:24 EST 2010


> Luisa Peña wrote:
> > Several o i.pr.X are compiled but, as far as I can
> see, only i.pr is not there.

is there supposed to be a central "i.pr"? I don't see PGM=i.pr in any of
the Makefiles.

> /usr/local/grass-6.4.0svn/include/grass/vect/dig_structs.h:179:
> error:
> > expected specifier-qualifier-list before
> �OGRDataSourceH�
> /usr/local/grass-6.4.0svn/include/grass/vect/dig_structs.h:22:21:
> error:
> > ogr_api.h: No such file or directory

Glynn:
> I suspect that i.pr_*/Makefile need:
> 
>     EXTRA_CFLAGS = $(VECT_CFLAGS) -I$(PRINCLUDE)
> 
> The vector headers include the OGR headers, so anything
> which includes the vector headers needs any -I switches which are
> required to find the OGR headers.

right, I've just fixed the i.pr.sites_aggregate Makefile with the
above and now all i.pr.* modules compile for me in 6.5svn. (r40730)

there are a number of compiler warnings about *line++; "warning: value
computed is not used" which I am not sure about.



Hamish



      


More information about the grass-dev mailing list