[Insight-users] Error building ITK-4.0 with Python wrapping

Oscar Esteban oesteban at die.upm.es
Mon Jun 27 12:09:46 EDT 2011


Hi,

I'm trying to compile ITK-4.0 on Ubuntu 11.04 (natty) with Python wrapping.
CMake, libstd, libc, python & gcc are the standard packages of the
distribution. I use icecc for distributed compilation.

If I try without Python bindings, everything is fine (it builds without
errors). But, when enabling this feature on CMake, I get some errors. At
first time, error was some missing parameters on "swig", so I tried with
several version [error compiling itk 4.0 swig error : Unrecognized option
-O]. Right now, VXL seems to be the problem.

I've tried:

   - swig2.0 from ubuntu (build log: http://db.tt/HEj8T4m , CMakeCache.txt
   http://db.tt/ORCJ6VM)
   - swig1.3 from ubuntu (build log:http://db.tt/V2pIBzO , CMakeCache.txt:
   http://db.tt/rNhnuvj )
   - cableswig from ubuntu (build log: http://db.tt/8BgMm0x ,
   CMakeCache.txt: http://db.tt/bBAEySy )
   - CableSwig code downloaded from the repository of ITK-3.20. ( build log:
   http://db.tt/EyqPzyD , CMakeCache.txt: http://db.tt/plNF2vx)

I've tried several times, enabling and disabling several options:


   - WRAP_ITK_GCCXML
   - WRAP_ITK_SWIGINTERFACE (I think that the forementionded problems with
   swig came if this is enabled)


For wrapping, I'm following the next guides:

   - http://www.itk.org/Wiki/ITK_Release_4/Wrapping/BuildProcess
   - http://www.itk.org/Wiki/ITK_Release_4/Wrapping/WrapITK_Installation

If I use the system's VXL libraries, I get the next error:

[ 14%] [ 14%] [ 14%] Building C object
> Modules/ThirdParty/NrrdIO/src/NrrdIO/CMakeFiles/ITKNrrdIO.dir/dio.c.o
> In file included from
> /home/oesteban/workspace/itk-4.0/ITK/Modules/ThirdParty/NrrdIO/src/NrrdIO/NrrdIO.h:25:0,
>                  from
> /home/oesteban/workspace/itk-4.0/ITK/Modules/ThirdParty/NrrdIO/src/NrrdIO/754.c:25:
> /home/oesteban/workspace/itk-4.0/build/Modules/ThirdParty/NrrdIO/src/NrrdIO/NrrdConfigure.h:11:26:
> error: operator '==' has no left operand



Thanks in advance. Best regards,
Oscar Esteban


*______________________________________*
*Oscar Esteban*
PhD Student / Researcher
Biomedical Image Technologies (Universidad Politécnica de Madrid)

ETSI Telecomunicación (Lab. C203)
Av. Complutense s/n - E-28040 Madrid (Spain)
+34 915 495 700 ext.4234
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110627/91c740f8/attachment.htm>


More information about the Insight-users mailing list