[GRASS5] 5.3 Cygwin, Tcl/Tk, NVIZ
Richard Greenwood
rich at greenwoodmap.com
Sat Mar 6 15:13:14 EST 2004
Glynn Clements wrote:
> Richard Greenwood wrote:
>
>
>>A couple things, neither is good news.
>>
>>1. Building 5.3 under Cygwin was successful with the 2004_01_03
>>snapshot, however the 2004_01_10 and 2004_02_28 snapshots both fail in
>>configure as follows:
>>
>>checking whether to use Tcl/Tk... yes
>>checking for location of Tcl/Tk includes...
>>checking for tcl.h... yes
>>checking for tk.h... yes
>>checking Tcl version... 8.3
>>checking Tk version... 8.3
>>checking for location of Tcl/Tk library... /usr/local/lib/tcl8.3
>>checking for Tcl_Init in -ltcl... no
>>checking for Tcl_Init in -ltcl... no
>>checking for Tcl_Init in -ltcl8.3... no
>>checking for Tcl_Init in -ltcl8.3... no
>>checking for Tcl_Init in -ltcl83... no
>>checking for Tcl_Init in -ltcl83... no
>>configure: error: *** Unable to locate Tcl library.
>>
>>Is it possible that something changed in the 5.3 source between
>>January 3 and 10 that would cause this?
>
>
> There were two changes to configure[.in] between those dates:
>
> revision 1.120
> date: 2004/01/09 19:57:05; author: glynn; state: Exp; lines: +3 -4
> Don't generate makefiles in configure script
> Only (re)build makefiles when necessary
> ----------------------------
> revision 1.119
> date: 2004/01/05 10:26:25; author: paul; state: Exp; lines: +46 -5
> (1) Experimental shared libary support (--enable-gmake=no --enable-shared=yes)
> (2) --with-gdal is now the default
> (3) startup script now called grass53 (NAME_VER=53)
> (4) Set LD_LIBRARY_PATH properly in Init.sh
>
> However, neither of these directly touched the Tcl/Tk checks.
>
> Look for the corresponding error messages in config.log.
Here are the last couple dozen lines of my configure.log from the
2004_02_28 snapshot.
int main() {
Tcl_Init()
; return 0; }
configure:8016: checking for Tcl_Init in -ltcl83
configure:8033: gcc -o conftest -O2 -I/usr/include/ncurses
-L/usr/local/lib/tcl8.3 -Wl,--export-dynamic conftest.c -ltcl83 1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
cannot find -ltcl83
collect2: ld returned 1 exit status
configure: failed program was:
#line 8022 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char Tcl_Init();
int main() {
Tcl_Init()
; return 0; }
configure:8052: checking for Tcl_Init in -ltcl83
configure:8069: gcc -o conftest -O2 -I/usr/include/ncurses
-L/usr/local/lib/tcl8.3 -Wl,--export-dynamic conftest.c -ltcl83 1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld:
cannot find -ltcl83
collect2: ld returned 1 exit status
configure: failed program was:
#line 8058 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char Tcl_Init();
int main() {
Tcl_Init()
; return 0; }
>>Although 5.3 did build, when running the Tck/Tk interface, I am unable
>>to close any of the dialog boxes. I do not consider it to run well
>>enough to be worth distributing, but Michael Barton had expressed
>>interest in a 5.3 binary distribution, and I am happy to make it
>>available if he or anyone else would like it.
>
>
> Which window manager are you using? twm doesn't put a "close" button
> in the title bar; you have to select "Kill" from the root menu then
> click on a window. This probably won't work with a rootless X server.
Well I wasn't using any windows manager. I was simply starting XWin.exe
and running a text mode Bash shell. So the X windows appear as standard
looking Microsoft Windows with 3 buttons on the left side of the title
bar, but 'X' having no effect when clicked.
However I launched twm, then GRASS from within twm, and as you said,
there is no kill button. But when I exited twm and re-ran GRASS from the
text mode Bash shell, the 'X' button was functional. So I need to
investigate this further on my end.
>>2. I have tried Glynn?s Cygwin NVWISH2.2 dated 3/3/2004 under both 5.0.3
>>and 5.3. Three panels open momentarily before the error pasted at the
>>bottom of this email. Comparing my Cygwin configuration with Glynn?s, a
>>notable difference is that I am using Xfree 4.3 while Glynn has 4.2 and
>>I have not been able to find 4.2 binary installations files to test with.
>>
>>A couple very general comments: Until recently I have always run GRASS
>>under Cygwin from the command prompt, rather than Tcl/Tk (and I have
>>only run Nviz under Linux). From the command prompt GRASS has run
>>entirely reliably and given me very good service, but these Tcl/Tk
>>problems are beyond my current ability to contribute much assistance with.
>>
>>==== 3/3/2004 NVWISH2.2 error message ====
>>
>>Error in startup script: integer value too large to represent
>> while executing
>>"expr int([lindex $range 0])"
>> (procedure "mkcutplanePanel" line 55)
>> invoked from within
>
>
> This suggests that GS_get_zrange_nz() is returning garbage, possibly
> because it can't find a surface.
>
> It could be related to the X server, possibly to its GLX support. Can
> you run the "glxinfo" and "glxgears" programs?
glxgears runs correctly. Following is the output from glxinfo:
name of display: 127.0.0.1:0.0
display: 127.0.0.1:0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x22 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x23 16 tc 1 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 None
0x24 16 tc 1 16 0 r y . 5 6 5 8 0 16 8 16 16 16 16 0 0 None
0x25 16 tc 1 16 0 r . . 5 6 5 8 0 16 8 16 16 16 16 0 0 None
--
Richard Greenwood
www.greenwoodmap.com
More information about the grass-dev
mailing list