[GRASS-user] i.landsat.acca addon installing

Patrick Giraudoux patrick.giraudoux at univ-fcomte.fr
Sun Apr 12 01:28:12 EDT 2009


Yahoooooooo ! Works perfectly !!!

Furthermore I have understood lots of things during the process about 
GRASS architecture and functionning (better late than never ;-) ).

May I suggest to insert a line describing this last "copy"  step in the 
Readme at http://svn.osgeo.org/grass/grass-addons/README

* 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

Thanks a lot for all of this and your patience,

All the best,

Patrick Giraudoux




Markus Neteler a écrit :
> 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 <patrick.giraudoux at univ-fcomte.fr>:
>   
>> 2009/4/11 Patrick Giraudoux <patrick.giraudoux at univ-fcomte.fr>:
>>     
> ...
>   
>> 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 at 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 at pgiraudo-laptop:~/GrassAddon$
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>     
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090412/303261f2/attachment-0001.html


More information about the grass-user mailing list