Hi Rupinder,<div><br></div><div><br></div><div>You need the entire source tree not just the CMakeLists.txt to be in your source directory.</div><div><br></div><div>What you should do is untar the vtk source into a directory, for example VTK. Adjacent to that directory create a build tree, VTK-build. Then in VTK-build run ccmake, passing it the source tree path as an argument. for example.</div>

<div><br></div><div>tar -zxvf vtk-5.6.1.tar.gz VTK</div><div>mkdir VTK-build</div><div>cd VTK-build</div><div>ccmake ../VTK</div><div><br><div class="gmail_quote">On Mon, Mar 28, 2011 at 3:42 PM, Rupinder Singh <span dir="ltr">&lt;<a href="mailto:rupinder.singh@nsitonline.in">rupinder.singh@nsitonline.in</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 1:07 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div><div></div><div>On Mon, Mar 28, 2011 at 3:34 PM, Rupinder Singh<br>
&lt;<a href="mailto:rupinder.singh@nsitonline.in" target="_blank">rupinder.singh@nsitonline.in</a>&gt; wrote:<br>
&gt; Hey,<br>
&gt;<br>
&gt; This is my first time with ccmake and I think I&#39;m missing something. I&#39;m<br>
&gt; following the README. Here&#39;s what I did: I created VTK/VTK-build, created<br>
&gt; VTK-build/Makefiles and copied CMakelists.txt to it. Then &quot;ccmake -G Unix<br>
&gt; Makefiles&quot; from VTK-build. I get a few errors:<br>
&gt;<br>
&gt; =====<br>
&gt; CMake Error at CMakeLists.txt:67 (INCLUDE):<br>
&gt;    include could not find load file:<br>
&gt;      vtkCompilerExtras<br>
&gt; ... &lt;many other INCLUDE&gt;<br>
&gt;<br>
&gt; CMake Error at CMakeLists.txt:143 (FILE):<br>
&gt;    file Internal CMake error when trying to open file:<br>
&gt;    /home/rupinder/VTK/VTK-build/<br>
&gt; Makefiles/CMake/vtkRequireLargeFilesSupport.cxx<br>
&gt;    for reading.<br>
&gt;<br>
&gt;  CMake Error at CMakeLists.txt:171 (INCLUDE):<br>
&gt;    include could not find load file:<br>
&gt;      SharedLibraryPathVarName<br>
&gt;<br>
&gt;  CMake Error at CMakeLists.txt:316 (VTK_DEPENDENT_OPTION):<br>
&gt;    Unknown CMake command &quot;VTK_DEPENDENT_OPTION&quot;.<br>
&gt;<br>
&gt; =======<br>
&gt;<br>
&gt; Guess I&#39;m missing something. Any ideas ?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Rupinder<br>
<br>
</div></div>Which readme are you following?<br>
<br>
Are you trying to build VTK? Or build you own code and link it to VTK?<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br></div></div>VTK/README.html#Building. Yes, I&#39;m trying to build VTK from sources.<br><font color="#888888"><br>-Rupinder<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>