Hi everyone,<br><div class="gmail_quote"><br>I need help with getting cmake to work on a Mac for compiling VTK + Qt applications. I was able to compile Qt 4.3.4 and VTK 5.0.4 without too much trouble. But now, when I try running cmake on my project I get the 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 &quot;libcmVTK_WRAP_TCL2.so&quot;<br>Current CMake stack: <br>[2]&nbsp;&nbsp;&nbsp; /usr/local/lib/vtk-5.0/UseVTK.cmake<br>

[1]&nbsp;&nbsp;&nbsp; /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 &quot;VTK_LOAD_SINGLE_CMAKE_EXTENSION&quot;.<br>

CMake Error: Error in cmake code at<br>#:27:<br>VTK_LOAD_SINGLE_CMAKE_EXTENSION unknown error.<br>Current CMake stack: <br>[2]&nbsp;&nbsp;&nbsp; /usr/local/lib/vtk-5.0/UseVTK.cmake<br>[1]&nbsp;&nbsp;&nbsp; /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 &quot;VTK_LOAD_CMAKE_EXTENSIONS&quot;.<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]&nbsp;&nbsp;&nbsp; /usr/local/lib/vtk-5.0/UseVTK.cmake<br>[1]&nbsp;&nbsp;&nbsp; /Users/shriram/Development/Endurance/CMakeLists.txt<br>The end of a CMakeLists file was reached with an IF statement that was 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 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 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 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&#39;m not sure what&#39;s causing the problem here. I have tried three versions of cmake including the CVS version. <br>
<br>Any help would be greatly appreciated.<br><br>Regards,<br>Shriram<div><div></div><br></div></div>