[GRASS5] compile problem...

Yann st027364 at ait.ac.th
Wed May 28 06:07:03 EDT 2003


How PQINCPATH is defined in grass51/include/Make/Platform.make?
#PostgreSQL:
PQINCPATH           =  -I/usr/local/pgsql/include
PQLIBPATH           =
PQLIB               =  -lpq

GDAL/OGR version
GDAL-cvs-030410

I just rebuild GDAL from same source and rebuilt Grass51, it compiled
OK.

I am not sure what happened...

On Wed, 2003-05-28 at 15:00, Radim Blazek wrote:
> 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