[GRASS-user] Can't install i.pr

Glynn Clements glynn at gclements.plus.com
Thu Mar 25 17:58:56 EDT 2010

joel dinis wrote:

> I'm new with GRASS.
> At this point, I need to install the
> i.pr add-on, but I've met some
> dificulties:
> I download the package via svn,
> and that went just fine. But when
> I do
>    make MODULE_TOPDIR=/usr/lib/grass64
> I get this a huge stream of errors and
> warnings, e.g.
> ...

> main.c:310: warning: implicit declaration of function �G_define_flag�

I suspect that the stream of errors starts with something like:

	foo.c:1:23: error: grass/gis.h: No such file or directory

When faced with a large number of errors, always look at the first
ones, as they usually indicate the actual problem, while later ones
are merely symptoms of the problem.

Also, always redirect "make" output to a file, e.g.:

	make &> build.log
	make 2>&1 | tee build.log

> Can anyone tell me why this is so, and how can
> I solve this?

It's probably because include/Make/Platform.make has GRASS_HOME (etc)
pointing to the directory where GRASS was built.

If you want to compile add-ons against an installed version of GRASS,
you'll need to override more than just MODULE_TOPDIR. AFAICT, you may
also need to override ARCH_DISTDIR and ERRORLOG and possibly

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-user mailing list