Hi All.

from a gdal-dev list+irc discussion,


the old patch  no longer work on the up-to date gdal trunk.

the old patch was applied in the trunk plus modification to have the gdal-grass plug-in
working on grass version < 7 and = 7.

but that sophistication has been broken by a recent change in grass.

probably the reason of the current failure is the addition/removal of one of the grass lib, have a "grass-config" script would help certainly to avoid this kind of failure each time a new lib will be added/removed.



thanks for any interest in this direction.

regards,
Massimo.

Inizio messaggio inoltrato:

Da: Massimo Di Stefano <massimodisa...@yahoo.it>
Data: 14 ottobre 2009 21:37:04 GMT+02:00
A: Markus Neteler <nete...@osgeo.org>
Cc: gdal-...@lists.osgeo.org
Oggetto: Re: [gdal-dev] grass lib not found : gdal-grass plug-in (grass-7.0)

Thanks Markus,

i tried to apply the patch, but it fails on the actually gdal-trunk (revision : Revision: 17810 )

i'm tring to see how to apply the patch manually .. but it is 6000 lines :'(

this the log tring to apply the patch :


geo...@geofem:/usr/local/src/gdal$ patch -p0 < /home/geofem/ Downloads/gdal_grass7_plugin.diff
patching file frmts/grass/pkg/configure.in
Hunk #2 succeeded at 152 (offset 9 lines).
patching file frmts/grass/pkg/configure
Hunk #62 FAILED at 3395.
Hunk #65 FAILED at 3446.
Hunk #67 FAILED at 3534.
Hunk #68 succeeded at 3630 (offset 78 lines).
Hunk #69 succeeded at 3694 (offset 78 lines).
Hunk #70 succeeded at 3712 (offset 78 lines).
Hunk #71 succeeded at 3793 (offset 78 lines).
Hunk #72 succeeded at 3854 (offset 78 lines).
Hunk #73 succeeded at 3978 (offset 78 lines).
Hunk #74 succeeded at 4008 (offset 78 lines).
Hunk #75 succeeded at 4023 (offset 78 lines).
Hunk #76 succeeded at 4136 (offset 78 lines).
patch: **** malformed patch at line 5577: @@ -3895,7 +4587,9 @@

geo...@geofem:/usr/local/src/gdal$

Have you any ideas?
idea .. (but i guess it is totally wrong)
can i download gdal-grass plug-in from the gdal-revision you applied the patch
and use it on the actual gdal trunk?

thanks for any suggestion!

Massimo.

il giorno 14/ott/09, alle ore 19:09, Markus Neteler ha scritto:

On Wed, Oct 14, 2009 at 12:02 PM, Massimo Di Stefano
<massimodisa...@yahoo.it> wrote:
Hi All.

I'm tring to build the gdal-grass plug-in (i'm using gdal from svn)
on a debian sid machine,

i had this problem :


geo...@geofem:/usr/local/src/gdal/frmts/grass/gdal-grass-1.7.0$ ./ configure
--with-gdal=/usr/local/bin/gdal-config
--with-grass=/usr/local/grass-7.0.svn/
...
configure: error: --with-grass=/usr/local/grass-7.0.svn requested, but libraries not found! Perhaps you need to set LD_LIBRARY_PATH to include
/usr/local/grass-7.0.svn/lib?
geo...@geofem:/usr/local/src/gdal/frmts/grass/gdal-grass-1.7.0$

i have  :

cat /etc/ld.so.conf.d/grass.conf
/usr/local/grass-7.0.svn/lib


have you any clue on how to fix the gdal-grass build ?

Yes, see the patch in
http://trac.osgeo.org/gdal/ticket/2953

Markus


_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to