Thanks Shekhar and Matthias.<br><br>I was getting the error because I was using a different version of cmake to compile my project that the one I used earlier to compile VTK. Once I recompiled VTK with the newer version of CMake, it worked fine.<br>
<br>Regards,<br>Shriram<br><br><div class="gmail_quote">On Fri, Mar 14, 2008 at 3:04 AM, Matthias Riechmann &lt;<a href="mailto:riechmann@ira.uka.de">riechmann@ira.uka.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Shiram,<br>
<br>
I&#39;m working on an application depending on Qt, VTK and ITK alltogether<br>
and so far I didn&#39;t encounter any principal problems building it with<br>
CMake except maybe some pitfalls at the beginning. And it&#39;s really<br>
platform independant, I have compiled applications on Windows, Mac OS<br>
and Linux.<br>
What might help for finding your problem: Post your CMakeLists.txt and<br>
maybe the UseVTK.cmake that causes so much trouble. Which version of VTK<br>
are you currently using?<br>
<br>
<br>
Matthias<br>
<br>
<br>
<br>
<br>
Shriram Iyer schrieb:<br>
<div><div></div><div class="Wj3C7c">&gt; Hi everyone,<br>
&gt;<br>
&gt; I need help with getting cmake to work on a Mac for compiling VTK + Qt<br>
&gt; applications. I was able to compile Qt 4.3.4 and VTK 5.0.4 without too<br>
&gt; much trouble. But now, when I try running cmake on my project I get the<br>
&gt; following error:<br>
&gt;<br>
&gt; -- Loading VTK CMake commands<br>
&gt; CMake Error: Error in cmake code at<br>
&gt; #:7:<br>
&gt; LOAD_COMMAND Attempt to load command failed from file<br>
&gt; &quot;libcmVTK_WRAP_TCL2.so&quot;<br>
&gt; Current CMake stack:<br>
&gt; [2] &nbsp; &nbsp;/usr/local/lib/vtk-5.0/UseVTK.cmake<br>
&gt; [1] &nbsp; &nbsp;/Users/shriram/Development/Endurance/CMakeLists.txt<br>
&gt; CMake Error: Error in cmake code at<br>
&gt; /usr/local/lib/vtk-5.0/UseVTK.cmake:35:<br>
&gt; A command failed during the invocation of macro<br>
&gt; &quot;VTK_LOAD_SINGLE_CMAKE_EXTENSION&quot;.<br>
&gt; CMake Error: Error in cmake code at<br>
&gt; #:27:<br>
&gt; VTK_LOAD_SINGLE_CMAKE_EXTENSION unknown error.<br>
&gt; Current CMake stack:<br>
&gt; [2] &nbsp; &nbsp;/usr/local/lib/vtk-5.0/UseVTK.cmake<br>
&gt; [1] &nbsp; &nbsp;/Users/shriram/Development/Endurance/CMakeLists.txt<br>
&gt; CMake Error: Error in cmake code at<br>
&gt; /usr/local/lib/vtk-5.0/UseVTK.cmake:35:<br>
&gt; A command failed during the invocation of macro &quot;VTK_LOAD_CMAKE_EXTENSIONS&quot;.<br>
&gt; CMake Error: Error in cmake code at<br>
&gt; /usr/local/lib/vtk-5.0/UseVTK.cmake:35:<br>
&gt; VTK_LOAD_CMAKE_EXTENSIONS unknown error.<br>
&gt; Current CMake stack:<br>
&gt; [2] &nbsp; &nbsp;/usr/local/lib/vtk-5.0/UseVTK.cmake<br>
&gt; [1] &nbsp; &nbsp;/Users/shriram/Development/Endurance/CMakeLists.txt<br>
&gt; The end of a CMakeLists file was reached with an IF statement that was<br>
&gt; not closed properly.<br>
&gt; Within the directory: /Users/shriram/Development/Endurance<br>
&gt; The arguments are: VTK_NEED_LOADED_COMMANDS<br>
&gt; The end of a CMakeLists file was reached with an IF statement that was<br>
&gt; not closed properly.<br>
&gt; Within the directory: /Users/shriram/Development/Endurance<br>
&gt; The arguments are: COMMAND VTK_WRAP_TCL2<br>
&gt; -- Found Qt-Version 4.3.4<br>
&gt; The end of a CMakeLists file was reached with an IF statement that was<br>
&gt; not closed properly.<br>
&gt; Within the directory: /Users/shriram/Development/Endurance<br>
&gt; The arguments are: VTK_NEED_LOADED_COMMANDS<br>
&gt; The end of a CMakeLists file was reached with an IF statement that was<br>
&gt; not closed properly.<br>
&gt; Within the directory: /Users/shriram/Development/Endurance<br>
&gt; The arguments are: COMMAND VTK_WRAP_TCL2<br>
&gt; -- Configuring done<br>
&gt;<br>
&gt; I&#39;m not sure what&#39;s causing the problem here. I have tried three<br>
&gt; versions of cmake including the CVS version.<br>
&gt;<br>
&gt; Any help would be greatly appreciated.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Shriram<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="Wj3C7c">&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--------------------------------------------------------<br>Shriram Iyer<br>Research Assistant<br>Electronic Visualization Laboratory<br>University of Illinois at Chicago<br>
Phone: 773-574-2081<br>E-mail: <a href="mailto:siyer6@uic.edu">siyer6@uic.edu</a>