[vtkusers] problems running vtk.exe under Cygwin 1.5.12-1

Marcel Jackowski mjack at noodle.med.yale.edu
Sat Dec 4 11:01:39 EST 2004


Hi everyone,

I have successfully built VTK 4.2.6 on Cygwin 1.5.12-1 with Tcl 
wrapping enabled into my home directory /home/mjack/VTK. After that, I 
issued a 'make install', so that I have the installation files under 
/usr/local/vtk4.2.

I have set:
export TCLLIBPATH=$TCLLIBPATH:/home/mjack/VTK/Wrapping/Tcl
export PATH=$PATH:/usr/local/vtk4.2/bin:/usr/local/vtk4.2/lib/vtk

When I try running vtk.exe from the installation directory, I get the 
message: "vtk.exe - Application Error, The application failed to 
initialize properly (0xc000002)."

When I try running vtk.exe from /mjack/VTK/bin directory, it gives yet
another message: "Can't find a usable init.tcl in the following
directories:  C:/cygwin/share/tcl8.4 ... "

However, if I run wish, and do a "package require vtk", it works, and I 
can instantiate any VTK class, and so I can also run wish with any 
Tcl VTK example.

I am using CMake 1.6.7 and Cygwin 1.5.12-1 on Windows XP SP2. These are my 
Tcl/Tk settings for the build:

OPENGL_INCLUDE_DIR               /usr/include/w32api
OPENGL_gl_LIBRARY                /lib/w32api/libopengl32.a
OPENGL_glu_LIBRARY               /lib/w32api/libglu32.a
TCL_INCLUDE_PATH                 /usr/src/tcltk-20030901-1/tcl/generic
TCL_LIBRARY                      /usr/lib/libtcl.a
TCL_TCLSH                        /usr/bin/tclsh
TK_INCLUDE_PATH                  /usr/src/tcltk-20030901-1/tk/generic
TK_INTERNAL_PATH                 /usr/src/tcltk-20030901-1/tk/win
TK_LIBRARY                       /usr/lib/libtk.a
TK_XLIB_PATH                     /usr/src/tcltk-20030901-1/tk/xlib
  
Can anyone tell me why I get the errors above when running vtk.exe ? 

I would appreciate any help.

Marcel.




More information about the vtkusers mailing list