[vtkusers] Error running vtk.exe ( Tcl/Tk Wrapper Cygwin Win98 Second Edition )

Ullal Devappa Kini wmbfqj at vsnl.net
Sat May 17 12:06:45 EDT 2003


Hi!

I am seeking help due to the following reason:

VTK-4.2.2  ( Release Version )
Windows 98 ( Second Edition )
Pentium III Processor
Cygwin     ( Version 1.3.18 ) ( i686-pc-cygwin Platform )
XFree86    ( Version 4.2.0 )
gcc        ( Version 3.2 )
Tcl/Tk     ( Version 8.4 )

Brief Description ( Details given later )
-----------------------------------------
VTK is built in the source directory /usr/src/VTK-4.2.2 so that executables
are in /usr/src/VTK-4.2.2/bin. Test executables are all run and they seem
to be generally okay. The CmakeCache.txt is attached.

Problem:

(1) When vtk.exe is run, I get the error

       "Can't find a usable init.tcl in the following directories:

       ( A list of a number of directories )

       This probably means that Tcl wasn't installed properly."

    But I find that init.tcl is present in /usr/share/tcl8.4.

(2) I copy init.tcl into /usr/src/VTK-4.2.2/share/tcl8.4 and again run
    vtk.exe from the bin directory. This time I receive the error:

      `Application initialization failed.

      invalid command line "tcl_findLibrary" '

When I press the OK button, a wish widget appears but is blank.

The problem persists after make install has installed the programs under
/usr/local/vtk. I cd to /usr/local/vtk/bin and run ./vtk.exe
I again receive error that init.tcl cannot be found. I copy init.tcl to 
/usr/local/vtk/share/tcl8.4
When I run ./vtk again. I receive the second error about tcl_findLibrary.


I thank you in advance

U.D.Kini
=======================================================================

Details
-------
VTK was built in the directory /usr/src/VTK-4.2.2 using the default
values presented by ccmake except for the following changes:

(1) Installation prefix is changed to /usr/local/vtk
(2) All the CMAKE_CXX_FLAGS and CMAKE_C_FLAGS are edited to contain

 -Wno-deprecated -DUSE_NON_CONST -DUSE_COMPOSITELESS_PHOTO_PUT_BLOCK

    to avoid warnings caused by the use of old headers and also because we
    have the release build being compiled under Tcl/Tk Version 8.4
(3) BUILD_VTK_EXAMPLES is set to ON
(4) VTK_DATA_ROOT is defined as /usr/src/VTKData-release-4-2
(5) VTK_USE_PATENTED is set to ON
(6) VTK_WRAP_TCL is set to ON

This also requires the following definitions to be incorporated:

(6a) TK_INCLUDE_PATH /usr/src/tcltk-20001125-1/tk/generic/
(6b) TK_INTERNAL_PATH /usr/src/tcltk-20001125-1/tk/win/
(6c) TK_XLIB_PATH /usr/src/tcltk-20001125-1/tk/xlib
(6d) TCL_INCLUDE_PATH /usr/src/tcltk/tcl/generic
     This is because all Tcl headers are not included in the
     tcltk binary distribution.

At the end of make, the bin directory looks like this:
-----------------------------------------------------
VTKWRA~1 EXE        82,628  05-17-03 12:34p vtkWrapTcl.exe
LIBVTK~1 A          72,862  05-17-03 12:34p libvtkzlib.a
LIBVTK~2 A         172,408  05-17-03 12:35p libvtkjpeg.a
LIBVTK~3 A         186,618  05-17-03 12:36p libvtkpng.a
MKG3ST~1 EXE        27,463  05-17-03 12:36p mkg3states.exe
LIBVTK~4 A         367,402  05-17-03 12:39p libvtktiff.a
LIBVTK~5 A         196,474  05-17-03 12:39p libvtkexpat.a
LIBVTK~6 A         413,196  05-17-03 12:40p libvtkfreetype.a
LIBVTK~7 A          78,650  05-17-03 12:41p libvtkftgl.a
LIBVTK~8 A       5,082,014  05-17-03  1:11p libvtkCommon.a
LIBVTK~9 A       1,837,916  05-17-03  1:26p libvtkCommonTCL.a
LIBVT~10 A       1,913,108  05-17-03  1:39p libvtkFiltering.a
LIBVT~11 A         463,086  05-17-03  1:46p libvtkFilteringTCL.a
LIBVT~12 A       7,772,866  05-17-03  2:21p libvtkImaging.a
LIBVT~13 A       1,036,002  05-17-03  2:36p libvtkImagingTCL.a
LIBVT~14 A       9,315,742  05-17-03  5:21p libvtkGraphics.a
LIBVT~15 A       1,752,910  05-17-03  5:48p libvtkGraphicsTCL.a
LIBVTKIO A       7,285,464  05-17-03  6:17p libvtkIO.a
LIBVT~16 A         863,684  05-17-03  6:31p libvtkIOTCL.a
LIBVT~17 A       6,439,122  05-17-03  7:07p libvtkRendering.a
LIBVT~18 A       1,407,440  05-17-03  7:22p libvtkRenderingTCL.a
LIBVT~19 A       1,367,810  05-17-03  7:35p libvtkPatented.a
LIBVT~20 A         169,820  05-17-03  7:40p libvtkPatentedTCL.a
VTK      EXE    21,577,671  05-17-03  7:43p vtk.exe
COMMON~1 EXE     2,531,939  05-17-03  7:49p CommonCxxTests.exe
TESTCX~1 EXE       455,725  05-17-03  7:49p TestCxxFeatures.exe
TESTIN~1 EXE     2,746,795  05-17-03  7:49p TestInstantiator.exe
FILTER~1 EXE     1,232,855  05-17-03  7:50p FilteringCxxTests.exe
GRAPHI~1 EXE     5,197,286  05-17-03  7:54p GraphicsCxxTests.exe
IMAGIN~1 EXE     5,971,544  05-17-03  7:55p ImagingCxxTests.exe
IOCXXT~1 EXE     1,332,513  05-17-03  7:55p IOCxxTests.exe
RENDER~1 EXE     3,743,774  05-17-03  7:56p RenderingCxxTests.exe
TIMERE~1 EXE     3,822,358  05-17-03  7:57p TimeRenderer.exe
TIMERE~2 EXE     3,794,302  05-17-03  7:57p TimeRenderer2.exe
-------------------------------------------

cd bin

Run tests. The tests run without error except for Test 6 (volProt) in
---------
GraphicsCxxTests.exe. The  error message is that the file
Data/ironProt.vtk could not be found ( I checked that this file exists in
the /usr/src/VTKData-release-4-2/Data directory ). Is this a bug?

While running GraphicsCxxTests.exe as well as some of the other tests in the
bin directory, a widget appears, the object is seen for a split second and
the widget vanishes. Is this normal?

( TimeRenderer.exe and TimeRenderer2.exe show animation for a few seconds
and then the widgets disappear; this seems alright. )


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030517/f3a35621/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmakecache.txt.gz
Type: application/octet-stream
Size: 5824 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030517/f3a35621/attachment.obj>


More information about the vtkusers mailing list