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

Sorry to insist resending this message, but I would really appreciate if someone can give me a clue to get out of this and be capable to add i.landsta.acca to GRASS

Thanks in advance,

Patrick

Dear listers,

I would like to install the add-on i.landsat.acca, and for that have carefully read the instructions at http://trac.osgeo.org/grass/browser/grass-addons/README, which states:

  • 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/

I am working under Ubuntu hardy, with a precompiled version of GRASS 6.3.0. I have put those files in a folder:

algorithm.c description.html local_proto.h main.c Makefile tools.c

and from this folder:

pgiraudo@pgiraudo-laptop:~/GrassAddon$ sudo make MODULE_TOPDIR=/usr/lib/grass/

then I get a long list of errors (see below) and does not know at all from where to start to fix it…

Any idea about what to do ?

Patrick

pgiraudo@pgiraudo-laptop:~/GrassAddon$ sudo make MODULE_TOPDIR=/usr/lib/grass/
[sudo] password for pgiraudo:
gcc -I/home/jachym/src/grass/grass-6.3.0/dist.i486-pc-linux-gnu/include -Wall -g -D_FILE_OFFSET_BITS=64 -O2 -DPACKAGE="“grassmods”" -I/home/jachym/src/grass/grass-6.3.0/dist.i486-pc-linux-gnu/include -o OBJ.i486-pc-linux-gnu/algorithm.o -c algorithm.c
algorithm.c:6:23: erreur: grass/gis.h : Aucun fichier ou dossier de ce type
algorithm.c:7:27: erreur: grass/glocale.h : Aucun fichier ou dossier de ce type
algorithm.c: Dans la fonction «acca_first» :
algorithm.c:220: attention : déclaration implicite de la fonction « «G_allocate_raster_buf» »
algorithm.c:220: erreur: «CELL_TYPE» undeclared (first use in this function)
algorithm.c:220: erreur: (Each undeclared identifier is reported only once
algorithm.c:220: erreur: for each function it appears in.)
algorithm.c:220: attention : assignment makes pointer from integer without a cast
algorithm.c:221: attention : déclaration implicite de la fonction « «G_open_raster_new» »
algorithm.c:222: attention : déclaration implicite de la fonction « «G_fatal_error» »
algorithm.c:222: attention : déclaration implicite de la fonction « «_» »
algorithm.c:232: attention : déclaration implicite de la fonction « «G_window_rows» »
algorithm.c:233: attention : déclaration implicite de la fonction « «G_window_cols» »
algorithm.c:239: attention : déclaration implicite de la fonction « «G_percent» »
algorithm.c:243: attention : déclaration implicite de la fonction « «G_get_d_raster_row» »
algorithm.c:252: attention : déclaration implicite de la fonction « «G_is_d_null_value» »
algorithm.c:252: erreur: «DCELL» undeclared (first use in this function)
algorithm.c:252: erreur: expected expression before «)» token
algorithm.c:257: erreur: expected expression before «)» token
algorithm.c:329: attention : déclaration implicite de la fonction « «G_set_c_null_value» »
algorithm.c:329: erreur: «CELL» undeclared (first use in this function)
algorithm.c:329: erreur: expected expression before «)» token
algorithm.c:333: erreur: expected expression before «)» token
algorithm.c:336: attention : déclaration implicite de la fonction « «G_put_raster_row» »
algorithm.c:343: attention : déclaration implicite de la fonction « «G_free» »
algorithm.c:344: attention : déclaration implicite de la fonction « «G_close_cell» »
algorithm.c: Dans la fonction «acca_second» :
algorithm.c:361: attention : déclaration implicite de la fonction « «G_find_cell2» »
algorithm.c:361: attention : assignment makes pointer from integer without a cast
algorithm.c:364: erreur: «CELL_TYPE» undeclared (first use in this function)
algorithm.c:364: attention : assignment makes pointer from integer without a cast
algorithm.c:365: attention : déclaration implicite de la fonction « «G_open_cell_old» »
algorithm.c:370: attention : assignment makes pointer from integer without a cast
algorithm.c:390: attention : déclaration implicite de la fonction « «G_get_c_raster_row» »
algorithm.c:395: attention : déclaration implicite de la fonction « «G_is_c_null_value» »
algorithm.c:395: erreur: «CELL» undeclared (first use in this function)
algorithm.c:395: erreur: expected expression before «)» token
algorithm.c:397: erreur: expected expression before «)» token
algorithm.c:401: erreur: expected expression before «)» token
algorithm.c:404: attention : parenthèses suggérées autour de && à l’intérieur de ||
algorithm.c:406: erreur: «DCELL» undeclared (first use in this function)
algorithm.c:406: erreur: expected expression before «)» token
algorithm.c:409: erreur: expected expression before «)» token
algorithm.c:414: erreur: expected expression before «)» token
algorithm.c:416: erreur: expected expression before «)» token
algorithm.c:422: attention : parenthèses suggérées autour de && à l’intérieur de ||
algorithm.c:424: erreur: expected expression before «)» token
algorithm.c:427: erreur: expected expression before «)» token
algorithm.c:444: attention : déclaration implicite de la fonction « «G_remove» »
algorithm.c:450: attention : déclaration implicite de la fonction « «G_rename» »
algorithm.c:353: attention : unused variable «i»
make: *** [OBJ.i486-pc-linux-gnu/algorithm.o] Erreur 1

Patrick,

does /usr/lib/grass/

contain an include/ directory with e.g. the file
grass/gis.h

? If not, perhaps a grass63-devel package is needed or the
includes are not packaged at all.

In any case, please consider to use 6.4.0RC3 instead as it
contains many fixes.

Markus

2009/4/11 Patrick Giraudoux <patrick.giraudoux@univ-fcomte.fr>:

Sorry to insist resending this message, but I would really appreciate if
someone can give me a clue to get out of this and be capable to add
i.landsta.acca to GRASS

Thanks in advance,

Patrick

Dear listers,

I would like to install the add-on i.landsat.acca, and for that have
carefully read the instructions at
http://trac.osgeo.org/grass/browser/grass-addons/README, which states:
* 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/

I am working under Ubuntu hardy, with a precompiled version of GRASS 6.3.0.
I have put those files in a folder:

algorithm.c description.html local_proto.h main.c Makefile tools.c

and from this folder:

pgiraudo@pgiraudo-laptop:~/GrassAddon$ sudo make
MODULE_TOPDIR=/usr/lib/grass/

then I get a long list of errors (see below) and does not know at all from
where to start to fix it...

Any idea about what to do ?

Patrick

pgiraudo@pgiraudo-laptop:~/GrassAddon$ sudo make
MODULE_TOPDIR=/usr/lib/grass/
[sudo] password for pgiraudo:
gcc -I/home/jachym/src/grass/grass-6.3.0/dist.i486-pc-linux-gnu/include
-Wall -g -D_FILE_OFFSET_BITS=64 -O2 -DPACKAGE=\""grassmods"\"
-I/home/jachym/src/grass/grass-6.3.0/dist.i486-pc-linux-gnu/include -o
OBJ.i486-pc-linux-gnu/algorithm.o -c algorithm.c
algorithm.c:6:23: erreur: grass/gis.h : Aucun fichier ou dossier de ce type
algorithm.c:7:27: erreur: grass/glocale.h : Aucun fichier ou dossier de ce
type
algorithm.c: Dans la fonction «acca_first» :
algorithm.c:220: attention : déclaration implicite de la fonction «
«G_allocate_raster_buf» »
algorithm.c:220: erreur: «CELL_TYPE» undeclared (first use in this function)
algorithm.c:220: erreur: (Each undeclared identifier is reported only once
algorithm.c:220: erreur: for each function it appears in.)
algorithm.c:220: attention : assignment makes pointer from integer without a
cast
algorithm.c:221: attention : déclaration implicite de la fonction «
«G_open_raster_new» »
algorithm.c:222: attention : déclaration implicite de la fonction «
«G_fatal_error» »
algorithm.c:222: attention : déclaration implicite de la fonction « «_» »
algorithm.c:232: attention : déclaration implicite de la fonction «
«G_window_rows» »
algorithm.c:233: attention : déclaration implicite de la fonction «
«G_window_cols» »
algorithm.c:239: attention : déclaration implicite de la fonction «
«G_percent» »
algorithm.c:243: attention : déclaration implicite de la fonction «
«G_get_d_raster_row» »
algorithm.c:252: attention : déclaration implicite de la fonction «
«G_is_d_null_value» »
algorithm.c:252: erreur: «DCELL» undeclared (first use in this function)
algorithm.c:252: erreur: expected expression before «)» token
algorithm.c:257: erreur: expected expression before «)» token
algorithm.c:329: attention : déclaration implicite de la fonction «
«G_set_c_null_value» »
algorithm.c:329: erreur: «CELL» undeclared (first use in this function)
algorithm.c:329: erreur: expected expression before «)» token
algorithm.c:333: erreur: expected expression before «)» token
algorithm.c:336: attention : déclaration implicite de la fonction «
«G_put_raster_row» »
algorithm.c:343: attention : déclaration implicite de la fonction « «G_free»
»
algorithm.c:344: attention : déclaration implicite de la fonction «
«G_close_cell» »
algorithm.c: Dans la fonction «acca_second» :
algorithm.c:361: attention : déclaration implicite de la fonction «
«G_find_cell2» »
algorithm.c:361: attention : assignment makes pointer from integer without a
cast
algorithm.c:364: erreur: «CELL_TYPE» undeclared (first use in this function)
algorithm.c:364: attention : assignment makes pointer from integer without a
cast
algorithm.c:365: attention : déclaration implicite de la fonction «
«G_open_cell_old» »
algorithm.c:370: attention : assignment makes pointer from integer without a
cast
algorithm.c:390: attention : déclaration implicite de la fonction «
«G_get_c_raster_row» »
algorithm.c:395: attention : déclaration implicite de la fonction «
«G_is_c_null_value» »
algorithm.c:395: erreur: «CELL» undeclared (first use in this function)
algorithm.c:395: erreur: expected expression before «)» token
algorithm.c:397: erreur: expected expression before «)» token
algorithm.c:401: erreur: expected expression before «)» token
algorithm.c:404: attention : parenthèses suggérées autour de && à
l'intérieur de ||
algorithm.c:406: erreur: «DCELL» undeclared (first use in this function)
algorithm.c:406: erreur: expected expression before «)» token
algorithm.c:409: erreur: expected expression before «)» token
algorithm.c:414: erreur: expected expression before «)» token
algorithm.c:416: erreur: expected expression before «)» token
algorithm.c:422: attention : parenthèses suggérées autour de && à
l'intérieur de ||
algorithm.c:424: erreur: expected expression before «)» token
algorithm.c:427: erreur: expected expression before «)» token
algorithm.c:444: attention : déclaration implicite de la fonction «
«G_remove» »
algorithm.c:450: attention : déclaration implicite de la fonction «
«G_rename» »
algorithm.c:353: attention : unused variable «i»
make: *** [OBJ.i486-pc-linux-gnu/algorithm.o] Erreur 1

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

