<span class="gmail_quote"></span>Hello,<br>I have successfully compiled VTK5, and made some tests, it is working fine.<br>I wanted do use KWwidgets, and to do so i need to compile VTK5 with the option VTK_WRAP_TCL set ON.<br>
I Compiled it, after installing the tcl and tk dev packages with no problem, but when i tested the examples again,
<br>cmake cannot create a makefile, and show the following errors:<br><br><font size="1">locke@blackbox:~/VTK/Examples/Tutorial/Step1/Cxx$ cmake .<br>-- Loading VTK CMake commands<br>CMake Error: Error in cmake code at<br>
FILE:7:<br>LOAD_COMMAND Attempt to load command failed from file "libcmVTK_WRAP_TCL2.so"<br>Current CMake stack: /home/locke/VTK/Examples/Tutorial/Step1/Cxx/CMakeLists.txt;/usr/share/CMake/Modules/CMakeCInformation.cmake;/usr/share/CMake/Modules/CMakeCXXInformation.cmake;/usr/local/lib/vtk-
5.0/UseVTK.cmake<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_SINGLE_CMAKE_EXTENSION".<br>CMake Error: Error in cmake code at
<br>FILE:27:<br>VTK_LOAD_SINGLE_CMAKE_EXTENSION unknown error.<br>Current CMake stack: /home/locke/VTK/Examples/Tutorial/Step1/Cxx/CMakeLists.txt;/usr/share/CMake/Modules/CMakeCInformation.cmake;/usr/share/CMake/Modules/CMakeCXXInformation.cmake;/usr/local/lib/vtk-
5.0/UseVTK.cmake<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: /home/locke/VTK/Examples/Tutorial/Step1/Cxx/CMakeLists.txt;/usr/share/CMake/Modules/CMakeCInformation.cmake;/usr/share/CMake/Modules/CMakeCXXInformation.cmake;/usr/local/lib/vtk-
5.0/UseVTK.cmake<br>The end of a CMakeLists file was reached with an IF statement that was not closed properly.<br>Within the directory: /home/locke/VTK/Examples/Tutorial/Step1/Cxx<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: /home/locke/VTK/Examples/Tutorial/Step1/Cxx<br>The arguments are: COMMAND VTK_WRAP_TCL2<br>The end of a CMakeLists file was reached with an IF statement that was not closed properly.
<br>Within the directory: /home/locke/VTK/Examples/Tutorial/Step1/Cxx<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: /home/locke/VTK/Examples/Tutorial/Step1/Cxx
<br>The arguments are: COMMAND VTK_WRAP_TCL2<br>-- Configuring done<br>CMake Error: Unable to open check cache file for write. /home/locke/VTK/Examples/Tutorial/Step1/Cxx/CMakeFiles/cmake.check_cache<br></font><br clear="all">
I tried to run cmake with both user and root priveliges but the result was the same.<br>I don't know what the problem might be... :S<br>Can anyone give me a hand? <br><span class="sg">-- <br>Pedro Amaral<br><br><a href="mailto:pedr.amaral@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
pedr.amaral@gmail.com</a>
</span><br clear="all"><br><br>