[vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH
cfd new
newcfd at yahoo.com
Sat Feb 27 15:44:32 EST 2016
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:
#yiv1315562441 #yiv1315562441 -- P {margin-top:0;margin-bottom:0;}#yiv1315562441 Dear David,
I set VTK_DIR as you said. But it still cannot work. Please the screenshot below:
Nie, Zhengwei AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri
573-239-6981znhc5 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> 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/cab37dc5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 116204 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160227/cab37dc5/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 87724 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160227/cab37dc5/attachment-0003.png>
More information about the vtkusers
mailing list