[vtkusers] VTK 4.0 error in vtkTkImageViewerWidget.h

David Gobbi dgobbi at irus.rri.ca
Mon Nov 19 02:11:04 EST 2001


Hi Asad,

The TK_INTERNAL_PATH variable must be set incorrectly in your
CMakeCache.txt, e.g. mine is set to (because I use tcl/tk 8.3)

TK_INTERNAL_PATH:PATH=V:/dgobbi/VTK/Rendering/tkInternals/tk83

If you use tcl/tk 8.2, then the path should be just

TK_INTERNAL_PATH:PATH=V:/dgobbi/VTK/Rendering/tkInternals


Side note: If an include directive uses quotes, then the
current directory is searched first and then the include paths
are searched.

 - David

--
  David Gobbi, MSc                       dgobbi at irus.rri.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Mon, 19 Nov 2001, Asad A. Abu-Tarif wrote:

> Hi,
> I'm one of the VTK 4.0 testers (site: asad.rpi). I've been facing the same
> error
> in every build for the last few days (happening 6 times per build). Here it
> is:
>
> ================error=============================
> D:\vtk4.0\VTK\Rendering\vtkTkImageViewerWidget.h(85) : fatal error C1083:
> Cannot open include file: 'tkWinInt.h': No such file or directory
> vtkTkImageWindowWidget.cxx
> ================error=============================
>
> The file tkWinInt.h is in the directory D:\vtk4.0\VTK\Rendering\tkInternals
> and that directory is specified in CMake.
> The problem is that vtkTkImageViewerWidget.h includes this file with "'
> (#include "tkWinInt.h"), this tells the VC++ compiler to look for it only in
> the current directory. The include statement should be changed to be
> using <> (#include <tkWinInt.h> ) or to (#include "tkinternals\tkWinInt.h").
>
> Am I correct or is it that I'm doing something wrong in the configuration
> that is causing this error?
>
> Thanks,
> Asad
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list