[vtkusers] Error warning when I install the VTK

Nie, Andrew (MU-Student) znhc5 at mail.missouri.edu
Wed Feb 24 12:07:30 EST 2016


Joe,


Yes, I got it. But the new problem I found is that, in my vtk build, the D:\*\*\bin\lib\cmake\vtk-7.0\Modules folder does not have FindVTK.cmake, does not have vtk-config.cmake, and does not have VTKConfig. cmake. Is this situation normal? I built vtk-7.0.0 with VS 2013. Thank you very much.


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: cfd new <newcfd at yahoo.com>
Sent: Wednesday, February 24, 2016 10:25
To: Nie, Andrew (MU-Student)
Subject: Re: [vtkusers] Error warning when I install the VTK

I do not use it. After you find where the file is, go to your example folder and edit CMakeFile.txt  and look at the setting:
   something like: Set(VTK_DIR, ***** )  put the the folder name of the file you find at the place ******.
Then do cmake. If you do not know VS well, try your examples on Linux. It is simpler.

   Joe


On Tuesday, February 23, 2016 7:50 PM, "Nie, Andrew (MU-Student)" <znhc5 at mail.missouri.edu> wrote:


Hi Joe,

Thank you very much. I found the folder you said. But I cannot find where I can set VTK_DIR. I searched it on google. Most of them said that one can set  VTK_DIR on cmake-gui. But I cannot find it out. My cmake-gui is shown below: where can I assign VTK_DIR to that folder? I really appreciate it. I hope I can use VTK as soon as possible.
[cid:3368def8-41af-4d31-b8b1-1a6b95de3dae]

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: cfd new <newcfd at yahoo.com>
Sent: Tuesday, February 23, 2016 20:27
To: Nie, Andrew (MU-Student)
Subject: Re: [vtkusers] Error warning when I install the VTK

if your vtk build is in C:\*\*\VTK-7-release
you can find these files in
VTK-7-release\lib\cmake\vtk-7.0
now you can assign VTK_DIR to this folder

good luck.


On Tuesday, February 23, 2016 4:36 PM, "Nie, Andrew (MU-Student)" <znhc5 at mail.missouri.edu> wrote:


Hi Joe,

Thanks for your replying. But could you tell me how I can set the VTK_DIR variable? I am a newbie of such stuffs absolutely. More details are much better for me. I really appreciate it! I hope I can use VTK as soon as possible.

Thanks,

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: cfd new <newcfd at yahoo.com>
Sent: Saturday, February 20, 2016 20:21
To: Nie, Andrew (MU-Student)
Subject: Re: [vtkusers] Error warning when I install the VTK

after VTK is installed, you do not need cmake anymore. Simply use visual studio to build your project.
cmake is only used to make a VS project for you to compile VTK.

   Joe


On Monday, February 15, 2016 10:57 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
znhc5 at mail.missouri.edu<mailto: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/20160224/0cb7acf7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 77199 bytes
Desc: pastedImage.png
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160224/0cb7acf7/attachment.png>


More information about the vtkusers mailing list