[GRASS-user] r.example

Hamish hamish_b at yahoo.com
Fri May 24 03:36:07 PDT 2013


Pedro wrote:
>  I'm on a Debian squeeze machine ... installed GRASS
> (version 6.4.0~rc6+42329-3)

(fwiw that is essentially one or two commits away from 6.4.1)

>  Then, I looked for a simple example for reading a raster
> file in C and found out about the r.example (although didn't
> find it in my local installment).

yes, it's just an example of the source code.

> So, I downloaded the GRASS source code version 6.4.3RC3 and
> unzipped it to a folder placed in my Desktop.

good,

>  Now, from a Terminal window, I went to the r.example
> directory and typed "make". Here is the result:

you'll have to install the build dependencies and run ./configure
first,

try as root:
 apt-get build-dep grass

then
 renice +17 -p $$
 CFLAGS="-ggdb -march=native -Wall -Werror-implicit-function-declaration" \
  ./configure \
    --with-tcltk-includes=/usr/include/tcl8.5 --with-cairo \
    --with-motif --with-python=/usr/bin/python2.6-config \
    --with-readline --with-cxx --with-odbc --with-sqlite \
    --with-freetype --with-freetype-includes=/usr/include/freetype2 \
    --without-postgres --with-proj-share=/usr/share/proj \
    --enable-64bit --with-pthread -with-openmp \
    --with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 \
    --with-geos \
    2>&1 | tee config_log.txt

 make -j 5


see also the README in the debian/ dir in the source package and
  http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu



Hamish


More information about the grass-user mailing list