[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    Re: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH
From:       cfd new via vtkusers <vtkusers () vtk ! org>
Date:       2016-02-27 20:44:32
Message-ID: 1680170787.275345.1456605872549.JavaMail.yahoo () mail ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@mail.missouri.edu> wrote:  

 #yiv1315562441 #yiv1315562441 -- P {margin-top:0;margin-bottom:0;}#yiv1315562441 \
Dear David, I set VTK_DIR as you said. But it still cannot work. Please the \
screenshot below:



Nie, Zhengwei AndrewPh.D CandidateMechanical & Aerospace EngineeringUniversity of \
Missouri 573-239-6981znhc5@mail.missouri.edu


From: David Gobbi <david.gobbi@gmail.com>
Sent: Friday, February 26, 2016 21:20
To: Nie, Andrew (MU-Student)
Cc: vtkusers@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@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


  


[Attachment #5 (text/html)]

<html><head></head><body><div style="color:#000; background-color:#fff; \
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif;font-size:16px"><div id="yui_3_16_0_1_1456601267743_12697"><span>This is \
what I said. In your vtk build, these files are not there on Windows. On Linux they \
are available.</span></div><div id="yui_3_16_0_1_1456601267743_12699"><span \
id="yui_3_16_0_1_1456601267743_12850">On Windows, you do not need cmake for build the \
examples. I do not use cmake in my VS applications \
either.</span></div><div><br><span></span></div><div><span>&nbsp;&nbsp; \
Joe<br></span></div><div class="qtdSeparateBR"><br><br></div><div style="display: \
block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div \
style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On \
Saturday, February 27, 2016 12:20 PM, "Nie, Andrew (MU-Student)" \
&lt;znhc5@mail.missouri.edu&gt; wrote:<br></font></div>  <br><br> <div \
class="y_msg_container"><div id="yiv1315562441"><style type="text/css">#yiv1315562441 \
#yiv1315562441 -- P {margin-top:0;margin-bottom:0;}#yiv1315562441 </style><div \
dir="ltr"> <div id="yiv1315562441divtagdefaultwrapper" \
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri, \
Arial, Helvetica, sans-serif;"> <div>Dear David,</div>
<div><br clear="none">
</div>
<div>I set VTK_DIR as you said. But it still cannot work. Please the screenshot \
below:</div> <div><img id="yiv1315562441img628849" style="max-width:99.9%;" \
src="cid:LpWkbdTe2Ysh8R37JZRR"><br clear="none"> </div>
<div><br clear="none">
</div>
<div><img id="yiv1315562441img247271" style="max-width:99.9%;" \
src="cid:SHWZUmizJ2wbgPOlj0og"><br clear="none"> </div>
<div><br clear="none">
</div>
<div id="yiv1315562441Signature">
<div style="font-family:Calibri, Arial, Helvetica, sans-serif;margin:0;">
<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 &amp; 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 clear="none"> <u><font \
style="background-color:rgb(255,255,255);" \
color="#003366">573-239-6981</font></u></span></font></div> <font face="Times New \
Roman,serif"></font> <div style="margin:0px;"><a rel="nofollow" shape="rect" \
tabindex="0" id="yiv1315562441LPNoLP" ymailto="mailto:znhc5@mail.missouri.edu" \
target="_blank" href="mailto:znhc5@mail.missouri.edu"><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 \
class="yiv1315562441Apple-tab-span" \
style="white-space:pre;"></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 \
color="#003366"></font></div> <br class="yiv1315562441Apple-interchange-newline" \
clear="none"> </div>
</div>
</div>
<br clear="none">
<br clear="none">
<div class="yiv1315562441yqt6819686520" id="yiv1315562441yqt88544"><div \
style="color:rgb(0, 0, 0);"> <hr tabindex="-1" \
style="display:inline-block;width:98%;"> <div dir="ltr" \
id="yiv1315562441divRplyFwdMsg"><font style="font-size:11pt;" face="Calibri, \
sans-serif" color="#000000"><b>From:</b> David Gobbi &lt;david.gobbi@gmail.com&gt;<br \
clear="none"> <b>Sent:</b> Friday, February 26, 2016 21:20<br clear="none">
<b>To:</b> Nie, Andrew (MU-Student)<br clear="none">
<b>Cc:</b> vtkusers@vtk.org<br clear="none">
<b>Subject:</b> Re: [vtkusers] Why there is no FindVTK.cmake in \
CMAKE_MODULE_PATH</font> <div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div>CMake needs VTK_DIR to be set (either as an environment variable, or in the \
CMakeCache.txt file).&nbsp; This will allow CMake to find VTKConfig.cmake.&nbsp; \
There is no FindVTK.cmake file.</div> <div><br clear="none">
</div>
<div>VTK_DIR=C:/MyVTKProject/VTK-7.0.0/VTK-bin</div>
<div><br clear="none">
</div>
<div>Packages that have a XYZConfig.cmake file do not have a FindXYZ.cmake \
file.&nbsp; The CMake error message doesn't explain this very well, unfortunately.<br \
clear="none"> </div>
<div><br clear="none">
</div>
<div>&nbsp;- David</div>
<div class="yiv1315562441gmail_extra"><br clear="none">
<div class="yiv1315562441gmail_quote">On Fri, Feb 26, 2016 at 7:35 PM, Nie, Andrew \
(MU-Student) <span dir="ltr">&lt;<a rel="nofollow" shape="rect" \
ymailto="mailto:znhc5@mail.missouri.edu" target="_blank" \
href="mailto:znhc5@mail.missouri.edu">znhc5@mail.missouri.edu</a>&gt;</span> \
wrote:<br clear="none"> <blockquote class="yiv1315562441gmail_quote" \
style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">
 <div dir="ltr">
<div style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri, Arial, Helvetica, \
sans-serif;background-color:rgb(255,255,255);"> <div>Hi there,</div>
<div><br clear="none">
</div>
<div>I used CMake 3.5.0 and VS 2013 to build VTK 7.0.0. Why there is no FindVTK.cmake \
in&nbsp;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.&nbsp;</div> <div><br clear="none">
</div>
<div></div>
<div style="font-family:'Helvetica Neue', Helvetica, Arial, \
sans-serif;font-size:12.79px;margin:1em 0px;padding:0px;border-width:0px;"> <font \
face="Helvetica Neue,Helvetica,Arial,sans-serif"><font color="red">CMake Error at \
CMakeLists.txt:6 (find_package):</font><font color="red"><br clear="none"> &nbsp; By \
not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has</font><font \
color="red"><br clear="none"> &nbsp; asked CMake to find a package configuration file \
provided by "VTK", but</font><font color="red"><br clear="none"> &nbsp; CMake did not \
find one.</font></font></div> <div style="font-family:'Helvetica Neue', Helvetica, \
Arial, sans-serif;font-size:12.79px;margin:1em 0px;padding:0px;border-width:0px;"> \
<font face="Helvetica Neue,Helvetica,Arial,sans-serif"><font color="red">&nbsp; Could \
not find a package configuration file provided by "VTK" with any of</font><font \
color="red"><br clear="none"> &nbsp; the following names:</font></font></div>
<div style="font-family:'Helvetica Neue', Helvetica, Arial, \
sans-serif;font-size:12.79px;margin:1em 0px;padding:0px;border-width:0px;"> <font \
face="Helvetica Neue,Helvetica,Arial,sans-serif"><font color="red">&nbsp; &nbsp; \
VTKConfig.cmake</font><font color="red"><br clear="none"> &nbsp; &nbsp; \
vtk-config.cmake</font></font></div> <div style="font-family:'Helvetica Neue', \
Helvetica, Arial, sans-serif;font-size:12.79px;margin:1em \
0px;padding:0px;border-width:0px;"> <font face="Helvetica \
Neue,Helvetica,Arial,sans-serif"><font color="red">&nbsp; Add the installation prefix \
of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"</font><font color="red"><br \
clear="none"> &nbsp; to a directory containing one of the above files.&nbsp; If "VTK" \
provides a</font><font color="red"><br clear="none"> &nbsp; separate development \
package or SDK, be sure it has been installed.</font></font></div> <div></div>
<div>How can I deal with this problem? Really appreciated.&nbsp;</div>
</div>
</div>
</blockquote>
</div>
<br clear="none">
</div>
</div>
</div>
</div></div>
</div>
</div></div><br><div class="yqt6819686520" \
id="yqt67846">_______________________________________________<br clear="none">Powered \
by www.kitware.com<br clear="none"><br clear="none">Visit other Kitware open-source \
projects at <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br \
clear="none"><br clear="none">Please keep messages on-topic and check the VTK FAQ at: \
<a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" \
target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none"><br \
clear="none">Search the list archives at: <a shape="rect" \
href="http://markmail.org/search/?q=vtkusers" \
target="_blank">http://markmail.org/search/?q=vtkusers</a><br clear="none"><br \
clear="none">Follow this link to subscribe/unsubscribe:<br clear="none"><a \
shape="rect" href="http://public.kitware.com/mailman/listinfo/vtkusers" \
target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br \
clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>


["pastedImage.png" (image/png)]
["pastedImage.png" (image/png)]

_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic