<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Sorry about replying to my own question...<br>
<br>
I have discovered that uncommenting these previously commented lines in CMakeLists.txt allows the build to complete on the laptop:<br>
<br>
<span style=" color:#808000;">IF</span>(NOT<span style=" color:#c0c0c0;"> </span>
VTK_BINARY_DIR)
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">FIND_PACKAGE</span>(VTK)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">IF</span>(NOT<span style=" color:#c0c0c0;"> </span>VTK_DIR)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#808000;">MESSAGE</span>(FATAL_ERROR<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">&quot;Please</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">set</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">VTK_DIR.&quot;</span>)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">ENDIF</span>(NOT<span style=" color:#c0c0c0;"> </span>VTK_DIR)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">INCLUDE</span>(<span style=" color:#800000;">${VTK_USE_FILE}</span>)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">ENDIF</span>(NOT<span style=" color:#c0c0c0;"> </span>VTK_BINARY_DIR)<br><br><font face="Arial">I have no idea why these lines are necessary on one computer but not on another.<br></font></pre>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF130488"><font color="#000000" face="Tahoma" size="2"><b>From:</b> vtkusers-bounces@vtk.org [vtkusers-bounces@vtk.org] on behalf of Gib Bogle [g.bogle@auckland.ac.nz]<br>
<b>Sent:</b> Sunday, 8 December 2013 7:13 a.m.<br>
<b>To:</b> vtkusers@vtk.org<br>
<b>Subject:</b> [vtkusers] Odd Qt-ITK-VTK situation<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">This problem involves VTK in a peculiar way.&nbsp; I have a Qt&#43;ITK application that I build 64-bit with MSVC2010 on Windows 7.&nbsp; The build is successful on two PCs, but fails on a laptop.&nbsp;
 The error message is:<br>
LINK1181: cannot open input file 'vtkCommon.lib'<br>
<br>
The program does not use VTK, and nowhere in CMakeLists.txt is VTK mentioned.&nbsp; In addition, I have ensured that the path to the 64-bit VTK libraries is in the PATH list.<br>
<br>
As far as I can see the build conditions on the different machines are the same - same compiler, same ITK build, same Qt64 build, same QtCreator version - but there is a difference in what I see in QtCreator that may have significance.&nbsp; On a PC that is successful
 in building the program, under the project name in the project directory I see CMakeLists.txt, a directory named &quot;Project Files&quot; with a subdirectory &quot;ITK&quot;, and the source code files.&nbsp; On the laptop I see CMakeLists.txt, two directories, &quot;CMake 2.8&quot; and &quot;ITK&quot;,
 and the source files.&nbsp; I do not understand why &quot;CMake 2.8&quot; turns up in the project directory on the laptop but not on the PC.<br>
<br>
I'd be grateful if somebody could shed some light on this odd and annoying problem.<br>
<br>
Gib<br>
</div>
</div>
</div>
</div>
</body>
</html>