[vtkusers] Building vtk with Tcl/Tk wrapping on cygwin

Amy Squillacote amy.squillacote at kitware.com
Thu Nov 17 08:41:53 EST 2005


At 10:15 PM 11/16/2005, Roger Blum wrote:
>Hello vtk users,
>
>I still am not able to build a current version of vtk (just downloaded it
>from cvs) on cygwin.
>I have installed the Tcl/Tk sources and set the paths in ccmake accordingly:
>
><snippet from CMakeCache.txt>
>
>//What is the path where the file tcl.h can be found
>TCL_INCLUDE_PATH:PATH=/usr/src/tcltk-20030901-1/tcl/generic
>
>//Where can one of the tcl, tcl84, tcl8.4, tcl83, tcl8.3, tcl82,
>// tcl8.2, tcl80 or tcl8.0 libraries be found
>TCL_LIBRARY:FILEPATH=/usr/lib/libtcl.a
>
>//Path to a program.
>TCL_TCLSH:FILEPATH=/usr/bin/tclsh
>
>//What is the path where the file tk.h can be found
>TK_INCLUDE_PATH:PATH=/usr/src/tcltk-20030901-1/tk/generic;/usr/src/tcltk-20030901-1/tcl/generic
>
>//What is the path where the file tkWinInt.h can be found
>TK_INTERNAL_PATH:PATH=/usr/src/tcltk-20030901-1/tk/win
>
>//Where can one of the tk, tk84, tk8.4, tk83, tk8.3, tk82, tk8.2,
>// tk80 or tk8.0 libraries be found
>TK_LIBRARY:FILEPATH=/usr/lib/libtk.a
>
>//What is the path where the file X11/Xlib.h can be found
>TK_XLIB_PATH:PATH=/usr/src/tcltk-20030901-1/tk/xlib
>
><End of snippet>
>
>Nevertheless I get the following error:
>
>/home/Roger/VTK/Rendering/vtkTkRenderWidget.cxx: In function `LRESULT
>vtkTkRenderWidgetProc(HWND__*, UINT, WPARAM, LPARAM)':
>/home/Roger/VTK/Rendering/vtkTkRenderWidget.cxx:796: error: invalid use of
>undefined type `struct _XDisplay'
>/usr/X11R6/include/X11/Xlib.h:289: error: forward declaration of `struct
>_XDisplay'
>
>What am I doing wrong?
>What other options do I have to change?
>Is it possible to get the CMakeCache.txt that is used by Kitware to do the
>nightly build?

Hi Roger,

This link tells you how CMake variables were set on the machine at 
Kitware that builds VTK with Tcl wrapping on cygwin: 
http://www.vtk.org/Testing/Sites/DASH4.kitware/Win32-cygwin331/20051117-0300-Nightly/Notes.html. 
It can be found on the dashboard page by clicking the first link 
beside the build name (Win32-cygwin331, in your case); most machines 
on the dashboard submit these notes.

- Amy

>Or has someone a recent version of vtk that I can download?
>
>Any help is very much apreciated!
>
>Thanks,
>Roger
>
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list