[GRASS5] Problem compiling Grass 5.1 (08/02/2003)

Radim Blazek blazek at itc.it
Thu Feb 13 09:32:24 EST 2003


On Thursday 13 February 2003 12:48 pm, maurosw at jumpy.it wrote:
> Hi to all,
> I have a problem trying to compile last version of Grass51
> (08/02/2003)...
> I use this configure parameters:
>
> CFLAGS="-g -Wall" ./configure
> --with-grass50=/home/rpms/GRASS/Sept2002/grass50_exp_2003_02_08
> --with-gd-includes=/home/rpms/gd-1.8.4
> --with-gd-libs=/home/rpms/gd-1.8.4
> --with-postgres-includes=/usr/local/pgsql/include/
> --with-opengl-includes=/usr/X11R6/include/
> --with-opengl-libs=/usr/X11R6/lib --with-dbm
> --with-dbm-includes=/home/rpms/gdbm-1.8.0 --with-dbm-libs=/usr/local/lib
> --prefix=/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/dist.i686-pc-linu
>x-gnu --with-gdal
>
> and there is no problem:
>
> GRASS is now configured for i686-pc-linux-gnu
>
>   Source directory: /home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08
>   Build directory: /home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08
>   Installation directory:
> /home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/dist.i686-pc-linux-gnu/gra
>ss5 C compiler: gcc -g -Wall
>   FORTRAN compiler:
>
>   NVIZ: yes
>
>   X11 support: yes
>   DBM support: yes
>   JPEG support: yes
>   TIFF support: yes
>   PNG support: yes
>   GD support: yes
>   Tcl/Tk support: yes
>   PostgreSQL support: yes
>   MySQL support: no
>   OpenGL(R) support: yes
>   ODBC support: yes
>   FFTW support: yes
>   BLAS support: no
>   LAPACK support: no
>   Motif support: no
>   FreeType support: no
>   GLw support: no
>   NLS support: no
>   Readline support: no
>
> but I have this error:
>
> gcc -g -Wall -Wall
> -I/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/include
> -I/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/dist.i686-pc-linux-gnu/i
>nclude -I/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/include
> -I/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/dist.i686-pc-linux-gnu/i
>nclude -I/usr/X11R6/include/ -I/usr/include/gr -I/usr/local/include
> -I/usr/include -I/usr/local/pgsql/include/
> -I/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/include
> -I/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/dist.i686-pc-linux-gnu/i
>nclude \
>         -o OBJ.i686-pc-linux-gnu/open_ogr.o -c open_ogr.c
> cc1: warning: changing search order for system directory
> "/usr/local/include" cc1: warning: as it has already been specified as a
> non-system directory cc1: warning: changing search order for system
> directory "/usr/include" cc1: warning: as it has already been specified as
> a non-system directory open_ogr.c: In function `V1_open_old_ogr':
> open_ogr.c:37: structure has no member named `ogr'
> open_ogr.c:37: structure has no member named `ogr'
> open_ogr.c:44: structure has no member named `ogr'
> open_ogr.c:44: structure has no member named `ogr'
> open_ogr.c: At top level:
> /home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/include/gis.h:36: warning:
> `GRASS_copyright' defined but not used
> make[3]: *** [OBJ.i686-pc-linux-gnu/open_ogr.o] Error 1
> make[3]: Leaving directory
> `/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/lib/vector/Vlib' make[2]:
> *** [subdirs] Error 1
> make[2]: Leaving directory
> `/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/lib/vector' make[1]: ***
> [subdirs] Error 1
> make[1]: Leaving directory
> `/home/rpms/GRASS/Sept2002/grass51_exp_2003_02_08/lib' make: *** [default]
> Error 1
>
>
> I think there is a problem with #define HAVE_OGR...
>
> Could someone help me?
>
> Thank you
>
> Mauro

Sorry, I forgot some #ifdef HAVE_OGR, must be in all *_ogr.c,
+ there were some bugs in read.c, rewind.c for compilation without
OGR. Everything is fixed now in CVS. If you want to compile with
OGR, try to configure with
--with-gdal=/your_path_to/gdal-config

Radim






More information about the grass-dev mailing list