[Insight-users] CSWIG compilation issue

Kayhan Batmanghelich kayhan_batman at yahoo.com
Tue Jun 5 12:18:34 EDT 2007


Hi,

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:

CPU:  Dual core 2
OS: Linux Suse 10.2
InsightToolkit-3.2.0
vtkdata-5.0.3
Python 2.5 (r25:51908, Jan  9 2007, 17:00:50)
ccmake version 2.4-patch 3
CableSwig-ITK-3.2.0

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).

Here is the error message I received:
*********************************************
................
  init module: vnl_vector_ref
Scanning dependencies of target _VXLNumericsPython
[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrixPython.o
[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_vectorPython.o
[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_c_vectorPython.o
[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_diag_matrixPython.o
[ 45%] Building CXX object Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_file_matrixPython.o
/home/batmangn/bin/InsightToolkit-3.2.0/Wrapping/CSwig/VXLNumerics/wrap_vnl_file_matrixPython.cxx: In function ‘int SWIG_AsCharPtrAndSize(PyObject*, char**, size_t*)’:
/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*)’
make[2]: *** [Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_file_matrixPython.o] Error 1
make[1]: *** [Wrapping/CSwig/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/all] Error 2
make: *** [all] Error 2

******************************************
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.


Sincerely,
Kayhan    





       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070605/c853847c/attachment.htm


More information about the Insight-users mailing list