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

Patton, Eric epatton at nrcan.gc.ca
Wed Mar 22 07:52:59 EST 2006


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.









More information about the grass-user mailing list