<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt;color:#000000;"><div>Hello,<br><br><span>A quick question about compiling GRASS add-ons which I have been having some trouble with despite hours pouring over the instructions!<br><br>I am running 6.4 on Ubuntu Hardy and the package I need is i.vi for vegetation indices <a rel="nofollow" target="_blank" href="https://svn.osgeo.org/grass/grass/trunk/imagery/i.vi/">https://svn.osgeo.org/grass/grass/trunk/imagery/i.vi/</a>. (I notice that there is also a version of this under the gipe repository here: <a rel="nofollow" target="_blank" href="https://svn.osgeo.org/grass/grass-addons/gipe/">https://svn.osgeo.org/grass/grass-addons/gipe/</a> but am not sure if this is the same as it mentions no speed ups (?) on the wiki page <a rel="nofollow" target="_blank"
 href="http://grass.osgeo.org/wiki/GRASS_AddOns#GIPE">http://grass.osgeo.org/wiki/GRASS_AddOns#GIPE</a>)</span><br><br><span>I have read the instructions at <a rel="nofollow" target="_blank" href="http://grass.osgeo.org/wiki/Compile_and_Install#Addons">http://grass.osgeo.org/wiki/Compile_and_Install#Addons</a> but being a bit of a noob I don't really understand what I need to do to compile the add-on.</span><br><br>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).<br><br>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!<br><br>Thanks<br>Rebecca<br><br>rebecca@horizon:~/src/grass$ ls<br>arvi.c&nbsp; evi.c&nbsp;&nbsp; gemi.c&nbsp; ipvi.c&nbsp;&nbsp;&nbsp;&nbsp; main.c&nbsp;&nbsp;&nbsp; msavi2.c&nbsp; ndvi.c&nbsp; savi.c&nbsp; vari.c<br>dvi.c&nbsp;&nbsp; gari.c&nbsp; gvi.c&nbsp;&nbsp; i.vi.html&nbsp; Makefile&nbsp; msavi.c&nbsp;&nbsp; pvi.c&nbsp;&nbsp; sr.c&nbsp;&nbsp;&nbsp; wdvi.c<br>rebecca@horizon:~/src/grass$ make MODULE_TOPDIR=/path/to/grass64/<br>Makefile:8: /path/to/grass64//include/Make/Module.make: No such file or
 directory<br>make: *** No rule to make target `/path/to/grass64//include/Make/Module.make'.&nbsp; Stop.<br>rebecca@horizon:~/src/grass$ make MODULE_TOPDIR=/path/to/grass64/<br>Makefile:8: /path/to/grass64//include/Make/Module.make: No such file or directory<br>make: *** No rule to make target `/path/to/grass64//include/Make/Module.make'.&nbsp; Stop.<br>rebecca@horizon:~/src/grass$ make Makefile=/usr/bin/grass64/<br>Makefile:8: ../../include/Make/Module.make: No such file or directory<br>make: *** No rule to make target `../../include/Make/Module.make'.&nbsp; Stop.<br>rebecca@horizon:~/src/grass$ sudo make Makefile=/usr/bin/grass64/<br>[sudo] password for rebecca: <br>Makefile:8: ../../include/Make/Module.make: No such file or directory<br>make: *** No rule to make target `../../include/Make/Module.make'.&nbsp; Stop.<br>rebecca@horizon:~/src/grass$ alias gmake64='make Makefile=/usr/bin/grass64/' <br>rebecca@horizon:~/src/grass$ make
 Makefile=/usr/bin/grass64/ install<br>Makefile:8: ../../include/Make/Module.make: No such file or directory<br>make: *** No rule to make target `../../include/Make/Module.make'.&nbsp; Stop.<br></div>
</div><br>



      </body></html>