|
[GRASSLIST:4047] Re: More OGR lib compile fun: msg#00253gis.grass.user
Thanks. :^) FYI I managed to install grass 5.3 without incident. Thus spake Radim Blazek (blazek@xxxxxx): > It seems that GRASS was configure as if it had GDAL, but > definition is missing. Set your > > grass51/include/Make/Platform.make: > GDALLIBS = > GDALCFLAGS = > USE_OGR = > > grass51/include/config.h: > #undef HAVE_OGR > > But GDAL/OGR is very useful, I recommend to install GDAL. > > Radim > > > On Wednesday 28 July 2004 19:33, C.S. Cornuelle wrote: > > 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> |
|---|---|---|
| Previous by Date: | [GRASSLIST:4045] Re: More OGR lib compile fun: 00253, Radim Blazek |
|---|---|
| Next by Date: | [GRASSLIST:4046] GIMP & GRASS?: 00253, Du Chavoux luyt |
| Previous by Thread: | [GRASSLIST:4045] Re: More OGR lib compile funi: 00253, Radim Blazek |
| Next by Thread: | [GRASSLIST:4026] .e00 and grass57: 00253, Kirk R. Wythers |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |