Hi Stefan,
Thanks for the quick reply. Based on the discussion, I changed the
entries in my configure file from 7.0.svn to 7.0.0. I also changed the
paths in the Makefile to the proj tables and created a directory for the
drivers.
```
sed -i 's/\.7\.0\.svn/\.7\.0\.0/g' configure
sed -i 's/etc\/ellipse/etc\/proj\/ellipse/g' Makefile.in
sed -i 's/etc\/datum/etc\/proj\/datum/g' Makefile.in
sudo mkdir /usr/local/share/gdal
CPPFLAGS="-I/usr/include/postgresql" CFLAGS="-O2 -Wall" LDFLAGS="-s"
./configure \
--with-grass=/usr/lib/grass70 \
--with-gdal=/usr/bin/gdal-config
make
sudo make install
```
The plugin now compiles and installs cleanly, but gdal doesn't seem to
be using it:
# gdalinfo --formats | grep -i grass
GRASSASCIIGrid (rov): GRASS ASCII Grid
Do you know how I can make it use it, or how I can tell if it is even
looking for it?
Cheers
John
p.s. I had searched the developer list archives for gdal plugin, but
that thread didn't appear.
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-boun...@lists.osgeo.org
[mailto:grass-user-boun...@lists.osgeo.org] On Behalf Of John A Stevenson
Sent: 21. april 2015 15:45
To: grass-user@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.steven...@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@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.steven...@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user