Hi there,

Alright, I think I figured out the problem: I've got a 32-bit system and not
a 64-bit one. My mistake.

Now I'm back to the old problem, though. I really need r.area because I'm
working with python and don't want to pipe awk commands through r.stats in
order to find out the area of my homogeneous areas and then have to
eliminate them with r.reclass. When I try to install r.area with g.extension
(put GRASS 6.4 back on my machine) I get the following problem in GRASS:

g.extension extension=r.area
svnurl=https://svn.osgeo.org/grass/grass-addons/ prefix=${GISBASE}
Fetching <r.area> from GRASS-Addons SVN (be patient)...
A    r.area/main.c
A    r.area/description.html
A    r.area/Makefile
Checked out revision 43042.
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/bin.i686-pc-linux-gnu
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include/grass
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/lib
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/bin
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/etc
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/driver
Compiling r.area...
main.c:19:23: fatal error: grass/gis.h: No such file or
directory
compilation terminated.
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/driver/db
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/fonts
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

If I try to compile it in a folder after changing the makefile's
MODULE_TOPDIR to point to /opt/grass/ I get the following error:
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
main.c:19:23: fatal error: grass/gis.h: No such file or directory
compilation terminated.
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1

Does anybody know of a solution or any way to come further?
Thanks,
Daniel
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/GRASS-compiled-from-source-child-exception-tp5412414p5412721.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to