[GRASS-user] error compiling grass65svn and addons for grass64

Maris Nartiss maris.gis at gmail.com
Wed Oct 20 11:45:43 EDT 2010


Hello,
if SUSE provides separate -dev packages, install grass-dev package.
Then You have to run Your make commands with
MODULE_TOPDIR=/path/to/grass.

See this issue for details: http://trac.osgeo.org/grass/ticket/620

Still error You had when compiling 6.5 from source must be a different
one, as provided error message makes sense only to addons and not
compilation of whole GRASS.

Maris.


2010/10/20, Laura Poggio <laura.poggio at gmail.com>:
> Yes I have gcc, g++, make.
> The full error message for one extension is pasted below (for one extension
> as example).
>
> Thank you very much
>
> Laura
>
> ===================================================
> Checked out revision 43978.
> Compiling <r.stream.basins>...
> In file included from catchment.c:1:
> global.h:5:23: error: grass/gis.h: No such file or directory
> global.h:6:24: error: grass/Vect.h: No such file or
> directory
> global.h:7:27: error: grass/glocale.h: No such file or
> directory
> In file included from catchment.c:1:
> global.h:64: error: expected ‘=’, ‘,’, ‘;’,
> ‘asm’ or ‘__attribute__’ before ‘*’ token
> catchment.c: In function ‘find_outlets’:
> catchment.c:29: warning: cast to pointer from integer of
> different size
> catchment.c:36: error: ‘streams’ undeclared (first use
> in this function)
> catchment.c:36: error: (Each undeclared identifier is
> reported only once
> catchment.c:36: error: for each function it appears in.)
> catchment.c:45: warning: cast to pointer from integer of
> different size
> catchment.c:48: error: ‘dirs’ undeclared (first use in
> this function)
> catchment.c: In function ‘reset_catchments’:
> catchment.c:115: error: ‘streams’ undeclared (first use
> in this function)
> catchment.c: In function ‘fill_catchments’:
> catchment.c:147: error: ‘streams’ undeclared (first use
> in this function)
> catchment.c:159: error: ‘dirs’ undeclared (first use in
> this function)
> make: *** [OBJ.x86_64-unknown-linux-gnu/catchment.o] Error 1
> ERROR: Compilation failed, sorry. Please check above error messages.
> test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p
> OBJ.x86_64-unknown-linux-gnu
> gcc
> -I/usr/src/packages/BUILD/grass-6.4.0/dist.x86_64-unknown-linux-gnu/include
> -O2    -I/usr/include/gdal/     -DPACKAGE=\""grassmods"\"
> -I/usr/src/packages/BUILD/grass-6.4.0/dist.x86_64-unknown-linux-gnu/include
> -o OBJ.x86_64-unknown-linux-gnu/catchment.o -c catchment.c
> (Wed Oct 20 11:56:21 2010) Command finished (6
> sec)
>
>
> On 20 October 2010 14:38, <razmjooeis at faunalia.co.uk> wrote:
>
>> Have you got the following packges installed?
>> gcc
>> g++
>> make
>>
>>
>> Cheers
>> Sab
>>
>> > Hello,
>> > You have to provide whole error message. Without exact error text,
>> > it's impossible to tell what kind of problem You have.
>> >
>> > WBR,
>> > Maris.
>> >
>> >
>> > 2010/10/20, Laura Poggio <laura.poggio at gmail.com>:
>> >> Dear all,
>> >> I installed grass6.4 on a machine with Suse11.2 64 bit from the
>> >> official
>> >> repository. Then I tried to install  some addons with g.extension and
>> >> using
>> >> the usual configure/make/make install.
>> >> In both cases I get the following error:
>> >>
>> >> make: *** [OBJ.x86_64-unknown-linux-gnu/[...]] Error 1
>> >> ERROR: Compilation failed, sorry. Please check above error messages.
>> >>
>> >> I also tried to compile grass65 from svn and I am getting the same
>> >> error.
>> >>
>> >> Please let me know and I can provide more details. Sorry but I do not
>> >> know
>> >> what would be useful for better understanding the problem.
>> >>
>> >>
>> >> Thank you very much in advance
>> >>
>> >> Laura
>> >>
>> > _______________________________________________
>> > 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