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

List:       vtkusers
Subject:    Re: [vtkusers] [FORGED] Re: Why there is no FindVTK.cmake in CMAKE_MODULE_PATH
From:       Gib Bogle <g.bogle () auckland ! ac ! nz>
Date:       2016-02-27 21:30:40
Message-ID: BD80F91C3E2E394894ED4780703D7F9EDBAB0018 () uxcn10-6 ! UoA ! auckland ! ac ! nz
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Andrew,

I use VTK and cmake on Windows.  I have VTK installed thus:
C:\VTK-VS10
C:\VTK-VS10\bin
C:\VTK-VS10\include
C:\VTK-VS10\lib
and I have set VTK_DIR as an environment variable:
C:\VTK-VS10
i.e. as the directory under which the bin, include and lib subdirectories are to be \
found. Setting VTK_DIR in CMakeLists.txt in my case would be
SET(VTK_DIR C:/VTK-VS10)
For my money, cmake is the best way to set up the VS project files.

Cheers, Gib

________________________________
From: vtkusers [vtkusers-bounces@vtk.org] on behalf of cfd new via vtkusers \
                [vtkusers@vtk.org]
Sent: Sunday, 28 February 2016 9:44 a.m.
To: Nie, Andrew (MU-Student); David Gobbi
Cc: vtkusers@vtk.org
Subject: [FORGED] Re: [vtkusers] Why there is no FindVTK.cmake in CMAKE_MODULE_PATH

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:


Dear David,

I set VTK_DIR as you said. But it still cannot work. Please the screenshot below:
[cid:LpWkbdTe2Ysh8R37JZRR]

[cid:SHWZUmizJ2wbgPOlj0og]

Nie, Zhengwei Andrew
Ph.D Candidate
Mechanical & Aerospace Engineering
University of Missouri
573-239-6981
znhc5@mail.missouri.edu<mailto:znhc5@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<mailto: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 dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css"></style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi \
Andrew,<br> <br>
I use VTK and cmake on Windows.&nbsp; I have VTK installed thus:<br>
C:\VTK-VS10<br>
C:\VTK-VS10\bin<br>
C:\VTK-VS10\include<br>
C:\VTK-VS10\lib<br>
and I have set VTK_DIR as an environment variable:<br>
C:\VTK-VS10<br>
i.e. as the directory under which the bin, include and lib subdirectories are to be \
found.<br> Setting VTK_DIR in CMakeLists.txt in my case would be<br>
SET(VTK_DIR C:/VTK-VS10)<br>
For my money, cmake is the best way to set up the VS project files.<br>
<br>
Cheers, Gib<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF372046"><font face="Tahoma" color="#000000" \
size="2"><b>From:</b> vtkusers [vtkusers-bounces@vtk.org] on behalf of cfd new via \
vtkusers [vtkusers@vtk.org]<br> <b>Sent:</b> Sunday, 28 February 2016 9:44 a.m.<br>
<b>To:</b> Nie, Andrew (MU-Student); David Gobbi<br>
<b>Cc:</b> vtkusers@vtk.org<br>
<b>Subject:</b> [FORGED] Re: [vtkusers] Why there is no FindVTK.cmake in \
CMAKE_MODULE_PATH<br> </font><br>
</div>
<div></div>
<div>
<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 class="yahoo_quoted" style="display:block">
<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, &quot;Nie, Andrew \
(MU-Student)&quot; &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}
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P \
{margin-top:0;margin-bottom:0;}BODY \
{scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshad \
ow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</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" src="cid:LpWkbdTe2Ysh8R37JZRR" \
style="max-width:99.9%"><br clear="none"> </div>
<div><br clear="none">
</div>
<div><img id="yiv1315562441img247271" src="cid:SHWZUmizJ2wbgPOlj0og" \
style="max-width:99.9%"><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" 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 \
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" \
href="mailto:znhc5@mail.missouri.edu" \
target="_blank">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 &quot;FindVTK.cmake&quot; 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 &quot;VTK&quot;, 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 &quot;VTK&quot; 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 &quot;VTK&quot; to \
CMAKE_PREFIX_PATH or set &quot;VTK_DIR&quot;</font><font color="red"><br \
clear="none"> &nbsp; to a directory containing one of the above files.&nbsp; If \
&quot;VTK&quot; 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>
</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

--===============0523407378==--

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

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