Markus Neteler a écrit :

Patrick,

does /usr/lib/grass/

contain an include/ directory with e.g. the file
grass/gis.h

? If not, perhaps a grass63-devel package is needed or the
includes are not packaged at all.

In any case, please consider to use 6.4.0RC3 instead as it
contains many fixes.

Markus

  

Actually yes, /usr/lib/grass contains a file grass/gis.h as well as many others like glocal.h, etc…

Suppose I must move and compile grass 6.4ORC3 now…

Patrick

Markus Neteler a écrit :

Patrick,

does /usr/lib/grass/

contain an include/ directory with e.g. the file
grass/gis.h

? If not, perhaps a grass63-devel package is needed or the
includes are not packaged at all.

In any case, please consider to use 6.4.0RC3 instead as it
contains many fixes.

Markus

  

Actually yes, /usr/lib/grass contains an include/ directory with grass/gis.h as well as many others like glocal.h, etc…

Suppose I must move and compile grass 6.4ORC3 now…

Patrick

Patrick,

ha - I found it :slight_smile:

2009/4/11 Patrick Giraudoux <patrick.giraudoux@univ-fcomte.fr>:
...

make MODULE_TOPDIR=/usr/lib/grass640/

I am working under Ubuntu hardy, with a precompiled version of GRASS 6.3.0.

See the difference? Obviously you need to use

make MODULE_TOPDIR=/usr/lib/grass630/

Then it may work. Essentially, define the right path :slight_smile:

Markus

Markus Neteler a écrit :

Patrick,

ha - I found it :)

2009/4/11 Patrick Giraudoux [<patrick.giraudoux@univ-fcomte.fr>](mailto:patrick.giraudoux@univ-fcomte.fr):
...
  
make MODULE_TOPDIR=/usr/lib/grass640/

I am working under Ubuntu hardy, with a precompiled version of GRASS 6.3.0.
    

See the difference? Obviously you need to use

make MODULE_TOPDIR=/usr/lib/grass630/

Then it may work. Essentially, define the right path :)

Markus

  

Unfortunalety not… I have a path which is

2009/4/11 Patrick Giraudoux <patrick.giraudoux@univ-fcomte.fr>:

