[vtkusers] Newbie: compiling Cone1.cxx using installed VTK

Obada Mahdi omahdi at gmx.de
Thu Nov 23 14:50:27 EST 2006


Hello Robert!

What you describe might be related to

http://public.kitware.com/pipermail/vtkusers/2006-November/087983.html

Could you try the suggestions from that message, i.e., move some files
around, or try a patch from the quoted bug tracker entry?  I thought
that problem was fixed in CVS, but maybe that was with ITK, which had
similar issues with the CMake installation procedure.

On 11/23/06, Atwood, Robert C <r.atwood at imperial.ac.uk> wrote:
[regarding the value of VTK_DIR in a simple scenario]
> Since my installation is not VTK 4.0, my interpretation of the help
> string is that the value of this option should be PREFIX/lib/vtk or
> actually PREFIX/lib/vtk-5.1 as this is the location of the file
> VTKConfig.cmake.

You are absolutely right--the fact that the file is reported missing
is probably a result of an inconsistency in the installation procedure
(which causes "UseVTK.cmake" and others to wind up in the
"CMAKE_INSTALL_PREFIX/include/vtk-<version>" instead, see referenced
message from the archive).

[pointing "VTK_DIR" to "CMAKE_INSTALL_PREFIX/include/vtk-5.1"]
>  CMake Error: Error in cmake code at
>  /usr/local/share/cmake-2.4/Modules/UseVTKConfig40.cmake:21:
>  LOAD_CACHE Cannot load cache file from
>  /usr/local/include/vtk-5.1/CMakeCache.txt
[...]

I am not sure about this one.  Somehow looks like if the fact that
"VTKConfig.cmake" is not present in that (actually wrong) VTK_DIR
causes CMake to resolve to a module for an older VTK version (4.0?),
which was installed with CMake.


HTH,

Obada



More information about the vtkusers mailing list