[SAGA-RG] usage of SAGA_LOCATION
Andre Merzky
andre at merzky.net
Wed Oct 15 10:05:46 CDT 2008
Quoting [Mathijs den Burger] (Oct 15 2008):
>
> On Wed, 2008-10-15 at 15:10 +0200, PFA van Zoolingen wrote:
>
> > > In the latest release CCT's SAGA C++ implementation doesn't require a set
> > > SAGA_LOCATION environment variable anymore (at least as long as the
> > > installation has not been moved from the --prefix directory it was
> > > configured and built with). If no $SAGA_LOCATION is set it internally
> > > defaults to the directory used during ./configure --prefix=... This doesn't
> > > free you from the need to properly set your LD_LIBRARY_PATH, but that's
> > > another issue, I guess.
>
> The makefiles in LSU's SAGA C++ implementation (e.g.
> $SAGA_LOCATION/share/saga/make/saga.application.mk) still need either
> SAGA_ROOT or SAGA_LOCATION to be set. A user that writes a SAGA app
> using an existing SAGA C++ installation therefore still needs to set
> SAGA_LOCATION, otherwise he cannot include saga.application.mk in the
> makefile of his own application. It's not clear to me whether that's a
> bug or not, but it seems to conflict with the quoted statement.
That is easy to solve: just set SAGA_LOCATION at the top of
your Makefile, and not in the environment. Make does not
care where the value comes from - but it needs _some_ means
to find the make includes...
hope that helps,
Andre.
> -Mathijs
--
Nothing is ever easy.
More information about the saga-rg
mailing list