<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yahoooooooo ! Works perfectly !!! <br>
<br>
Furthermore I have understood lots of things during the process about
GRASS architecture and functionning (better late than never <span
class="moz-smiley-s3"><span> ;-) </span></span>). <br>
<br>
May I suggest to insert a line describing this last "copy" step in the
Readme at <a class="moz-txt-link-freetext" href="http://svn.osgeo.org/grass/grass-addons/README">http://svn.osgeo.org/grass/grass-addons/README</a><br>
<br>
<pre>* C code/Scripts, with GRASS binaries on your computer:
compile GRASS Addons modules into your GRASS code by setting
MODULE_TOPDIR to where to the GRASS binaries are located:
make MODULE_TOPDIR=/usr/lib/grass640/
then copy the module created in XXXX to YYYY
</pre>
Thanks a lot for all of this and your patience,<br>
<br>
All the best,<br>
<br>
Patrick Giraudoux<br>
<br>
<br>
<br>
<br>
Markus Neteler a écrit :
<blockquote
cite="mid:86782b610904111140v56ef7092s398f9e9dcbfffce6@mail.gmail.com"
type="cite">
<pre wrap="">Indeed, you have the binary:
/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/bin/i.landsat.acca
for now, just copy it into
/usr/local/grass-6.4.0RC3/bin/
and it should work.
I have proposed a new "make install" Makefile target in the grass-dev
list which would be ideal for simplifying the installation.
Markus
2009/4/11 Patrick Giraudoux <a class="moz-txt-link-rfc2396E" href="mailto:patrick.giraudoux@univ-fcomte.fr"><patrick.giraudoux@univ-fcomte.fr></a>:
</pre>
<blockquote type="cite">
<pre wrap="">2009/4/11 Patrick Giraudoux <a class="moz-txt-link-rfc2396E" href="mailto:patrick.giraudoux@univ-fcomte.fr"><patrick.giraudoux@univ-fcomte.fr></a>:
</pre>
</blockquote>
<pre wrap=""><!---->...
</pre>
<blockquote type="cite">
<pre wrap="">Great. Really sorry to disturb you and the list with troubles obviously
coming from my incomplete knowledge about Ubuntu basics !!!
We have got a step further indeed. The directories grass and Make are in
/usr/local/grass-6.4.0RC3/include/ and nothing corresponding is in
/usr/local/grass-6.4.0RC3/lib/
With
make MODULE_TOPDIR=/usr/local/grass-6.4.0RC3/
it does much more than before, but still incomplete (see messages below).
As a result the command i.landsat.acca is still not recognized within
grass64 (aaaargh):
GRASS 6.4.0RC3 (FrancheComteLIIe_MF):~ > i.landsat.acca
bash: i.landsat.acca : commande introuvable
### command and result of make MODULE_TOPDIR=/usr/local/grass-6.4.0RC3/
pgiraudo@pgiraudo-laptop:~/GrassAddon$ make
MODULE_TOPDIR=/usr/local/grass-6.4.0RC3/
test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
gcc -I/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/include
-g -Wall -DPACKAGE=\""grassmods"\"
-I/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/algorithm.o -c algorithm.c
algorithm.c: Dans la fonction «acca_second» :
algorithm.c:404: attention : parenthèses suggérées autour de && à
l'intérieur de ||
algorithm.c:422: attention : parenthèses suggérées autour de && à
l'intérieur de ||
algorithm.c:353: attention : unused variable «i»
gcc -I/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/include
-g -Wall -DPACKAGE=\""grassmods"\"
-I/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/main.o -c main.c
main.c: Dans la fonction «main» :
main.c:98: attention : unused variable «p»
gcc -I/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/include
-g -Wall -DPACKAGE=\""grassmods"\"
-I/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/tools.o -c tools.c
tools.c: Dans la fonction «mean» :
tools.c:43: attention : unused variable «value»
gcc -L/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/lib
-o
/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/bin/i.landsat.acca
OBJ.i686-pc-linux-gnu/algorithm.o OBJ.i686-pc-linux-gnu/main.o
OBJ.i686-pc-linux-gnu/tools.o -lgrass_gis -lgrass_datetime -lz -lm -lz
make htmlcmd
make[1]: entrant dans le répertoire « /home/pgiraudo/GrassAddon »
make
/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/docs/html/i.landsat.acca.html
HTMLSRC=/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/bin/i.landsat.acca
make[2]: entrant dans le répertoire « /home/pgiraudo/GrassAddon »
if [
"/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/bin/i.landsat.acca"
!= "" ] ; then
GISRC=/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/demolocation/.grassrc64
GISBASE=/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu
PATH="/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/bin:$PATH"
LD_LIBRARY_PATH="/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/bin:/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/lib:"
LC_ALL=C
/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/bin/i.landsat.acca
--html-description < /dev/null | grep -v '</body>\|</html>' >
i.landsat.acca.tmp.html ; true ; fi
/usr/local/grass-6.4.0RC3//tools/mkhtml.sh i.landsat.acca ; mkdir -p
/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/docs/html ;
/usr/bin/install -c -m 644 i.landsat.acca.tmp.html
/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/docs/html/i.landsat.acca.html
; for file in *.png *.jpg ; do head -n 1 $file | grep '^#!' > /dev/null ;
if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file
/home/pgiraudo/grass643/grass-6.4.0RC3/dist.i686-pc-linux-gnu/docs/html ; fi
done 2> /dev/null ; true
/bin/sh: /usr/local/grass-6.4.0RC3//tools/mkhtml.sh: not found
make[2]: quittant le répertoire « /home/pgiraudo/GrassAddon »
make[1]: quittant le répertoire « /home/pgiraudo/GrassAddon »
pgiraudo@pgiraudo-laptop:~/GrassAddon$
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>