[GRASS5] compile problem...

Radim Blazek blazek at itc.it
Wed May 28 04:00:48 EDT 2003


On Wednesday 28 May 2003 05:47, Yann wrote:
> Hello Moritz,
>
> it seems there is a problem in recognizing include of pgsql during
> compile, while configure mentions that checks for postgres and
> libpq-fe.h are successful...
>
> ----------------------------------
> in dig_structs.h i changed:
> FROM:
> #ifdef HAVE_POSTGRES
> #include "libpq-fe.h"
> #endif
>
> TO:
> #ifdef HAVE_POSTGRES
> #include "/usr/local/pgsql/include/libpq-fe.h"
> #endif
>
> it worked...

How PQINCPATH is defined in grass51/include/Make/Platform.make?

> ----------------------------------
> Now it bugs in main.c of v.in.ogr where wkbLinearRing is used
> undeclared:
>
> gcc -g -O2  -Wall  -I/home/yann/grass51/include
> -I/home/yann/grass51/dist.i686-pc-linux-gnu/include  -I/usr/include
> -DUSE_GDAL_H  -I/usr/local/pgsql/include -I/home/yann/grass51/include
> -I/home/yann/grass51/dist.i686-pc-linux-gnu/include \
>         -o OBJ.i686-pc-linux-gnu/main.o -c main.c
> main.c: In function `main':
> main.c:142: `wkbLinearRing' undeclared (first use in this function)

Is it possible that you have old version of GDAL/OGR?
In gdal/ogr/ogr_core.h should be  wkbLinearRing = 101
but it seems to be a new feature:
 * Revision 1.16  2003/02/19 02:57:49  warmerda
 * added wkbLinearRing support

Radim




More information about the grass-dev mailing list