[GRASSLIST:4037] Re: More OGR lib compile fun

C.S. Cornuelle bob at xmission.com
Tue Jul 27 11:10:27 EDT 2004


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"

and 

NVIZ:                       no

X11 support:                yes
JPEG support:               yes
TIFF support:               yes
PNG support:                yes
Tcl/Tk support:             yes
PostgreSQL support:         yes
MySQL support:              no
OpenGL(R) support:          no
ODBC support:               yes
FFTW support:               no
BLAS support:               no
LAPACK support:             no
Motif support:              no
FreeType support:           no
GLw support:                no
NLS support:                no
Readline support:           no
C++ support:                no
openDWG support:            no
GDAL support:               no
OGR support:                no

So since I attempted to disable OGR in order to get a working grass57 
executable, this seems not to have happened.  Or?

Thanks.  :^)

Thus spake Radim Blazek (blazek at itc.it):

> How GDALLIBS, GDALCFLAGS and USE_OGR is set 
> in grass51/include/Make/Platform.make ?
> 
> Radim
> 
> 
> On Monday 26 July 2004 23:26, C.S. Cornuelle wrote:
> > After guessing that the compilation error messages such as:
> >
> > OBJ.i686-pc-linux-gnu/describe.o(.text+0x3f):/home/bob/grass-5.7.0/db/drive
> >rs/ogr/describe.c:33: undefined reference to `OGR_DS_GetLayer'
> >
> > might have something to do with a library not found, I tried this:
> >
> > sudo cp lib/libgdal.so* /usr/local/pgsql/lib
> > sudo cp lib/libgdal.so* /usr/local/lib
> > sudo cp include/ogr_api.h /usr/local/include
> >
> > Still no luck.  FYI I'm doing:
> >
> > ~/grass-5.7.0/db/drivers/ogr> make
> >
> > to speed things up a bit.  Any idea what I might be messing up here?  Am
> > unable to find any help on the web or in the manuals, so this must be
> > a truly obvious problem ...
> 

-- 
Adios,
Chris Cornuelle
bob at xmission dot com




More information about the grass-user mailing list