[GRASS-user] Re: Installing r.area
Glynn Clements
glynn at gclements.plus.com
Wed Aug 4 09:38:53 EDT 2010
LeeDaniel wrote:
> > wrong path (.../BUILD/... is wrong and needs to be /opt/...).
> >
> > Or you do it yourself... AFAIK, it is in your case in
> > /opt/grass/include/Make/Platform.make
>
> Alright, I think I understood what to do. I edited
> /opt/grass/include/Make/Platform.make (made a backup) and changed these two
> lines from:
> # GRASS dirs
> GRASS_HOME = /usr/src/packages/BUILD/grass-6.4.0RC6
> RUN_GISBASE =
> /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu
>
> to:
> # GRASS dirs
> GRASS_HOME = /opt/grass
> RUN_GISBASE = /opt/grass/dist.i686-pc-linux-gnu
GRASS_HOME is the location of the GRASS source tree. If you don't have
the GRASS source tree, it should be unset.
Its value is used to initialise a few other variables, which need to
be changed when building without the source tree:
ARCH_DISTDIR = $(GRASS_HOME)/dist.$(ARCH)
ARCH_BINDIR = $(GRASS_HOME)/bin.$(ARCH)
ERRORLOG = $(GRASS_HOME)/error.log
If you're building against an installed version, ARCH_DISTDIR should
be set to the installation directory (e.g. /usr/local/grass-6.4.0RC6),
ARCH_BINDIR shouldn't matter, and ERRORLOG can be set to any absolute
filename.
Also, you need to override MODULE_TOPDIR on the command line, e.g.:
make MODULE_TOPDIR=/usr/local/grass-6.4.0RC6
This is used to locate the *.make files, so setting in those files
won't work.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list