[GRASS-dev] GDAL's GRASS plugin

Maciej Sieczka tutey at o2.pl
Wed Jul 19 14:16:31 EDT 2006


Markus Neteler wrote:
> On Wed, Jul 19, 2006 at 03:46:06PM +1200, Hamish wrote:
>> Hi,
>>
>> just compiled latest GDAL from CVS + GRASS plugin 1.3.1.2.
>>
>> two issues:
>>
>> 1) probably just README needs updating or I need to read it better?
>>
>> cd gdal/frmts/grass/pkg
>> ./configure ...

What README are you reffering to?

gdal-grass 1.3.1.2 README reads:

<quote>

./configure --with-gdal=/usr/local/bin/gdal-config
--with-grass=/usr/local/grass-6.0.0
make
sudo make install

</quote>

Following this procedure all works like a charm. Even I can skip
"--with-gdal=/usr/local/bin/gdal-config" as the plugin will find the
gdal-config itself for me.


>> make: *** No rule to make target `grass57dataset.o', needed by `gdal_GRASS.so'.  Stop.
>>
>> (I assume this needs re./configure --with-grass= after GRASS is built)
>>
>>
>> [build GRASS with new GDAL libs]
>>
>>
>> 2) gdal installs a broken & unwanted symlink:
>>
>> downloaded GRASS plugin 1.3.1.2,
>>
>> ./configure
>> make
>> [ok]
>>
>> # make install
>>
>> install -d /usr/local/lib/gdalplugins
>> install: cannot create directory `/usr/local/lib/gdalplugins': File
>> exists
>> make: *** [install] Error 1


I never had this problem on Mandriva 2006, Ubuntu Breezy and now Dapper.


>> # ls /usr/local/lib/gdalplugins -l
>> lrwxrwxrwx  1 root staff 20 2005-10-24 16:17
>> /usr/local/lib/gdalplugins -> /usr/lib/gdalplugins
>>
>> (/usr/lib/gdalplugins doesn't exist)
>>
>> if I do:
>>
>> # rm /usr/local/lib/gdalplugins
>> # mkdir /usr/local/lib/gdalplugins


This step was never required for me to be able to install gdal-grass
plugin. I don't know what could be wrong in your case.

Maybe because I'm uisng checkinstall instead of make install, which
let's me maintain my custom software as packages, so I'm sure there no
leftovers from older/corrupted instalations.

Here's the most up to date debianized source, if you'd like to try it:
http://mentors.debian.net/debian/pool/main/c/checkinstall/

> you have to link these files from ../ into pkg/.
> 
> See
>  http://mpa.itc.it/markus/useful/conf_install_gdal_ogr_grass_plugin.sh
> for a convenient script to compile/install - also the OGR plugin
> in the same moment.

Markus,

This is no longer required if using at least gdal-grass-1.3.1.1. Plain
configure, make, make install is enough now.

> Personally, I no longer use the plugin extra package but
> compile it directly from the standard GDAL code using my
> script. That makes things even easier...

As to me, I prefer to maintain gdal-grass plugin as a separate deb
package so I can share it/install on other machines easily.

Maciek




More information about the grass-dev mailing list