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

Gib Bogle g.bogle at auckland.ac.nz
Sat Feb 27 16:30:40 EST 2016


Hi Andrew,

I use VTK and cmake on Windows.  I have VTK installed thus:
C:\VTK-VS10
C:\VTK-VS10\bin
C:\VTK-VS10\include
C:\VTK-VS10\lib
and I have set VTK_DIR as an environment variable:
C:\VTK-VS10
i.e. as the directory under which the bin, include and lib subdirectories are to be found.
Setting VTK_DIR in CMakeLists.txt in my case would be
SET(VTK_DIR C:/VTK-VS10)
For my money, cmake is the best way to set up the VS project files.

Cheers, Gib

________________________________
From: vtkusers [vtkusers-bounces at vtk.org] on behalf of cfd new via vtkusers [vtkusers at vtk.org]
Sent: Sunday, 28 February 2016 9:44 a.m.
To: Nie, Andrew (MU-Student); David Gobbi
Cc: vtkusers at vtk.org
Subject: [FORGED] Re: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH

This is what I said. In your vtk build, these files are not there on Windows. On Linux they are available.
On Windows, you do not need cmake for build the examples. I do not use cmake in my VS applications either.

   Joe


On Saturday, February 27, 2016 12:20 PM, "Nie, Andrew (MU-Student)" <znhc5 at mail.missouri.edu> wrote:


Dear David,

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

[cid:SHWZUmizJ2wbgPOlj0og]

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.


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160227/d07bc11d/attachment-0001.html>
-------------- 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/d07bc11d/attachment-0002.png>
-------------- 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/d07bc11d/attachment-0003.png>


More information about the vtkusers mailing list