[Insight-users] help building ITK with WrapITK
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Fri Aug 21 10:21:29 EDT 2009
Le 19 août 09 à 19:42, Atwood, Robert (DLSLtd,RAL,DIA) a écrit :
> Thanks, Gaetan!
>
> I was just following the instructions at the web page you mention,
> it specifies that cableSwig should be installed. Upon following the
> link , I found the instructions for installing CableSwig, and
> followed them too. Perhaps it's not clear , do you need the
> CableSwig source to be present but not follow the instructions as
> referenced by the link?
>
>
> Thanks for any further clarification
> Robert
>
>>> quote<<
> You will need to install CMake to build CableSwig. Once you have
> CableSwig sources and CMake on your system, there are two ways to
> build CableSwig for ITK:
>
>
> ---> Do this-->>>
> Building inside ITK - If you are using CableSwig to wrap ITK, the
> easiest way to build it, is to checkout CableSwig in the Insight/
> Utilities directory, then CableSwig will be built as part of ITK. If
> not, then build it as you would any other CMake project.
>
> ....
>
>
> ---> but don't do this ? --->>
> Enable CSwig for ITK - When running CMake on ITK, show the advanced
> cache values with the cmake GUI (CMakeSetup or ccmake. Turn on the
> ITK_CSWIG_TCL and/or the ITK_CSWIG_PYTHON variables. If CableSwig is
> in the Utilities directory that is all you should need to do. If
> not, you will have to tell CMake were CableSwig has been built.
> CSWIG, CABLE_INDEX, and GCCXML will all need to be located for the
> wrapping process.
>>> end quote<<
>
>
That's a bit confusing, I must agree.
We have several things there, sometime with the same name :-(
* 3 different wrapping projects:
- CSwig in ITK sources
- WrapITK in ITK sources
- WrapITK at google code
* CableSwig, a package of several programs:
- cableswig (the program this time) is a modified version of swig
made to wrap itk
- gccxml
- cableidx
CableSwig (the package) is used by the three wrapping projects, but
cableswig (the program) is used only by the first two ones. WrapITK at
google code still uses gccxml and cableidx, but use the unmodified swig.
To build WrapITK at google code, you have to build CableSwig (the
project) outside ITK, and to build ITK without any CSWIG or WRAPITK
option set to ON.
Once done, you can either install CableSwig or use it from the source
tree to build WrapITK.
I'll try to add a note about that on wrapitk.googlecode.com.
HTH,
Gaëtan
>
>
>
>
>
> -----Original Message-----
> From: Gaëtan Lehmann [mailto:gaetan.lehmann at jouy.inra.fr]
> Sent: 19 August 2009 13:34
> To: Atwood, Robert (DLSLtd,RAL,DIA)
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] help building ITK with WrapITK
>
>
> Le 19 août 09 à 13:05, Atwood, Robert (DLSLtd,RAL,DIA) a écrit :
>
>> Hi.
>> As promised in my previous mail, I do indeed have a help request
>> involving WrapITK.
>>
>
> ...
>
>> 82 [ 74%] Building CXX object Wrapping/CSwig/SwigRuntime/CMakeFiles/
>> SwigRuntimePython.dir/swigrunPython.o
>
>
>
> Hi Robert,
>
> A few comments (sorry, it won't help for your build problem):
> * You shouldn't turn ITK_CSWIG_PYTHON on when using wrapitk. You may
> have some conflicts...
> * The version of swig used in cable swig is quite old. With python
> 2.6, it will produce some annoying warnings for each imported module.
> With python 2.6, you should prefer wrapitk 0.3.0: http://wrapitk.googlecode.com
>
> Regards,
>
> Gaëtan
>
>
> --
> 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 http://www.itk.org
> http://www.mandriva.org http://www.bepo.fr
>
> This e-mail and any attachments may contain confidential, copyright
> and or privileged material, and are for the use of the intended
> addressee only. If you are not the intended addressee or an
> authorised recipient of the addressee please notify us of receipt by
> returning the e-mail and do not use, copy, retain, distribute or
> disclose the information in or attached to the e-mail.
> Any opinions expressed within this e-mail are those of the
> individual and not necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any
> attachments are free from viruses and we cannot accept liability for
> any damage which you may sustain as a result of software viruses
> which may be transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in
> England and Wales with its registered office at Diamond House,
> Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11
> 0DE, United Kingdom
>
--
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 http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090821/5e851680/attachment-0001.pgp>
More information about the Insight-users
mailing list