[GRASSLIST:3923] tk.h/grass5.3/mdk10

Hi!

I tried to build a Grass 5.3 on Mdk10 but I've got stucked on a following
./configure stage:

checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

The tk.h is present in the /usr/include and in the
/usr/include/tk8.4.5/generic, the same files, installed from an
tk-8.4.5-3mdk.rpm.

I tried:

--with-includes=/usr/include
--with-tcltk-includes=/usr/include/,

and

--with-tcltk-includes=/usr/include/tk8.4.5/generic
/usr/include/tcl8.4.5/generic,

but still the same result.

What may be the reason?

I have the 2004_06_26 source. Should I go for a newer one?

Thanks,
Maciek

Maciek,

you need tcl/tk 8.3.
install the rpm's, and maybe you need to create links to it
ln -s /usr/lib/libtcl8.3.so /usr/lib/libtcl.so.0
ln -s /usr/lib/libtk8.3.so /usr/lib/libtk.so.0

hope it helps.

Carlos

--
+-------------------------------------------------+
        Carlos Henrique Grohmann - Guano
  Geologist M.Sc - PhD Student at IGc-USP - Brazil
     Linux User #89721 - guano at usp dot br -
+-------------------------------------------------+

Citando Maciek Sieczka <werchowyna@pf.pl>:

Hi!

I tried to build a Grass 5.3 on Mdk10 but I've got stucked on a following
./configure stage:

checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

The tk.h is present in the /usr/include and in the
/usr/include/tk8.4.5/generic, the same files, installed from an
tk-8.4.5-3mdk.rpm.

I tried:

--with-includes=/usr/include
--with-tcltk-includes=/usr/include/,

and

--with-tcltk-includes=/usr/include/tk8.4.5/generic
/usr/include/tcl8.4.5/generic,

but still the same result.

What may be the reason?

I have the 2004_06_26 source. Should I go for a newer one?

Thanks,
Maciek

Maciek Sieczka wrote:

I tried to build a Grass 5.3 on Mdk10 but I've got stucked on a following
./configure stage:

checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

What may be the reason?

Look in config.log; that file shows the commands which configure runs,
and any error/warning messages which they generate.

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

> Maciek Sieczka wrote:

> I tried to build a Grass 5.3 on Mdk10 but I've got stucked on a

following

> ./configure stage:
>
> checking whether to use Tcl/Tk... yes
> checking for location of Tcl/Tk includes...
> checking for tcl.h... yes
> checking for tk.h... no
> configure: error: *** Unable to locate Tk includes.

> What may be the reason?

Glynn Clements wrote:

Look in config.log; that file shows the commands which configure runs,
and any error/warning messages which they generate.

Thanks, following your advice I managed to build the Grass 5.3 from source
and it didn't hurt too much (but I had to go for the Mdk 9.2 BlueHawk
because the regular Mdk 10 does not provide all the libs and inludes
required for building Grass).

There where no errors wich would stop the building and all the stuff seems
to be working fine, even NVIZ, great. But I found two errors in the
"configure" log:

configure:4260: error: too many arguments to function `setpgrp'
configure:5178: error: structure has no member named `maxy'

and a few warnings there too (and plenty of warnings in the "make" log)

Should I be concerned?

Maciek

Maciek Sieczka wrote:

There where no errors wich would stop the building and all the stuff seems
to be working fine, even NVIZ, great. But I found two errors in the
"configure" log:

configure:4260: error: too many arguments to function `setpgrp'
configure:5178: error: structure has no member named `maxy'

and a few warnings there too (and plenty of warnings in the "make" log)

Should I be concerned?

No. Many of the errors which appear in config.log are to be expected,
including both of the above. Errors only matter when they result in a
test failing, in which case the configure script will display an error
message to the user.

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