[GRASSLIST:2768] Re: : NVIZ

hi hamish,
the error message is the following:

child killed: segmentation violation
    while executing
"exec /grass/etc/nviz2.2/NVWISH2.2 -f /grass/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdout"
    ("eval" body line 1)
    invoked from within
"eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdout"
    invoked from within
"if {$argv == ""} {
#no arguments
eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdo..."
    (file "/grass/bin/nviz" line 16)

actually i have installed grass through a debian package, but unstalled it and re installed grass through grass.itc.it binaries..but it is still not runing...
thanks in advance
samuel

From: Hamish <hamish_nospam@yahoo.com>
To: "samuel cavalcante" <grassmanbr@hotmail.com>
Subject: Re: [GRASSLIST:2759] : NVIZ
Date: Fri, 27 Feb 2004 10:44:01 +1300

> i am having problems with running nviz..i've read here in the list
> that there is a problem with tcl8.4 version (used by grass) because
> nviz runs better in a tcl8.3 environment...i have tcl8.3 installed in
> my pc..how do i proceed in this case? does someone can help me giving
> step by step instructions?

You'll have to provide a clearer description of the problem. Sending a
cut & paste of the command line and error message to the grasslist is
best.

> i am using a debian/knoppix based distro...the ultimate version (but
> not with the newest linux kernell)

I'm using Debian here, NVIZ works fine.

Make sure that you are compiling GRASS with the tcl8.3-dev and tk8.3-dev
packages, not just that tcltk 8.3 is installed on the system. The binary
Debian grass package is known to be compiled with 8.4 & thus nviz
doesn't work there.

good luck,
Hamish

_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com

actually i have installed grass through a debian package, but
unstalled it and re installed grass through grass.itc.it binaries..but
it is still not runing...

I think you'll have to compile from source code. Not that bad; some hints:

"./configure" with:

CFLAGS="-O3 -march=i686 -Wall" LDFLAGS="-s" ./configure \
        --with-tcltk-includes=/usr/include/tcl8.3 \
        --with-postgres-includes=/usr/include/postgresql \
        --with-motif --with-motif-includes=/usr/X11R6/include \
        --with-glw \
        --with-readline \
        2>&1 | tee config_log.txt

$> make
#> make install

GRASS 5.0.3 Debian package Reqs for Debian/testing, Jan 22, 2004
(config.log and apt-file were used to discover these)

gcc # for compile
libc6-dev # for basics
flex # for lex
bison # for yacc
libncurses5-dev # for curses
zlib1g-dev # zlib
libreadline4-dev # readline
libjpeg62-dev or libjpeg-mmx-dev # for JPEG support
libtiff3g-dev # for TIFF support
libpng12-dev # for PNG support
libgd2-xpm-dev # for GD 2.0 install
libg2-dev # for GD 2.0 (unneed for GRASS > 5.0.x)
tcl8.4-dev # for TCL
tk8.4-dev # for TK
postgresql # for Postgresql support ???
postgresql-dev # for Postgresql support ???
xlibmesa-gl-dev # for OpenGL
libstdc++5-3.3-dev # for glu-dev
xlibmesa-glu-dev # for OpenGL
unixodbc-dev # for ODBC
fftw-dev # for FFT functions
lesstif2-dev # for Motif

libgdal1-dev # for GDAL
libfreetype6-dev # for Freetype Fonts (broken)

make # won't get far without this..
g++ # for r.terraflow

optional may/may not work out of the box:
gdal-bin # for GDAL (doesn't include libraries or gdal-config)
proj # for PROJ.4