[GRASS5] Swig interface for Grass

Markus Neteler neteler at itc.it
Wed Feb 15 04:00:13 EST 2006


Jachym,

I have fixed the problem in CVS (the wrong include path was defined).

Markus

Jachym Cepicky wrote:

>hallo,
>what I have read on wikipedia (http://en.wikipedia.org/wiki/SWIG), SWIG
>is released under a BSD type license. Could that not be a problem for
>GRASS at least for distribution of both software in one package?
>
>
>I tryed to compile and use the grass.pm module, without success:
>
>./configure  --with-cxx --with-nls --with-freetype --enable-largefile --with-tcltk-includes=/usr/include/tcl8.3 --with-postgres-includes=/uusr/include/postgresql/ --with-freetype-includes=/usr/include/freetype2/ --with-fftw --with-nls --with-readline --with-sqlite
>
>cd swig/perl
>perl Makefile.PL
>
>MakeMaker (v6.17)
>Writing Makefile for R_slope_aspect::r_slope_aspect
>Writing Makefile for R_slope_aspect
>Writing Makefile for Grass
>
>make
>make[1]: Entering directory `/usr/src/gis/grass/grass6/swig/perl/R_slope_aspect'
>cd r_slope_aspect && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/usr" OPTIMIZE="-O2" PASTHRU_DEFINE="" PASTHRU_INC=""
>make[2]: Entering directory `/usr/src/gis/grass/grass6/swig/perl/R_slope_aspect/r_slope_aspect'
>cc -c  -I/usr/include -I/usr/src/gis/grass/grass6/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.8/CORE"  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall -fpic -ggdb -DPACKAGE=\""grassmods"\" r_slope_aspect.c
>r_slope_aspect.c:4:23: error: grass/gis.h: No such file or directory
>In file included from r_slope_aspect.c:5:
>local_proto.h:2: error: syntax error before 'RASTER_MAP_TYPE'
>r_slope_aspect.c:6:27: error: grass/glocale.h: No such file or directory
>r_slope_aspect.c: In function 'r_slope_aspect':
>r_slope_aspect.c:36: error: storage size of 'cats' isn't known
>r_slope_aspect.c:49: error: 'DCELL' undeclared (first use in this function)
>r_slope_aspect.c:49: error: (Each undeclared identifier is reported only once
>r_slope_aspect.c:49: error: for each function it appears in.)
>r_slope_aspect.c:49: error: 'elev_cell' undeclared (first use in this function)
>r_slope_aspect.c:49: error: 'temp' undeclared (first use in this function)
>.....
>.....
>
>I suppose, this has something to do with last changes in grass header
>files(?)
>
>jachym
>
>  
>




More information about the grass-dev mailing list