[GRASS-dev] library so file name scheme and GDAL-GRASS plugin

Markus Neteler neteler at osgeo.org
Mon Apr 18 15:36:23 EDT 2011


Hi,

I don't know what changed but I don't manage any more to compile the
GDAL-GRASS-plugin without tricks:

config.log of GDAL-GRASS-plugin:
...
configure:3017: checking for G_putenv in -lgrass_gis
configure:3047: gcc -o conftest -O2    conftest.c -lgrass_gis
-L/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/lib
-lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vect
-lgrass_dbmibase -lgrass_dbmiclient -lgrass_dgl -lgrass_dig2
-lgrass_rtree -lgrass_linkm -L/usr/local/lib -lgdal  >&5
/usr/bin/ld: cannot find -lgrass_gis
/usr/bin/ld: cannot find -lgrass_gmath
/usr/bin/ld: cannot find -lgrass_gis
/usr/bin/ld: cannot find -lgrass_datetime
/usr/bin/ld: cannot find -lgrass_gproj
/usr/bin/ld: cannot find -lgrass_vect
/usr/bin/ld: cannot find -lgrass_dbmibase
/usr/bin/ld: cannot find -lgrass_dbmiclient
/usr/bin/ld: cannot find -lgrass_dgl
/usr/bin/ld: cannot find -lgrass_dig2
/usr/bin/ld: cannot find -lgrass_rtree
/usr/bin/ld: cannot find -lgrass_linkm
...

All names are currently libgrass_raster.6.4.2svn.so and likewise.

Starting gdalinfo etc, tells me
libgrass_I.so not found

I can solve the problem like this:

cd /where/grass64/is/lib/
for i in `ls libgrass_*.6.4.*` ; do ln -s $i `basename $i 6.4.2svn.so`so ; done

Any ideas?
Markus


More information about the grass-dev mailing list