<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:14pt"><div><pre>Hi,<br><br>This is my first time compiling ITK with CableSwig. I experienced following problem compiling ITK with  CableSwig when I turned    "ITK_CSWIG_PYTHON" ON.  I also turn "USE_OF_NUMPY" on. Here is version of packages I am using:<br><br>CPU:  Dual core 2<br>OS: Linux Suse 10.2<br>InsightToolkit-3.2.0<br>vtkdata-5.0.3<br>Python 2.5 (r25:51908, Jan  9 2007, 17:00:50)<br>ccmake version 2.4-patch 3<br>CableSwig-ITK-3.2.0<br><br>note: When I was compiling CSwig it complains about ccmake version but since I installed the previous version, Ididn't uninstall it, I just run new ccmake and it works (create the make file without any complain).<br><br>Here is the error message I received:<br>*********************************************<br>................<br>  init module: vnl_vector_ref<br>Scanning
 dependencies of target _VXLNumericsPython<br>[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrixPython.o<br>[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_vectorPython.o<br>[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_c_vectorPython.o<br>[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_diag_matrixPython.o<br>[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_file_matrixPython.o<br>/home/batmangn/bin/InsightToolkit-3.2.0/Wrapping/CSwig/VXLNumerics/wrap_vnl_file_matrixPython.cxx: In function ˇint SWIG_AsCharPtrAndSize(PyObject*, char**, size_t*)˘:<br>/home/batmangn/bin/InsightToolkit-3.2.0/Wrapping/CSwig/VXLNumerics/wrap_vnl_file_matrixPython.cxx:923: error: cannot convert ˇint*˘ to ˇPy_ssize_t*˘ for argument ˇ3˘ to ˇint
 PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)˘<br>make[2]: *** [Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_file_matrixPython.o] Error 1<br>make[1]: *** [Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/all] Error 2<br>make: *** [all] Error 2<br><br>******************************************<br>Do you think that it happens due to the cmake version issue. By the way,I think there is a minor mistake in  "cmake-2.4.6-Linux-i386.sh". In spite of the fact that the version of file is 2.4.6, when you install it using "sh cmake-2.4.6-Linux-i386.sh", the installed ccmake would be "2.4-patch 3" not "2.4-patch 6". I think it needs to be fixed. If you think that the problem was caused by cmake, I would be thankful if you tell how can I uninstall it because cmake; because installer distributed that in various places.<br><br><br>Sincerely,<br>Kayhan    <br><br></pre></div></div><br>
      <hr size=1>Get the Yahoo! toolbar and <a href="http://us.rd.yahoo.com/evt=48225/*http://new.toolbar.yahoo.com/toolbar/features/mail/index.php">be alerted to new email </a>wherever you're surfing. </body></html>