[GRASS-user] GRASS 7 and gdal-grass-1.11.2 plugin SOLVED

John A Stevenson john.stevenson at ed.ac.uk
Tue Apr 21 09:39:24 PDT 2015


Hi Stefan,

After compiling and installing as described before, I was able to point 
GDAL at the GRASS plugin by setting the following variable:

export GDAL_DRIVER_PATH=/usr/lib/gdalplugins

$ ogrinfo --formats | grep -i grass
   -> "GRASS" (readonly)

$ gdalinfo --formats | grep -i grass
   GRASS (ro): GRASS Database Rasters (5.7+)
   GRASSASCIIGrid (rov): GRASS ASCII Grid

Launching QGIS from the command line then lets me use Add Raster Layer 
(from my location's cellhd folder) and Add Vector Layer (choosing 
Directory as the source type).  Now I can view my GRASS 7 data in QGIS.

Thanks,
John

Background info on following thread: http://trac.osgeo.org/gdal/ticket/4444

On 21/04/15 15:54, Blumentrath, Stefan wrote:
> Hi,
>
> This has been discussed on the developers list. Have a look here:
> http://osgeo-org.1560.x6.nabble.com/GDAL-GRASS-plugin-1-11-2-tt5196087.html
>
> Cheers
> Stefan
>
> -----Original Message-----
> From: grass-user-bounces at lists.osgeo.org [mailto:grass-user-bounces at lists.osgeo.org] On Behalf Of John A Stevenson
> Sent: 21. april 2015 15:45
> To: grass-user at lists.osgeo.org
> Subject: [GRASS-user] GRASS 7 and gdal-grass-1.11.2 plugin
>
> Hi,
>
> I'm trying to install the GDAL-GRASS 7 plugin in order to plot GRASS data in QGIS.
>
> I downloaded the source
> (http://download.osgeo.org/gdal/1.11.2/gdal-grass-1.11.2.tar.gz) and followed the instructions in the README.  When I try to configure with the following command:
>
> ```
> CFLAGS="-O2 -Wall" LDFLAGS="-s" ./configure \
>           --with-grass=/usr/lib/grass70 \
>           --with-gdal=/usr/bin/gdal-config ```
>
> I get the following 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/lib/grass70 requested, but libraries not found!  Perhaps you need to set LD_LIBRARY_PATH to include /usr/lib/grass70/lib?
> ```
>
> This is the same error as described in the gdal-grass README, but the workaround (creating grass.conf in /etc/ld.so.conf.d with /usr/lib/grass70/lib, then running sudo ldconfig) doesn't help.  I have also tried patching the configure.in and Makefile.in source files using the patch from here: https://trac.osgeo.org/gdal/ticket/5852 without success.
>
> How can I point to compiler at the right place?
>
>
> *    OS: Linux Mint 17, based on Ubuntu 14.04 (Trusty).
> *    GRASS version : 7.0.0-1~exp2~trusty3 from
> ppa:ubuntugis/ubuntugis-unstable repository (installs to /usr/lib/grass70.  Also installed grass-dev)
> *    GDAL version: 1.11.1+dfsg-1~exp2~trusty from
> ppa:ubuntugis/ubuntugis-unstable repository (installs to /usr/bin)
>
> Thanks,
>
> John
>
> --
> Dr John A Stevenson
> RSE/Scottish Government Personal Research Fellow (co-funded by Marie Curie Actions) School of GeoSciences The University of Edinburgh Grant Institute James Hutton Road Edinburgh EH9 3FE Scotland
> PHONE: (+44) 131 650 7526
> FAX:   (+44) 131 668 3184
> email: john.stevenson at ed.ac.uk
> twitter: @volcan01010
> web: http://www.geos.ed.ac.uk/homes/jsteven5
> blog: http://all-geo.org/volcan01010
> **ICELAND MOBILE: (+354) 8417106**
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>

-- 
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
James Hutton Road
Edinburgh EH9 3FE
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.stevenson at ed.ac.uk
twitter: @volcan01010
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the grass-user mailing list