[GRASSLIST:8037] Order of ops for GRASS with GDAL support install?

BABA Yoshihiko has been doing a great job getting GDAL and GRASS working
under the fink package manager, but I'm noticing a slightly odd way of
getting GRASS with GDAL support -- am I correct in noticing there are
cyclical dependencies, e.g. You have to first compile gdal, then compile
grass with gdal support, then compile gdal with grass support? If this is
true, is there any way to get around this?

--j

--
Jonathan A. Greenberg, PhD
NRC Research Associate
NASA Ames Research Center
MS 242-4
Moffett Field, CA 94035-1000
Office: 650-604-5896
Cell: 415-794-5043
AIM: jgrn307
MSN: jgrn307@hotmail.com

On Tue, Aug 23, 2005 at 02:55:50PM -0700, Jonathan Greenberg wrote:

BABA Yoshihiko has been doing a great job getting GDAL and GRASS working
under the fink package manager, but I'm noticing a slightly odd way of
getting GRASS with GDAL support -- am I correct in noticing there are
cyclical dependencies, e.g. You have to first compile gdal, then compile
grass with gdal support, then compile gdal with grass support? If this is
true, is there any way to get around this?

I am doping this procedure:

HOWTO compile GDAL/GRASS/GRASS-plugin:
  1. compile GDAL without GRASS support (see ./conf_gdal.sh [1] )
  2. compile GRASS itself (see ./conf_grass61_linux.sh [1] )
  3. configure/compile/install GDAL/GRASS plugin (see ./conf_install_gdal_grass_plugin.sh [1])
  4. link GRASS libs into /usr/local/lib/
  5. run 'ldconfig' (as root)

[1] http://mpa.itc.it/markus/useful/

Hope this helps

Markus

On Wed, Aug 24, 2005 at 10:53:19AM +0200, Markus Neteler wrote:

On Tue, Aug 23, 2005 at 02:55:50PM -0700, Jonathan Greenberg wrote:
> BABA Yoshihiko has been doing a great job getting GDAL and GRASS working
> under the fink package manager, but I'm noticing a slightly odd way of
> getting GRASS with GDAL support -- am I correct in noticing there are
> cyclical dependencies, e.g. You have to first compile gdal, then compile
> grass with gdal support, then compile gdal with grass support? If this is
> true, is there any way to get around this?

I am doping this procedure:

HOWTO compile GDAL/GRASS/GRASS-plugin:
  1. compile GDAL without GRASS support (see ./conf_gdal.sh [1] )
  2. compile GRASS itself (see ./conf_grass61_linux.sh [1] )
  3. configure/compile/install GDAL/GRASS plugin (see ./conf_install_gdal_grass_plugin.sh [1])
  4. link GRASS libs into /usr/local/lib/
  5. run 'ldconfig' (as root)

[1] http://mpa.itc.it/markus/useful/

Sorry: revised procedure (I just tested it on a "fresh" machine):

HOWTO compile OGR/GRASS/GRASS-plugin:
  1. compile GDAL/OGR without GRASS support (see ./conf_gdal.sh )
  2. compile GRASS itself (see ./conf_grass61_linux.sh )
  3. link GRASS libs into /usr/local/lib/
  4. run 'ldconfig' (as root)
  5. run this script to configure/compile/install OGR/GRASS plugin
     (may require root permissions)

Frank, we are looking forward to the unification of the GRASS drivers :slight_smile:

Markus