I found out the reason was that I disabled VTK_USE_INFOVIS.<div><br></div><div><br><div class="gmail_quote">On Sat, Mar 17, 2012 at 3:58 PM, Yifei Li <span dir="ltr">&lt;<a href="mailto:yifli82@gmail.com">yifli82@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">David,<div><br></div><div>It is on, as seen from the following line in CMakeCache.txt</div>
<div><br></div><div><div>//Build the vtkViews kit.  Needed for creating packaged and linked</div><div>
// views.</div><div>VTK_USE_VIEWS:INTERNAL=ON</div><div><div>
<div><br></div><div><br></div><br><div class="gmail_quote">On Sat, Mar 17, 2012 at 3:49 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Yifei,<br>
<br>
Make sure VTK_USE_VIEWS:BOOL=ON<br>
<span><font color="#888888"><br>
 - David<br>
</font></span><div><div><br>
<br>
On Sat, Mar 17, 2012 at 1:47 PM, Yifei Li &lt;<a href="mailto:yifli82@gmail.com" target="_blank">yifli82@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I got this error<br>
&gt;<br>
&gt; [ 97%] Built target QVTKWidgetPlugin<br>
&gt; [ 97%] Building CXX object<br>
&gt; GUISupport/Qt/CMakeFiles/vtkQtPythonD.dir/vtkQtAnnotationViewPython.cxx.o<br>
&gt; In file included from<br>
&gt; /home/yifli/VTK/GUISupport/Qt/vtkQtAnnotationView.h:32,<br>
&gt;                  from<br>
&gt; /home/yifli/VTK/build/GUISupport/Qt/vtkQtAnnotationViewPython.cxx:13:<br>
&gt; /home/yifli/VTK/GUISupport/Qt/vtkQtView.h:25:21: error: vtkView.h: No such<br>
&gt; file or directory<br>
&gt;<br>
&gt;<br>
&gt; Does anyone know how to fix it? Thanks<br>
&gt;<br>
&gt; Yifei<br>
</div></div></blockquote></div><br></div></div></div>
</div><br>
</div></div></blockquote></div><br></div>