Changes between Version 10 and Version 11 of GRASS


Ignore:
Timestamp:
Jan 24, 2008, 4:13:52 AM (16 years ago)
Author:
steko
Comment:

more clear explanation (feel free to change it)

Legend:

Unmodified
Added
Removed
Modified
  • GRASS

    v10 v11  
    11= GRASS =
    2 
    3 The GRASS support can be added to GDAL in two ways:
    4  * as a built-in GRASS driver
    5  * as a loadable GRASS driver plugin
    62
    73'''Note, following instructions apply to Linux and other environments where GNU autotools are available (autoconf, automake, make).'''
    84
     5The right order of steps to perform is, briefly:
     6 * build GDAL '''without''' GRASS support
     7 * build GRASS
     8 * add your GRASS library path to ld.so.conf and run ldconfig
     9 * build GDAL '''with''' GRASS support
     10
    911== Prerequisites ==
    1012
    11  * Download and install [http://grass.itc.it/ GRASS] together with development files (headers and libraries). The easiest option is to use binary packages prepared for your operating system.
     13 * Download and install [http://trac.osgeo.org/grass/wiki/DownloadSource GRASS source]. The easiest option is to use binary packages prepared for your operating system.
    1214
    1315 * Download latest [wiki:DownloadSource#PackagedSource stable] or [wiki:DownloadSource#Subversion development] version of GDAL sources:
    1416
    1517{{{
    16 tar -zxf gdal-1.4.1.tar.gz
    17 cd gdal-1.4.1
     18tar -zxf gdal-1.5.0.tar.gz
     19cd gdal-1.5.0
    1820}}}
    1921
    2022
    21 == Variant 1) Building GDAL and GRASS driver plugin ==
     23== Building GDAL and GRASS driver plugin ==
    2224
    2325 * Configure GDAL sources '''without''' GRASS support:
     
    4042{{{
    4143make
    42 make install
    4344}}}
    4445
    45  running last step with root privileges.
    46 
    47 == Variant 2) Building GDAL with built-in GRASS driver ==
    48 
    49 ''Note that this method is not recommended due to circular dependencies.''
    50 
    51  * Configure GDAL sources '''with''' GRASS support included:
     46 The install step needs root privileges:
    5247
    5348{{{
    54 ./configure --with-grass=/usr/local/grass6
     49sudo make install
    5550}}}
    5651
    57  and after ./configure finishes its job, you should see the GRASS driver enabled in the summary, like here:
    58 
    59 {{{
    60 GDAL is now configured for i686-pc-linux-gnu
    61 ...
    62   GRASS support:             grass57+
    63 ...
    64 }}}
    65 
    66  * Build and install GDAL:
    67 
    68 {{{
    69 make
    70 make install
    71 }}}
    72 
    73  running last step with root privileges.
    74 
    75  * Now, you can verify if GRASS support is enabled correctly:
    76 
    77 {{{
    78 ./gdalinfo --formats | grep GRASS
    79   GRASS (ro): GRASS Database Rasters (5.7+)
    80 
    81 ./ogrinfo --formats | grep GRASS
    82   -> "GRASS" (readonly)
    83 }}}
    84 
    85 === Build GRASS plugin ===
     52== Build GRASS plugin ==
    8653
    8754 * [http://download.osgeo.org/gdal/ Download] latest sources of GRASS plugin where the package file name is gdal-grass-X.Y.Z.tar.gz, ie. [http://download.osgeo.org/gdal/gdal-grass-1.4.3.tar.gz gdal-grass-1.4.3.tar.gz] (1.4.3 plugin is fine with any 1.4.x GDAL). Unpack the source package:
     
    10269{{{
    10370make
    104 make install
    10571}}}
    10672
    107  The last step needs root privileges.
     73 The install step needs root privileges:
     74
     75{{{
     76sudo make install
     77}}}
    10878
    10979