Hello,

A quick question about compiling GRASS add-ons which I have been having some 
trouble with despite hours pouring over the instructions!

I am running 6.4 on Ubuntu Hardy and the package I need is i.vi for vegetation 
indices https://svn.osgeo.org/grass/grass/trunk/imagery/i.vi/. (I notice that 
there is also a version of this under the gipe repository here: 
https://svn.osgeo.org/grass/grass-addons/gipe/ but am not sure if this is the 
same as it mentions no speed ups (?) on the wiki page 
http://grass.osgeo.org/wiki/GRASS_AddOns#GIPE)

I have read the instructions at 
http://grass.osgeo.org/wiki/Compile_and_Install#Addons but being a bit of a 
noob I don't really understand what I need to do to compile the add-on.

I
have tried saving all the files in the i.vi directory to my
usr/src/grass source directory then following the Wiki instructions
compiling the file from there, but this just gave me an error message
(I have included the terminal output below this message so you can see what I 
did).

I'm probably just missing something obvious but I'm afraid don't have enough
understanding to make it work - any help would be much appreciated!

Thanks
Rebecca

rebe...@horizon:~/src/grass$ ls
arvi.c  evi.c   gemi.c  ipvi.c     main.c    msavi2.c  ndvi.c  savi.c  vari.c
dvi.c   gari.c  gvi.c   i.vi.html  Makefile  msavi.c   pvi.c   sr.c    wdvi.c
rebe...@horizon:~/src/grass$ make MODULE_TOPDIR=/path/to/grass64/
Makefile:8: /path/to/grass64//include/Make/Module.make: No such file or 
directory
make: *** No rule to make target `/path/to/grass64//include/Make/Module.make'.  
Stop.
rebe...@horizon:~/src/grass$ make MODULE_TOPDIR=/path/to/grass64/
Makefile:8: /path/to/grass64//include/Make/Module.make: No such file or 
directory
make: *** No rule to make target `/path/to/grass64//include/Make/Module.make'.  
Stop.
rebe...@horizon:~/src/grass$ make Makefile=/usr/bin/grass64/
Makefile:8: ../../include/Make/Module.make: No such file or directory
make: *** No rule to make target `../../include/Make/Module.make'.  Stop.
rebe...@horizon:~/src/grass$ sudo make Makefile=/usr/bin/grass64/
[sudo] password for rebecca: 
Makefile:8: ../../include/Make/Module.make: No such file or directory
make: *** No rule to make target `../../include/Make/Module.make'.  Stop.
rebe...@horizon:~/src/grass$ alias gmake64='make Makefile=/usr/bin/grass64/' 
rebe...@horizon:~/src/grass$ make Makefile=/usr/bin/grass64/ install
Makefile:8: ../../include/Make/Module.make: No such file or directory
make: *** No rule to make target `../../include/Make/Module.make'.  Stop.



      
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to