[GRASS-user] Re: Installing r.area

LeeDaniel Lee.Daniel.1986 at gmail.com
Wed Aug 4 10:13:06 EDT 2010


Alright, I gave it another shot...


GRASS_HOME is the location of the GRASS source tree. If you don't have
> the GRASS source tree, it should be unset.
> 
Okay, I turned it off by putting "#" in front of it. Now the line looks like
this:
# GRASS dirs
# GRASS_HOME          = /usr/src/packages/BUILD/grass-6.4.0RC6


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.
Alright. I took out the variable $ARCH_DISTDIR and replaced it with
/opt/grass/. So the three lines the GRASS dirs are now:
# 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
RUN_GISRC           =
/opt/grass/demolocation/.grassrc${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}

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. 

Alright. Tried it out by navigating into the folder with r.area. Here are
the results:
Lee at pc19384:~/r.area> sudo make MODULE_TOPDIR=/opt/grass/
mkdir -p /bin.i686-pc-linux-gnu
mkdir -p /dist.i686-pc-linux-gnu/include/grass
mkdir -p /dist.i686-pc-linux-gnu/lib
mkdir -p /dist.i686-pc-linux-gnu/bin
mkdir -p /dist.i686-pc-linux-gnu/etc
mkdir -p /dist.i686-pc-linux-gnu/driver
mkdir -p /dist.i686-pc-linux-gnu/driver/db
mkdir -p /dist.i686-pc-linux-gnu/fonts
gcc -I/dist.i686-pc-linux-gnu/include  -O2       -DPACKAGE=\""grassmods"\" 
-I/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/main.o -c main.c
main.c:19:23: schwerwiegender Fehler: grass/gis.h: Datei oder Verzeichnis
nicht gefunden
Kompilierung beendet.
make: *** [OBJ.i686-pc-linux-gnu/main.o] Fehler 1

Unfortunately no improvement. Oh man...

The depressed
Daniel
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Installing-r-area-tp5340139p5372689.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list