[GRASSLIST:1419] Re: compiling GRASS with tcl8.4
Hamish
hamish_nospam at yahoo.com
Tue Oct 7 03:08:50 EDT 2003
> (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.....)
Anyone else having trouble sending?
> 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
> baliola at diomedea:~$ dpkg -s tcl8.4
...
> any idea? thanks in advance cheers martin
Some general hints on getting GRASS installed on a Debian system follow.
Config line for intel PIII:
CFLAGS="-O3 -march=i686 -Wall" LDFLAGS="-s" ./configure \
--with-tcltk-includes=/usr/include/tcl8.4 \
--with-postgres-includes=/usr/include/postgresql \
--with-motif --with-motif-includes=/usr/X11R6/include \
--with-freetype --with-freetype-includes=/usr/include/freetype2 \
--with-blas --with-blas-libs=/usr/lib/gcc-lib/i386-linux/3.0.4 \
--with-lapack \
--with-glw \
--with-readline \
2>&1 | tee config_log.txt
$> make
#> make install
Packages needed for compile:
(give or take a few, the list is slightly outdated)
apt-file was used for most of this discovery. It's very handy.
.deb Package Provides..
---------------------------------
libncurses5-dev curses.h
zlib1g-dev zip fn's
libjpegb2-dev \
libtiff3g-dev |- graphics
# superseded libpng2-dev /
libpng-dev /
# superseded libgd-dev gif/png support
libgd2-dev gif/png support
# no longer exists task-tcltk-dev Tcl/Tk widgets 8.3
tcl8.3-dev
tk8.3-dev Tcl/Tk 8.3 development files. As of 5.0.0, Tk8.4 breaks NVIZ
# tc8.4-dev
# tk8.4-dev Tcl/Tk 8.4 Development Files. Depends on needed Tcl bits.
fftw-dev FFT Libraries
postgresql-dev PostgreSQL
libsqlxx-dev ODBC ? conflicts with unixodbc-dev?
libgdbm-dev DBM (Use libgdbmg1-dev for Woody)
unixodbc-dev ODBC
libfreetype6-dev Freetype
libmotif-dev Motif
blas-dev BLAS math library
lapack-dev LAPACK math library
g77-3.0 for BLAS (& lapack as well??)
f2c for BLAS (libf2c) unneeded?
gotchas:
GRASS 5.0.2 needs Tcl/Tk 8.3 for NVIZ. The upcoming 5.0.3 should
handle 8.4 ok.
but...
The upcoming GRASS 5.0.3 with Tcl/Tk8.4 on a Debian system requries a
slight change to keep NVIZ from locking up on startup. Add "-lpthread"
to the end of the XTRA_LDFLAGS line in src.contrib/GMSL/NVIZ2.2/src/Gmakefile.
see this thread:
http://article.gmane.org/gmane.comp.gis.grass.devel/2026
good luck,
Hamish
More information about the grass-user
mailing list