2009/4/11 Patrick Giraudoux <patrick.giraudoux@univ-fcomte.fr>:

...

Then it may work. Essentially, define the right path :slight_smile:

Unfortunalety not... I have a path which is
/usr/lib/grass, with include/ and all the necessary files in it,

...

ok

But when the command is make MODULE_TOPDIR=/usr/lib/grass/ (which does
exist), it finds something somewhere but screw up when looking for
grass/gis.h or grass/glocale.h (which do exist in include/grass/)

pgiraudo@pgiraudo-laptop:~/GrassAddon$ make MODULE_TOPDIR=/usr/lib/grass/
gcc -I/home/jachym/src/grass/grass-6.3.0/dist.i486-pc-linux-gnu/include

that's no good I guess since the wrong path is hardcoded apparently.

So you need to enter
/usr/lib/grass/include/Make

and edit Platform.make and maybe other files there to reflect that stuff is in
/usr/lib/grass/ . These files are ASCII files, so easy to modify.

Markus

PS: Perhaps the 6.4.x version is packaged correctly?

I have just moved to installing grass-6.4.0RC3

1/ creating a folder grass643 in my home directory
2/ downloading and decompressing grass-6.4.0RC3.tar.gz
3/ from within ~/grass643/grass-6.4.0RC/
    ./configure (and getting things finally OK)
    make
    make install
4/ and then the nightmare: the call
     grass64
starts and works well as expected
BUT I cannot find any path on my computer leading to /usr/lib/grass64 or something else of this kind, neither a path /usr/lib/grass64/etc/Init.sh where I can parametrized some variables, etc...

locate grass64 leads nowhere (cannot find it)

In brief, I cannot find out where the operating file architecture of grass64 has been installed !!!

Any idea about what has happened?

Patrick

2009/4/11 Patrick Giraudoux <patrick.giraudoux@univ-fcomte.fr>:

I have just moved to installing grass-6.4.0RC3

1/ creating a folder grass643 in my home directory
2/ downloading and decompressing grass-6.4.0RC3.tar.gz
3/ from within ~/grass643/grass-6.4.0RC/
./configure (and getting things finally OK)
make
make install
4/ and then the nightmare: the call
grass64
starts and works well as expected

Excellent. First step taken.

BUT I cannot find any path on my computer leading to /usr/lib/grass64 or
something else of this kind, neither a path /usr/lib/grass64/etc/Init.sh
where I can parametrized some variables, etc...

If you didn't change the --prefix in configure, then it is in
/usr/local/lib/grass64

locate grass64 leads nowhere (cannot find it)

Unless the "updatedb" cronjob isn't run, locate is not yet up to date.

In brief, I cannot find out where the operating file architecture of grass64
has been installed !!!

The default is /usr/local/

Hope this helps,
Markus

Markus Neteler a écrit :

2009/4/11 Patrick Giraudoux [<patrick.giraudoux@univ-fcomte.fr>](mailto:patrick.giraudoux@univ-fcomte.fr):
  
I have just moved to installing grass-6.4.0RC3

1/ creating a folder grass643 in my home directory
2/ downloading and decompressing grass-6.4.0RC3.tar.gz
3/ from within ~/grass643/grass-6.4.0RC/
  ./configure (and getting things finally OK)
  make
  make install
4/ and then the nightmare: the call
   grass64
starts and works well as expected
    

Excellent. First step taken.

  
BUT I cannot find any path on my computer leading to /usr/lib/grass64 or
something else of this kind, neither a path /usr/lib/grass64/etc/Init.sh
where I can parametrized some variables, etc...
    

If you didn't change the --prefix in configure, then it is in
/usr/local/lib/grass64

  
locate grass64 leads nowhere (cannot find it)
    

Unless the "updatedb" cronjob isn't run, locate is not yet up to date.

  
In brief, I cannot find out where the operating file architecture of grass64
has been installed !!!
    

The default is /usr/local/

Hope this helps,
Markus

  

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 ‘|’ > 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$

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@univ-fcomte.fr>:

2009/4/11 Patrick Giraudoux <patrick.giraudoux@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@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$

Yahoooooooo ! Works perfectly !!!

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

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 :

2009/4/12 Patrick Giraudoux <patrick.giraudoux@univ-fcomte.fr>:

Yahoooooooo ! Works perfectly !!!

Excellent!

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

And never give up :slight_smile:

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

Will perhaps do that, or just submit my proposed change which will
permits to simply do

   make MODULE_TOPDIR=/usr/lib/grass640/ install

best
Markus