[GRASSLIST:315] RE: Compiling gdal with grass support: need help on '--with-grass=' p ointer

Patton, Eric epatton at nrcan.gc.ca
Wed Mar 22 12:47:45 EST 2006


Thanks to all for your helpful ideas. I managed to get today's cvs complied
and running perfectly on the second try!

The error I made was not updating ld.so.conf with a line containing
'/usr/local/grass-6.1.cvs/lib' --that's all!

Matthew, yes I recomplied the GDAL-GRASS plugin as you mentioned. 

NVIZ works great as well. Thanks again.

~ Eric.

-----Original Message-----
From: Matthew Perry
To: Patton, Eric
Cc: GRASSLIST at baylor.edu; dylan.beaudette at gmail.com
Sent: 3/22/2006 12:02 PM
Subject: Re: [GRASSLIST:309] Compiling gdal with grass support: need help on
'--with-grass=' p ointer

Eric,

  When you compile GRASS, are you sure it's picking up on you local
installation of GDAL? Try explicitly setting
--with-gdal=/usr/local/bin/gdal-config

Also, instead of recompiling GDAL, I think the prefered method is to
use the GDAL-GRASS plugin. It's fairly simple once you have gdal and
grass installed, though I think it only works for recent (> 1.3.1 )
versions of gdal:

==========
wget "http://www.gdal.org/dl/gdal-grass-1.3.1.2.tar.gz"
tar -xzvf gdal-grass-1.3.1.2.tar.gz
 cd gdal-grass-1.3.1/
./configure --with-gdal=/usr/local/bin/gdal-config
--with-grass=/usr/local/grass-6.1.cvs
==========

- matt

On 3/22/06, Patton, Eric <epatton at nrcan.gc.ca> wrote:
> Following Dylan's tutorial
(http://169.237.35.250/~dylan/grass_user_group/)
> on getting Grass cvs installed, I got surprisingly far before running
into a
> compile error:
>
> Downloaded latest cvs from repository into /usr/local
> compiled gdal --without-grass, no problems (used the script on Dylan's
site)
> ./configure for grass cvs, all dependencies met:
>
> ./configure --with-png=internal --with-jpeg=internal \
>         --with-gif=internal --with-libtiff=internal \
>         --with-geotiff=internal --with-libz=internal\
>         --without-pg --without-ogdi --with-python \
>         --with-threads=yes --without-grass \
>         --enable-largefile
>
> make
> make install
> ldconfig
>
> And no problems. Now I'm trying to configure gdal with grass support,
again,
> using the script provided on Dylan's site:
>
> ./configure --with-png=internal --with-jpeg=internal \
>  --with-gif=internal --with-libtiff=internal \
> --with-geotiff=internal --with-libz=internal\
> --without-pg --without-ogdi --with-python \
> --with-threads=yes --with-grass=/usr/local/grass6/
>
> and received error message:
>
> configure: error: --with-grass=/usr/local/grass6/ requested, but
libraries
> not found!
>
> So where should the '--with-grass' flag be pointing to? I've read
> conflicting information on the archives that the path inserted for
this flag
> should be everything from the binary
> (/usr/local/grass6/bin.i686-pc-linux-gnu/grass61) to a symlink in
/usr/lib
> that points to grass libs somewhere else.
>
> I'm able to run grass-cvs normally, except of course I can't use
r.*.gdal,
> but everything else seems fine so far.
>
>
>
>
> ~ Eric.
>
>
>
>
>
>
>


--
Matt Perry
perrygeo at gmail.com
http://www.perrygeo.net




More information about the grass-user mailing list