[Insight-users] CSWIG compilation issue

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Jul 9 04:00:57 EDT 2007


Le 7 juil. 07 à 23:34, Arthur Mikhno a écrit :

> Thanks,
>
> I thought WrapITK "requires" cableswig... I tried the flag and it  
> worked but my WrapITK still fails with a runtime error. It would  
> preferable like to compile WrapITK bindings for python without  
> cableswig.

It currently requires cableswig. I hope that, in the future, it can  
build with a native swig.
What is your runtime error ?

>
> Do you happen to know the best way to do this? Also, which versions  
> of python, cableswig, itk generally work together well. I have been  
> reading a lot of posts that say it will not compile on a 64bit system.

WrapITK (the one included in ITK 3.2) works fine with python 2.4 on  
64 bits systems. There is currently no simple way to make it work on  
a 64 bits system with python 2.5.

>
> I have a Mac Core2Duo Tiger.

On a mac you should use python 2.5 (the binary one from the python  
website is fine) and the -fpermissive flag.

Gaëtan

>
> Arthur
>
> On 7/7/07, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
> Hi,
>
> The way around them is to upgrade the version of swig used internally
> by cableswig - nothing straightforward - or to drop cableswig and
> switch to a native swig to wrap itk - still nothing straightforward.
> In the mean time, you can turn the errors to warnings by using the -
> fpermissive gcc flag.
>
> Regards,
>
> Gaëtan
>
>
>
> Le 7 juil. 07 à 22:29, Arthur Mikhno a écrit :
>
> > Hi Kayhan,
> >
> > I am trying to compile ITK Python Wrappings with CableSwig, I keep
> > getting the following errors:
> >
> > /Develop/build/itk/Wrapping
> > /CSwig/CommonA/SwigExtras_wrapPython.cxx:1322: warning: invalid
> > conversion from 'int*' to 'Py_ssize_t*'
> > /Develop/build/itk/Wrapping/CSwig/CommonA/SwigExtras_wrapPython.cxx:
> > 1322: warning:   initializing argument 3 of 'int
> > PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)'
> >
> > I noticed you are getting similar warnings. Did you ever find a way
> > around them?
> > http://public.kitware.com/pipermail/insight-users/2007-May/ 
> 022414.html
> >
> > Mac
> > Core2Duo
> > Cmake 2.4-patch6
> > ITK 3.2
> > Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
> > _______________________________________________
> > 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
>
>
>
>
>

--
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/20070709/82039703/PGP.pgp


More information about the Insight-users mailing list