Hi,
I just tried to compile the GDAL-GRASS-plugin 1.11.2 against GRASS 7.0.1 (the release branch).
It seems that there are some issues with the configure /configure.in file in the plugin
There “.7.0.svn” is hard coded in the library links (while the stable release puts the libraries in a folder ending on “.7.0.1svn”). So, I had to run:
sed -i ‘s/.7.0.svn/.7.0.1svn/g’ configure
In order to be able to configure the plugin.
After that it seems to work fine although I get a warning messages on ./configure:
“
checking for ranlib… ranlib
conftest2.c: In function ‘g’:
conftest2.c:2:1: warning: zero-length gnu_printf format string [-Wformat-zero-length]
void g(); void g(){printf(“”);}
^
“
Furthermore, I had to specify the includes for my PostgreSQL in order to make “make” work:
CPPFLAGS=“-I/usr/include/postgresql” ./configure --with-grass=/usr/local/grass-7.0.1svn --with-gdal=/usr/local/bin/gdal-config
I also got an error on “sudo make install”:
cp: cannot stat ‘/usr/local/grass-7.0.1svn/etc/ellipse.table’: No such file or directory
make: *** [install] Error 1
But GDAL / OGR do now read both GRASS 7 raster and vector nicely…
Kind regards,
Stefan
Hi,
2015-03-30 17:22 GMT+02:00 Blumentrath, Stefan <Stefan.Blumentrath@nina.no>:
I just tried to compile the GDAL-GRASS-plugin 1.11.2 against GRASS 7.0.1
(the release branch).
it should be already fixed in SVN [1], so fixed for upcoming GDAL
1.11.3, see [2]. Martin
[1] http://svn.osgeo.org/gdal/branches/1.11/
[2] http://trac.osgeo.org/gdal/ticket/5852
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
On Mon, Mar 30, 2015 at 5:22 PM, Blumentrath, Stefan
<Stefan.Blumentrath@nina.no> wrote:
...
I also got an error on “sudo make install”:
cp: cannot stat ‘/usr/local/grass-7.0.1svn/etc/ellipse.table’: No such file
or directory
make: *** [install] Error 1
The path changed between G6 and G7, it should be
etc/proj/*
@Martin, is this fixed as well?
thanks
Markus
2015-03-30 18:16 GMT+02:00 Markus Neteler <neteler@osgeo.org>:
The path changed between G6 and G7, it should be
etc/proj/*
@Martin, is this fixed as well?
yes [1]. Martin
[1] http://trac.osgeo.org/gdal/browser/branches/1.11/gdal/frmts/grass/pkg/Makefile.in#L30
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
Thanks Martin,
I just downloaded configure.in, configure and Makefile.in and now it works.
I still get the conftest2 warning, but that does not matter I guess...(?).
Cheers
Stefan
-----Original Message-----
From: Martin Landa [mailto:landa.martin@gmail.com]
Sent: 30. mars 2015 18:28
To: Markus Neteler
Cc: Blumentrath, Stefan; gdal-dev (gdal-dev@lists.osgeo.org); GRASS developers list (grass-dev@lists.osgeo.org)
Subject: Re: [gdal-dev] [GRASS-dev] GDAL-GRASS-plugin 1.11.2
2015-03-30 18:16 GMT+02:00 Markus Neteler <neteler@osgeo.org>:
The path changed between G6 and G7, it should be
etc/proj/*
@Martin, is this fixed as well?
yes [1]. Martin
[1] http://trac.osgeo.org/gdal/browser/branches/1.11/gdal/frmts/grass/pkg/Makefile.in#L30
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa