[GRASS-user] can't compile gdal-grass plugin against grass7

Donovan Cameron sault.don at gmail.com
Tue Mar 10 15:06:42 PDT 2015


Afternoon everyone,

I'm having some problems getting the gdal-grass 1.11.2 plugin to compile 
with grass 7.0.0 installed on Arch Linux 64bit.

I've compiled GDAL 1.11.2 --without-grass, then compiled grass 7.0.0 
from the tar archive.

Next tried to compile gdal-grass plugin but it complains:
configure: error: --with-grass=/opt/grass requested, but libraries not 
found!  Perhaps you need to set LD_LIBRARY_PATH to include /opt/grass/lib?

GRASS installed a grass.conf into /etc/ld.so.conf.d/ with the contents 
/opt/grass/lib and then I ran "sudo ldconfig" but still get same error.

The config.log for gdal-grass has a part in it that says:
"/usr/bin/ld: cannot find -lgrass_gis.7.0.svn
/usr/bin/ld: cannot find -lgrass_raster.7.0.svn
/usr/bin/ld: cannot find -lgrass_gmath.7.0.svn
/usr/bin/ld: cannot find -lgrass_gis.7.0.svn
/usr/bin/ld: cannot find -lgrass_datetime.7.0.svn
/usr/bin/ld: cannot find -lgrass_gproj.7.0.svn
/usr/bin/ld: cannot find -lgrass_vector.7.0.svn
/usr/bin/ld: cannot find -lgrass_dbmibase.7.0.svn
/usr/bin/ld: cannot find -lgrass_dbmiclient.7.0.svn
/usr/bin/ld: cannot find -lgrass_dgl.7.0.svn
/usr/bin/ld: cannot find -lgrass_dig2.7.0.svn
/usr/bin/ld: cannot find -lgrass_rtree.7.0.svn
/usr/bin/ld: cannot find -lgrass_linkm.7.0.svn
/usr/bin/ld: cannot find -lgrass_btree2.7.0.svn
/usr/bin/ld: cannot find -lgrass_ccmath.7.0.svn"

But /opt/grass/lib has files with a full version number like 
libgrass_gis.7.0.0.so instead of libgrass_gis.7.0.svn.so
And those are symlinks like "libgrass_gis.7.0.0.so -> libgrass_gis.so"


Any help would be greatly appreciated or if anyone needs more info, feel 
free to ask.





Donovan


More information about the grass-user mailing list