[vtkusers] [FORGED] Re: Why there is no FindVTK.cmake in CMAKE_MODULE_PATH
David E DeMarle
dave.demarle at kitware.com
Tue Mar 1 10:00:42 EST 2016
Andrew,
If you haven't gotten it configured yet, it is probably best if I just walk
you through it in a v-con. Send me a google hangout, Skype or FaceTime
invitation off off list please. You will need to be able to share your
desktop with me.
cheers
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Sat, Feb 27, 2016 at 4:30 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> 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:
>
>
>
>
> *Nie, Zhengwei Andrew*
> *Ph.D Candidate*
> *Mechanical & Aerospace Engineering*
> *University of Missouri*
> *573-239-6981 <573-239-6981>*
> 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> 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
>
>
>
> _______________________________________________
> 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/20160301/bc002b71/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/20160301/bc002b71/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/20160301/bc002b71/attachment-0003.png>
More information about the vtkusers
mailing list