[GRASS-user] Re: Installing r.area

Markus Neteler neteler at osgeo.org
Tue Aug 3 11:41:11 EDT 2010


On Tue, Aug 3, 2010 at 1:37 PM, LeeDaniel <Lee.Daniel.1986 at gmail.com> wrote:
>
> Alright... I tried the following:
> Lee at pc19384:~> svn checkout
> https://svn.osgeo.org/grass/grass-addons/raster/r.area/
> A    r.area/main.c
> A    r.area/description.html
> A    r.area/Makefile
> Ausgecheckt, Revision 42981.
> Lee at pc19384:~> cd r.area/
> Lee at pc19384:~/r.area> make MODULE_TOPDIR=/opt/grass/
> test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
> gcc -I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include
> -O2       -DPACKAGE=\""grassmods"\"
> -I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include -o
> OBJ.i686-pc-linux-gnu/main.o -c main.c

This will never work unless the OpenSuse packager fixes the
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

(see also the ticket 620 as mentioned previously)

Then also g.extension will work for you.

Please let us know,
Markus


More information about the grass-user mailing list