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 <<a href="mailto:riechmann@ira.uka.de">riechmann@ira.uka.de</a>> 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'm working on an application depending on Qt, VTK and ITK alltogether<br>
and so far I didn't encounter any principal problems building it with<br>
CMake except maybe some pitfalls at the beginning. And it'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">> Hi everyone,<br>
><br>
> I need help with getting cmake to work on a Mac for compiling VTK + Qt<br>
> applications. I was able to compile Qt 4.3.4 and VTK 5.0.4 without too<br>
> much trouble. But now, when I try running cmake on my project I get the<br>
> following error:<br>
><br>
> -- Loading VTK CMake commands<br>
> CMake Error: Error in cmake code at<br>
> #:7:<br>
> LOAD_COMMAND Attempt to load command failed from file<br>
> "libcmVTK_WRAP_TCL2.so"<br>
> Current CMake stack:<br>
> [2] /usr/local/lib/vtk-5.0/UseVTK.cmake<br>
> [1] /Users/shriram/Development/Endurance/CMakeLists.txt<br>
> CMake Error: Error in cmake code at<br>
> /usr/local/lib/vtk-5.0/UseVTK.cmake:35:<br>
> A command failed during the invocation of macro<br>
> "VTK_LOAD_SINGLE_CMAKE_EXTENSION".<br>
> CMake Error: Error in cmake code at<br>
> #:27:<br>
> VTK_LOAD_SINGLE_CMAKE_EXTENSION unknown error.<br>
> Current CMake stack:<br>
> [2] /usr/local/lib/vtk-5.0/UseVTK.cmake<br>
> [1] /Users/shriram/Development/Endurance/CMakeLists.txt<br>
> CMake Error: Error in cmake code at<br>
> /usr/local/lib/vtk-5.0/UseVTK.cmake:35:<br>
> A command failed during the invocation of macro "VTK_LOAD_CMAKE_EXTENSIONS".<br>
> CMake Error: Error in cmake code at<br>
> /usr/local/lib/vtk-5.0/UseVTK.cmake:35:<br>
> VTK_LOAD_CMAKE_EXTENSIONS unknown error.<br>
> Current CMake stack:<br>
> [2] /usr/local/lib/vtk-5.0/UseVTK.cmake<br>
> [1] /Users/shriram/Development/Endurance/CMakeLists.txt<br>
> The end of a CMakeLists file was reached with an IF statement that was<br>
> not closed properly.<br>
> Within the directory: /Users/shriram/Development/Endurance<br>
> The arguments are: VTK_NEED_LOADED_COMMANDS<br>
> The end of a CMakeLists file was reached with an IF statement that was<br>
> not closed properly.<br>
> Within the directory: /Users/shriram/Development/Endurance<br>
> The arguments are: COMMAND VTK_WRAP_TCL2<br>
> -- Found Qt-Version 4.3.4<br>
> The end of a CMakeLists file was reached with an IF statement that was<br>
> not closed properly.<br>
> Within the directory: /Users/shriram/Development/Endurance<br>
> The arguments are: VTK_NEED_LOADED_COMMANDS<br>
> The end of a CMakeLists file was reached with an IF statement that was<br>
> not closed properly.<br>
> Within the directory: /Users/shriram/Development/Endurance<br>
> The arguments are: COMMAND VTK_WRAP_TCL2<br>
> -- Configuring done<br>
><br>
> I'm not sure what's causing the problem here. I have tried three<br>
> versions of cmake including the CVS version.<br>
><br>
> Any help would be greatly appreciated.<br>
><br>
> Regards,<br>
> Shriram<br>
><br>
><br>
</div></div><div><div></div><div class="Wj3C7c">> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> This is the private VTK discussion list.<br>
> 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>
> 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>
</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>