[GRASSLIST:2257] NVIZ on Cygwin

Richard Greenwood rich at greenwoodmap.com
Fri Jan 16 23:52:40 EST 2004


Glynn et al,

I am trying to get NVIZ (from Grass 5.0.3 source) compiled and working 
on Cygwin.  I have a new, clean, minimal Cygwin install and built Grass. 
It appears to run, as does tcltkgrass, but nviz generates the error [1] 
below. Inspecting my config.log, I see a couple suspicious errors, [2] 
and [3] below.

[2] says "ld: cannot find -ltk" and neither can I. Do I need to link tk 
to something? And if so, what?

[3] is a list of 427 undefined references. Am I missing a library, or a 
link, or something in my path?

There are two shell scripts in /usr/local/lib 'tclConfig.sh' and 
'tkConfig.sh' which define numerous shell variables.  Is it possible 
that these relate to my problem? Do I need to run these prior to 
configure and build?

As always, I apprecite the assistance that I receive from this list.

Best regards,
Rich


=== [1] ====
GRASS:~ > nviz ned_patch
child killed: segmentation violation
    while executing
"exec 
/home/Rich/grass/grass-5.0.3/dist.i686-pc-cygwin/etc/nviz2.2/NVWISH2.2 -f
/home/Rich/grass/grass-5.0.3/dist.i686-pc-cygwin/etc/nviz2.2/scripts/nv..."
    ("eval" body line 1)
    invoked from within
"eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f 
$env(GISBASE)/etc/nviz2.2/scri
pts/nviz2.2_script $argv -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/scrip
ts/nviz2.2_script -name NVIZ >&@stdo..."
    (file "/home/Rich/grass/grass-5.0.3/dist.i686-pc-cygwin/bin/nviz" 
line 16)

=== [2] =====
int main() {
Tk_MainWindow()
; return 0; }
configure:8617: checking for Tk_MainWindow in -ltk
configure:8634: gcc -o conftest -O2    -I/usr/include/ncurses  -s 
-L/usr/local/lib -L/usr/X11R6/lib conftest.c -ltk  -ltcl8.3    
-L/usr/X11R6/lib  -lSM -lICE -lX11   1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: 
cannot find -ltk
collect2: ld returned 1 exit status

=== [3] =====
int main() {
Tk_MainWindow()
; return 0; }
configure:8661: checking for Tk_MainWindow in -ltk8.3
configure:8678: gcc -o conftest -O2    -I/usr/include/ncurses  -s 
-L/usr/local/lib -L/usr/X11R6/lib conftest.c -ltk8.3  -ltcl8.3    1>&5
/usr/local/lib/libtk8.3.a(tkWindow.o)(.text+0x138c):tkWindow.c: 
undefined reference to `_XDestroyWindow'
/usr/local/lib/libtk8.3.a(tkWindow.o)(.text+0x1404):tkWindow.c: 
undefined reference to `_XDestroyIC'
##### another 425 lines of libtk8.3. undefined references follow

-- 
Richard Greenwood
www.greenwoodmap.com




More information about the grass-user mailing list