<div dir="ltr"><div><div>Hi Andrew,<br><br></div>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.<br><br></div>hth<br><div><div><br><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Mon, Feb 15, 2016 at 11:24 PM, Nie, Andrew (MU-Student) <span dir="ltr"><<a href="mailto:znhc5@mail.missouri.edu" target="_blank">znhc5@mail.missouri.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Hi there, </span><br>
</p>
<div style="color:rgb(0,0,0)">
<div>
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>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. </p>
<p><br>
</p>
<p>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: </p>
<p><br>
</p>
<p></p>
<p style="margin:1em 0px;padding:0px;border:0px;font-size:12.8px;line-height:19.2px;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;vertical-align:baseline;background-color:rgb(249,248,253)">
<font color="#ff0000">CMake Error at CMakeLists.txt:6 (find_package):<br>
By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has<br>
asked CMake to find a package configuration file provided by "VTK", but<br>
CMake did not find one.</font></p>
<p style="margin:1em 0px;padding:0px;border:0px;font-size:12.8px;line-height:19.2px;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;vertical-align:baseline;background-color:rgb(249,248,253)">
<font color="#ff0000"> Could not find a package configuration file provided by "VTK" with any of<br>
the following names:</font></p>
<p style="margin:1em 0px;padding:0px;border:0px;font-size:12.8px;line-height:19.2px;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;vertical-align:baseline;background-color:rgb(249,248,253)">
<font color="#ff0000"> VTKConfig.cmake<br>
vtk-config.cmake</font></p>
<p style="margin:1em 0px;padding:0px;border:0px;font-size:12.8px;line-height:19.2px;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;vertical-align:baseline;background-color:rgb(249,248,253)">
<font color="#ff0000"> Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"<br>
to a directory containing one of the above files. If "VTK" provides a<br>
separate development package or SDK, be sure it has been installed.</font></p>
<p><br>
</p>
How can I deal with that?
<p></p>
<p>Thank you very much. </p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div style="font-family:Tahoma;font-size:13px">
<div style="line-height:22px">
<div style="margin:0px"><font face="Calibri,sans-serif"><span style="font-size:11pt"><span style="font-size:12pt"><font face="Lucida Calligraphy" color="#003366" size="2"><strong>Nie, Zhengwei Andrew</strong></font></span></span></font></div>
<div style="margin:0px"><font size="2"><font size="2"><span style="font-size:11pt"><span style="font-size:10pt"><i><font face="Times New Roman">Ph.D Candidate</font></i></span></span></font></font></div>
<div style="margin:0px"><font size="2"><font face="Times New Roman,serif" size="2"><span style="font-size:10pt"><i>Mechanical & Aerospace Engineering</i></span></font></font></div>
<div style="margin:0px"><font face="Times New Roman,serif"><span style="font-size:10pt"><span style="font-size:10pt"><em>University of Missouri</em></span></span></font><font face="Times New Roman,serif"><span style="font-size:10pt"><br>
<u><font style="background-color:rgb(255,255,255)" color="#003366"><a href="tel:573-239-6981" value="+15732396981" target="_blank">573-239-6981</a></font></u></span></font></div>
<font face="Times New Roman,serif"></font>
<div style="margin:0px"><a href="mailto:znhc5@mail.missouri.edu" target="_blank"><font face="Times New Roman" color="#003366" size="2">znhc5@mail.missouri.edu</font></a><font size="2"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Times New Roman,serif" size="2"><span style="font-size:10pt"><span style="white-space:pre-wrap"></span></span></font></span></font></font></div>
<font size="2"><font face="Calibri,sans-serif" size="2"><font face="Times New Roman,serif" size="2"></font></font></font></div>
<div style="font-family:"Times New Roman";font-size:16px"><font color="#003366"></font></div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>