[vtkusers] Error warning when I install the VTK

David E DeMarle dave.demarle at kitware.com
Mon Feb 22 09:13:06 EST 2016


Hi Andrew,

When cmake is configuring the build for the example it doesn't know where
to find VTK. In cmake-gui, you can tell it where to look by filling in the
VTK_DIR variable. Alternatively you can build the INSTALL target of the VTK
solution, which will put the VTK headers and libraries into a standard
location where the example should find it automatically.

hth



David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Mon, Feb 15, 2016 at 11:24 PM, Nie, Andrew (MU-Student) <
znhc5 at mail.missouri.edu> wrote:

> Hi there,
>
>
> This is Andrew Nie, a Ph.D student at University of Missouri. I have to
> use the VTK to reconstruct the 3D model. Now I am installing the VTK. But
> there is an error when I test an example that the website provides.
>
>
> My OS is Windows 7 Ultimate, and VS version is VS 2015. First of all, I
> downloaded the VTK 7.0.0 and CMake 3.5.0. I used CMake to build the
> binaries. It was no errors. After then I used VS 2015 to build them
> successfully. It seems like I have installed the VTK 7.0.0. Finally, when I
> compile examples, there was an error warning. It is shown in below:
>
>
> 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 that?
>
> Thank you very much.
>
>
> *Nie, Zhengwei Andrew*
> *Ph.D Candidate*
> *Mechanical & Aerospace Engineering*
> *University of Missouri*
> *573-239-6981 <573-239-6981>*
> znhc5 at mail.missouri.edu
>
>
> _______________________________________________
> 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/20160222/73be77f0/attachment.html>


More information about the vtkusers mailing list