[GRASSLIST:6424] Re: gdal with grass
Markus Neteler
neteler at itc.it
Tue Apr 12 04:19:46 EDT 2005
On Tue, Apr 12, 2005 at 05:17:44AM +0300, orkun wrote:
> hello
>
> how can I compile gdal with grass support ?
The best is to
1. compile GDAL without GRASS support
2. compile the GRASS/GDAL plugin against GRASS 5.7/6.0:
## script start ########################
AUTOLOAD=/usr/local/lib/gdalplugins
#for the first time, paranoia:
mkdir $AUTOLOAD
#cleanup:
rm -f $AUTOLOAD/gdal_GRASS.so
#building GRASS 6.0 plugin support
(
cd frmts/grass/pkg/
./configure --with-grass=$HOME/grass61/dist.i686-pc-linux-gnu \
--with-autoload=$AUTOLOAD
if [ $? -eq 1 ] ; then
echo "an error occured"
exit
fi
ln -sf ../*.cpp .
make
make install
make clean
)
## script end ########################
Cheers
Markus
More information about the grass-user
mailing list