[vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH

Nie, Andrew (MU-Student) znhc5 at mail.missouri.edu
Sat Feb 27 14:20:53 EST 2016


Dear David,


I set VTK_DIR as you said. But it still cannot work. Please the screenshot below:

[cid:30c615ee-5812-49fb-8285-fad626e80da7]


[cid:3e2062c3-0215-4138-ac42-a5aee933cf6a]


Nie, Zhengwei Andrew
Ph.D Candidate
Mechanical & Aerospace Engineering
University of Missouri
573-239-6981
znhc5 at mail.missouri.edu<mailto:znhc5 at mail.missouri.edu>



________________________________
From: David Gobbi <david.gobbi at gmail.com>
Sent: Friday, February 26, 2016 21:20
To: Nie, Andrew (MU-Student)
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH

CMake needs VTK_DIR to be set (either as an environment variable, or in the CMakeCache.txt file).  This will allow CMake to find VTKConfig.cmake.  There is no FindVTK.cmake file.

VTK_DIR=C:/MyVTKProject/VTK-7.0.0/VTK-bin

Packages that have a XYZConfig.cmake file do not have a FindXYZ.cmake file.  The CMake error message doesn't explain this very well, unfortunately.

 - David

On Fri, Feb 26, 2016 at 7:35 PM, Nie, Andrew (MU-Student) <znhc5 at mail.missouri.edu<mailto:znhc5 at mail.missouri.edu>> wrote:

Hi there,


I used CMake 3.5.0 and VS 2013 to build VTK 7.0.0. Why there is no FindVTK.cmake in C:\MyVTKProjects\VTK-7.0.0\VTK-bin\lib\cmake\vtk-7.0\Modules. All of examples of VTK cannot work because no FindVTK.cmake.


CMake Error at CMakeLists.txt:6 (find_package):
  By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "VTK", but
  CMake did not find one.
  Could not find a package configuration file provided by "VTK" with any of
  the following names:
    VTKConfig.cmake
    vtk-config.cmake
  Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
  to a directory containing one of the above files.  If "VTK" provides a
  separate development package or SDK, be sure it has been installed.

How can I deal with this problem? Really appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160227/d05b9973/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 87724 bytes
Desc: pastedImage.png
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160227/d05b9973/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 116204 bytes
Desc: pastedImage.png
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160227/d05b9973/attachment-0003.png>


More information about the vtkusers mailing list