[gdal-dev] can't compile gdal-grass plugin against GRASS 7

Donovan Cameron sault.don at gmail.com
Tue Mar 10 16:33:37 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 (even tried from the svn release 7_0 branch) 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 gdal-dev mailing list