[GRASSLIST:6291] r.terraflow

Has anybody used r.terraflow in 6.0 yet? It didn't seem to build along with everything else. I have seem some emails from a while back about r.terraflow not being included in the default build, is this still the case? If it is can anybody give me some guidance on building r.terraflow. There is some info at the terraflow website but its a bit sparse.

Eric

r.terraflow bid is in C++, thus you have to ./configure --with-cxx (which is not obvious by any means, right).

I guess the switch should be forced by default, as r.terraflow is a Grass element. Bad idea?

Maciek

----- Original Message ----- From: "Eric Hillmuth" <hillmuth@verizon.net>
To: <GRASSLIST@baylor.edu>
Sent: Wednesday, March 30, 2005 5:58 PM
Subject: [GRASSLIST:6291] r.terraflow

Has anybody used r.terraflow in 6.0 yet? It didn't seem to build along with everything else. I have seem some emails from a while back about r.terraflow not being included in the default build, is this still the case? If it is can anybody give me some guidance on building r.terraflow. There is some info at the terraflow website but its a bit sparse.

Eric

r.terraflow bid is in C++, thus you have to ./configure --with-cxx
(which is not obvious by any means, right).

I guess the switch should be forced by default, as r.terraflow is a
Grass element.

I'd say no. A C++ compiler is not standard item and should not be a
required prerequisite. Configure should work by default and let you
turn extra things on, not fail until you switch things off. I'd rather
get "how do I get r.terraflow" emails than "can't get past configure"
emails.

Also r.terraflow is still waiting on security fixes that the rest of
GRASS already has.

Of course r.terraflow is a major plus for GRASS.

Hamish

Hi,

if I have a C++ compiler, will configure detect it and compile with
C++ or I have to force it with --with-cxx flag?
Documentation for Grass 6.0 r.terraflow does not say anything about
requirement to compile Grass with cxx support to enable terraflow.
There should be a note about this. Currently note is only in
requirements list, but link (Installation requirements (needed
libraries)) in download page (http://grass.itc.it/download/index.php)
still points to 5.4 versions requirements list and there is no info
about C++.

How often users have C compiler and no C++ compiler? Most Linux
distros ship with both compilers (gcc and g++) or no compiler at all.

Just my 2c.
Maris.

On Thu, 31 Mar 2005 12:18:54 +1200, Hamish <hamish_nospam@yahoo.com> wrote:

> r.terraflow bid is in C++, thus you have to ./configure --with-cxx
> (which is not obvious by any means, right).
>
> I guess the switch should be forced by default, as r.terraflow is a
> Grass element.

I'd say no. A C++ compiler is not standard item and should not be a
required prerequisite. Configure should work by default and let you
turn extra things on, not fail until you switch things off. I'd rather
get "how do I get r.terraflow" emails than "can't get past configure"
emails.

Also r.terraflow is still waiting on security fixes that the rest of
GRASS already has.

Of course r.terraflow is a major plus for GRASS.

Hamish

Maris

if I have a C++ compiler, will configure detect it and compile with
C++ or I have to force it with --with-cxx flag?

By now you have to specify --with-cxx explicite.

Maybe it is a good idea to autodetect if c++ is available during ./configure and turn on the r.terraflow if so?

Documentation for Grass 6.0 r.terraflow does not say anything about
requirement to compile Grass with cxx support to enable terraflow.
There should be a note about this.

Give it a wish or a bug report. Include that the info should also go to the
"INSTALL" file.

Currently note is only in
requirements list, but link (Installation requirements (needed
libraries)) in download page (http://grass.itc.it/download/index.php)
still points to 5.4 versions requirements list and there is no info
about C++.

Mention this in the report as well.

How often users have C compiler and no C++ compiler? Most Linux
distros ship with both compilers (gcc and g++) or no compiler at all.

I think what Hamish meant is that if you choose the "devel tools" (or
something like this) to be installed in most distros the gcc-c++ won't be
included. It has to be installed seperatelly usually.

Maciek