[Insight-users] CSWIG compilation issue
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Jun 5 16:17:54 EDT 2007
Hi Kayhan,
CableSwig uses an old swig version which as some problem with python
2.5.
If your system is 32 bits, you can set CMAKE_CXX_FLAGS to -
fpermissive with ccmake.
If your system is 64 bits, it wont build.
Note that you should prefer using WrapITK, especially with python.
Regards,
Gaëtan
Le 5 juin 07 à 18:18, Kayhan Batmanghelich a écrit :
> 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
>
>
> Get the Yahoo! toolbar and be alerted to new email wherever you're
> surfing.
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070605/0979c29c/PGP.pgp
More information about the Insight-users
mailing list