[gdal-dev] Re: [GRASS-dev] cannot build gdal-grass

Markus Neteler neteler at osgeo.org
Mon Jun 23 03:54:11 EDT 2008


On Mon, Jun 23, 2008 at 1:38 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> Maciej Sieczka wrote:
>
>> >> gdal-grass 1.4.3 refuses to build against GDAL 1.5.2 r14751 and
>> >> GRASS 6.4 r31801.
>> >>
>> >> checking for G_asprintf in -lgrass_gis... no configure: error:
>> >> --with-grass=/usr/local/grass-6.4.svn requested, but libraries not
>> >> found! Perhaps you need to set LD_LIBRARY_PATH to include
>> >> /usr/local/grass-6.4.svn/lib
>> >>
>> >> What could be wrong? This used to work couple of days ago.
>>
>> > Look in config.log for the actual error message.
>>
>> Right.
>>
>> Here's the relevant part I guess:
>>
>> /usr/bin/ld: cannot find -lgrass_I
>
> Ah. The imagery library isn't called libgrass_I any more; it's now
> called libgrass_imagery.
>
> It was changed at the same time that I moved the clustering code to a
> separate library. However, I didn't realise that it had been
> back-ported to 6.4.

Obviously we cannot change a library name in 6.x as it is
hardcoded here:
http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/grass/pkg/configure.in#L126

I have reverted the name change in 6.4.svn.
Maciej, it should work again if you use 6.x.

One day, however, the plugin and GRASS 7 need a library name sync or some
condition in above indicated GDAL file.

Markus


More information about the grass-dev mailing list