logo       

[GRASSLIST:4044] Re: More OGR lib compile fun: msg#00251

gis.grass.user

Subject: [GRASSLIST:4044] Re: More OGR lib compile fun

Radim,

FYI I edited ~/grass-5.7.0/include/Make/Platform.make to remove
the offending '-ldl' and now compilation dies here:

...
gcc -rdynamic -L/home/bob/grass-5.7.0/dist.i686-pc-linux-gnu/lib
-L/usr/local/pgsql/lib -o
/home/bob/grass-5.7.0/dist.i686-pc-linux-gnu/etc/bin/cmd/d.path
OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/select.o
-lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-lgrass_dgl -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis
-lgrass_datetime -lz -lm -lz
/home/bob/grass-5.7.0/dist.i686-pc-linux-gnu/lib/libgrass_vect.so:
undefined reference to `V2_close_ogr'
/home/bob/grass-5.7.0/dist.i686-pc-linux-gnu/lib/libgrass_vect.so:
undefined reference to `V2_open_old_ogr'
...

A bit of looking around and messing about did not solve anything, so
I remain stumped. :^(

Given this, I'll reinstall grass57 from scratch and try again. Please
let me know if the above errors have an easy fix. I'm guessing that
'configure' is my problem ...

Thanks.

Thus spake Radim Blazek (blazek@xxxxxx):

> I have no explanation how/where '-ldl' was added to GDALLIBS.
> Normally, if --with-gdal is used, it contains path to GDAL lib
> and GDAL lib.
>
> Compilation of ogr driver is conditional and it was using
> ifneq ($(strip $(GDALLIBS)),)
> which I changed to
> ifneq ($(strip $(USE_OGR)),)
>
> OGR driver is used only for external data (v.external)
>
> Radim
>
>
> On Tuesday 27 July 2004 17:10, C.S. Cornuelle wrote:
> > Radim,
> >
> > In grass-5.7.0/include/Make/Platform.make we have:
> >
> > #GDAL/OGR
> > GDALLIBS = -ldl
> > GDALCFLAGS =
> > USE_OGR =
> >
> > FYI:
> >
> > /usr/lib> ls libdl*
> > libdl.a libdl.so@
> >
> > However, during configure I did:
> >
> > CFLAGS="-g -Wall" ./configure --without-fftw --without-gdal
> > --without-opengl --with-postgres-includes="/usr/local/pgsql/include"
> > --with-postgres-libs="/usr/local/pgsql/lib"
>

--
Adios,
Chris Cornuelle
bob at xmission dot com




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise