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

Markus Neteler neteler at osgeo.org
Sat Apr 11 02:31:54 EDT 2009


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 at 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 at 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 at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>


More information about the grass-user mailing list