[vtkusers] tcl/tk include problem

Server Levent Yilmaz leventyilmaz at gmail.com
Thu Mar 10 13:08:33 EST 2005


Hi, 

I, a newbie, am trying to install VTK on Cygwin with python support
(see footnote for versions). I closely followed the instructions on
README.html and set the correct paths for TK includes and libs with
ccmake. (it was not instructed to set a path for TCL_INCLUDE_PATH, but
I did that regardless...)

However, (eventhough I made sure that I entered the correct paths),
while building of Rendering routines I had "No such file" error:

/home/levent/install/VTK/VTKBuild/Rendering: building default_target
Building dependencies. cmake.depends...
Building object file vtkTkRenderWidgetPython.o...
In file included from /usr/src/tcltk-20030901-1/tk/generic/tkPort.h:27,
                 from /usr/src/tcltk-20030901-1/tk/generic/tkInt.h:27,
                 from /usr/src/tcltk-20030901-1/tk/win/tkWinInt.h:21,
                 from
/home/levent/install/VTK/Rendering/vtkTkRenderWidget.cxx:34,
                 from
/home/levent/install/VTK/Rendering/vtkTkRenderWidgetPython.cxx:20:
/usr/src/tcltk-20030901-1/tk/win/tkWinPort.h:132:20: tclInt.h: No such
file or directory
make[3]: *** [vtkTkRenderWidgetPython.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Rendering] Error 2
make: *** [default_target] Error 2


Well, TCL inludes are neither in the default INCLUDE path (is this the
case with other systems?) nor a part of $INCLUDE_FLAGS in
VTK/VTKBuild/Rendering/Makefile; therefore comes the error.

As a workaround I modified the cmake generated
VTK/VTKBuild/Rendering/Makefile, adding
"-I/usr/src/tcltk-20030901-1/tcl/generic" to $INCLUDE_FLAGS variable.
Probably not a good way to go but it helped and the build completed
successfully.

Is this a general problem or some misconfiguration of my system?

thank you,
- Levent

version info: 
- VTK: source from tarball VTK-4.2-6.tar
- Cygwin DLL: 1.5.13
- Python:  2.3.4
- TCL/Tk source: 20030901-1



More information about the vtkusers mailing list