[gdal-dev] Re: [GRASS-dev] gdal-grass plugin build failed

Glynn Clements glynn at gclements.plus.com
Sat Apr 2 18:56:11 EDT 2011


Massimo Di Stefano wrote:

> tring to rebuild the gdal-grass plugin on my linux (debian sid) 
> but i'm having this error 

> checking for G_asprintf in -lgrass_gis... no
> checking for G_putenv in -lgrass_gis.7.0.svn... no
> configure: error: --with-grass=/usr/local/grass-6.5.svn requested, but
> libraries not found!  Perhaps you need to set LD_LIBRARY_PATH to
> include /usr/local/grass-6.5.svn/lib?
> 
> have you any clue ? the error happens if i try to build the gdal-grass
> plugin using grass 6.5 ... instead using the 7.0 it build fine.
> 
> 
> the config.log file contents : http://paste.debian.net/112667/ 

	configure:2969: gcc -o conftest -O2    conftest.c -lgrass_gis
	-L/usr/local/grass-6.5.svn/lib -lgrass_I -lgrass_vask -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_I
	...

> it can't find lib .. but they exists

The 6.x build system no longer generates the unversioned symlinks,
which the configure script requires.

This has long been the case for the 7.0 build system, but the
gdal-grass configure script explicitly checks for the versioned names
for 7.0.

You could just generate the symlinks yourself, e.g.:

	cd /usr/local/grass-6.5.svn/lib
	for file in libgrass_*.so ; do ln -s $file ${file%.6.5.svn.so}.so ; done

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the gdal-dev mailing list