[GRASSLIST:6445] Re: gdal with grass
orkun
temiz at deprem.gov.tr
Wed Apr 13 09:31:24 EDT 2005
when I try gdal without grass
make gives
.../.libs/libgdal.so: undefined reference to `G_get_color'
collect2: ld returned 1 exit status
make[1]: *** [ogrinfo] Error 1
make[1]: Leaving directory `/usr/local/gdal-1.2.6/ogr'
make: *** [ogr-apps] Error 2
but with
../configure --with-grass=/usr/lib/grass
it compiled wihout error/
after this I run the script you sent.
It generated gdal_GRASS.so
compiled with grass and running script is a problem ?
regards
On Sal, 2005-04-12 at 10:19 +0200, Markus Neteler wrote:
> 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
>
>
______________________________________
XamimeLT - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster at deprem.gov.tr
______________________________________
The views and opinions expressed in this e-mail message are the sender's own
and do not necessarily represent the views and the opinions of Earthquake Research Dept.
of General Directorate of Disaster Affairs.
Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.
More information about the grass-user
mailing list