[GRASSLIST:1414] Re: compiling GRASS with tcl8.4

Glynn Clements glynn.clements at virgin.net
Mon Oct 6 12:11:00 EDT 2003


Martin Wegmann wrote:

> (sorry if you received this mail a few times - I already tried it several 
> times to send the mail on the list, but it neither appeared in the archive 
> nor did I receive my own mail or any responses - but anyway, that's what I 
> wanted to ask.....)
> 
> 
> I compiled the GRASS source 5.0.2
> 
> ./configure --with-gdal --without-gd
> 
> it stopps with the message:
> 
> checking for png_read_image in -lpng... yes
> checking whether to use GD... no
> checking whether to use Tcl/Tk... yes
> checking for location of Tcl/Tk includes...
> checking for tcl.h... no
> configure: error: *** Unable to locate Tcl includes.
> 
> but I have tcl8.4 installed

[snip]

> why does GRASS not recognize tcl?

You probably need to use --with-tcltk-includes=... (and possibly
--with-tcltk-libs=... as well).

If it isn't in the compiler's default include path (typically
/usr/include and /usr/local/include), you have to tell configure where
to find it.

> --without-tcl ends as well in the same output as inserted above. 

There isn't a --without-tcl switch, although there is a
--without-tcltk switch (configure silently ignores invalid --with-*
switches).

> P.S.: I want to use the r.series.diff patch provided by glynn clements and did 
> patch<r.series.diff - I don't have to do --with-..., do I?

No.

> It should be compiled automatically, am I right?

No; you need to compile r.series explicitly with gmake5, i.e. either:

	gmake5 -i src/raster/r.series

from the top of the GRASS source tree, or just:

	gmake5 -i

from within the src/raster/r.series subdirectory itself. Then you need
to run "gmakelinks5 -i" to generate the links in the bin directory
(e.g. /usr/local/grass5/bin).

Running "make" only compiles the directories which are listed in
src/CMD/lists/GRASS or src/CMD/lists/optional (the latter is generated
from src/CMD/lists/optional.in by configure).

Modules which are considered experimental (which currently includes
r.series) or modules with significant bugs aren't included in these
lists, so you have to compile them separately with gmake5.

Alternatively, you can just modify src/CMD/lists/GRASS so that the
directory is built automatically when running "make".

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list