[vtkusers] Error warning when I install the VTK
cfd new
newcfd at yahoo.com
Thu Feb 25 21:37:53 EST 2016
Gotcha. cmake files in your example folder is for Linux. You simply add paths of VTK include and VTK library and library namesin your VS.
You use VS to create a C++ project and load(add) your example files to the project. Then add all VTK settings.Note that create a qt project if you use qt(add qt plugin) at the same time.
On Wednesday, February 24, 2016 10:07 AM, "Nie, Andrew (MU-Student)" <znhc5 at mail.missouri.edu> wrote:
#yiv3530367453 #yiv3530367453 -- P {margin-top:0;margin-bottom:0;}#yiv3530367453 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 AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri
573-239-6981znhc5 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.
Nie, Zhengwei AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri
573-239-6981znhc5 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-releaseyou 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 AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri
573-239-6981znhc5 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 AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of Missouri
573-239-6981znhc5 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/20160226/7999a3c2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 77199 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160226/7999a3c2/attachment.png>
More information about the vtkusers
mailing list