After I install laters Svn6.4.0 version, r.example and v.example (just for test) I decided to compile i.pr (an add-on for GRASS available at grass website).
Unfortunely I got a few errors, that I thought were minor but, after all, i.pr is not working…
And those are:
/usr/local/grass-6.4.0svn/include/grass/vect/dig_structs.h:179: error: expected specifier-qualifier-list before
/usr/local/grass-6.4.0svn/include/grass/vect/dig_structs.h:22:21: error: ogr_api.h: No such file or directory
Does anyone knows what might be the problem? or maybe what configuration parameter am I missing?
On Thu, Jan 28, 2010 at 12:36 PM, Luisa Peña <luisapena1979@gmail.com> wrote:
Greetings all
After I install laters Svn6.4.0 version, r.example and v.example (just for
test) I decided to compile i.pr (an add-on for GRASS available at grass
website).
Unfortunely I got a few errors, that I thought were minor but, after all,
i.pr is not working...
And those are:
(2 times)
sh: Can't open /usr/local/grass-6.4.0svn/tools/g.html2man/g.html2man
make[3]: *** [/usr/local/grass-6.4.0svn/man/man1/i.pr.model.1] Error 2
(2 times)
ERROR: G_getenv(): Variable LOCATION_NAME not set
and once:
/usr/local/grass-6.4.0svn/include/grass/vect/dig_structs.h:179: error:
expected specifier-qualifier-list before
/usr/local/grass-6.4.0svn/include/grass/vect/dig_structs.h:22:21: error:
ogr_api.h: No such file or directory
Does anyone knows what might be the problem? or maybe what configuration
parameter am I missing?
Hi Luisa,
i.pr was written by my former colleague for an older version of GRASS
(6.1 if I recall correctly). Some code update will be needed and appreciated.
Currently the module set lacks a maintainer but it is outstanding in
functionality.
That is weird because in December2009 GRASS mailing list Archive are a few messages, from Glynn Clements, explaining/debugging i.pr compilation in WinGRASS 6.4 and it worked. Back at that that time the problems were a library and drand48 (that doesn’t exist in Windows). So the problem might be other…
Several o i.pr.X are compiled but, as far as I can see, only i.pr is not there.
The following errors seems to have something to do with vector support:
/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
Any idea? (This classification module one of the main modules for me to choose GRASS and I saw it working on WinGRASS and it’s pretty COOL).
Greetings all
After I install laters Svn6.4.0 version, r.example and v.example (just for
test) I decided to compile i.pr (an add-on for GRASS available at grass
website).
Unfortunely I got a few errors, that I thought were minor but, after all, i.pr is not working…
And those are:
(2 times)
sh: Can’t open /usr/local/grass-6.4.0svn/tools/g.html2man/g.html2man
make[3]: *** [/usr/local/grass-6.4.0svn/man/man1/i.pr.model.1] Error 2
(2 times)
ERROR: G_getenv(): Variable LOCATION_NAME not set
and once:
/usr/local/grass-6.4.0svn/include/grass/vect/dig_structs.h:179: error:
expected specifier-qualifier-list before
/usr/local/grass-6.4.0svn/include/grass/vect/dig_structs.h:22:21: error:
ogr_api.h: No such file or directory
Does anyone knows what might be the problem? or maybe what configuration
parameter am I missing?
Hi Luisa,
i.pr was written by my former colleague for an older version of GRASS
(6.1 if I recall correctly). Some code update will be needed and appreciated.
Currently the module set lacks a maintainer but it is outstanding in
functionality.
That is weird because in December2009 GRASS mailing list Archive are a few
messages, from Glynn Clements, explaining/debugging i.pr compilation in
WinGRASS 6.4 and it worked. Back at that that time the problems were a
library and drand48 (that doesn't exist in Windows). So the problem might be
other...
Several o i.pr.X are compiled but, as far as I can see, only i.pr is not
there.
The following errors seems to have something to do with vector support:
/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
Where are the GDAL/OGR headers installed? "gdal-config --cflags"
should provide a clue.
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.
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.
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.