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"><<a href="mailto:rupinder.singh@nsitonline.in">rupinder.singh@nsitonline.in</a>></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"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></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>
<<a href="mailto:rupinder.singh@nsitonline.in" target="_blank">rupinder.singh@nsitonline.in</a>> wrote:<br>
> Hey,<br>
><br>
> This is my first time with ccmake and I think I'm missing something. I'm<br>
> following the README. Here's what I did: I created VTK/VTK-build, created<br>
> VTK-build/Makefiles and copied CMakelists.txt to it. Then "ccmake -G Unix<br>
> Makefiles" from VTK-build. I get a few errors:<br>
><br>
> =====<br>
> CMake Error at CMakeLists.txt:67 (INCLUDE):<br>
> include could not find load file:<br>
> vtkCompilerExtras<br>
> ... <many other INCLUDE><br>
><br>
> CMake Error at CMakeLists.txt:143 (FILE):<br>
> file Internal CMake error when trying to open file:<br>
> /home/rupinder/VTK/VTK-build/<br>
> Makefiles/CMake/vtkRequireLargeFilesSupport.cxx<br>
> for reading.<br>
><br>
> CMake Error at CMakeLists.txt:171 (INCLUDE):<br>
> include could not find load file:<br>
> SharedLibraryPathVarName<br>
><br>
> CMake Error at CMakeLists.txt:316 (VTK_DEPENDENT_OPTION):<br>
> Unknown CMake command "VTK_DEPENDENT_OPTION".<br>
><br>
> =======<br>
><br>
> Guess I'm missing something. Any ideas ?<br>
><br>
> Thanks,<br>
> 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'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>