[Insight-users] ITK and Python wrapper - build on mac osx 10.6

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Jan 25 16:11:19 EST 2011


Le 25 janv. 11 à 13:36, Massimo Di Stefano a écrit :

> Hi All,

Hi Massimo,

>
> I'm new to ITK

Welcome to ITK!

> i'm tring to build it on a mac osx 10.6
> i'm using the developer version, using cmake and itk wrap set to ON
> seems i'm able to have a succesfull build but it fails at the make  
> install step see the log :
>
>
> -- Up-to-date: /usr/local/lib/InsightToolkit-4.0/WrapITK/ 
> Configuration/Languages/GccXML/gcc_xml.inc.in
> -- Up-to-date: /usr/local/lib/InsightToolkit-4.0/WrapITK/ 
> Configuration/Languages/GccXML/wrap_.cxx.in
> CMake Error at Wrapping/WrapITK/Libraries/VXLNumerics/ 
> cmake_install.cmake:31 (FILE):
>  file INSTALL cannot find
>  "/Users/Shared/src/ITK/build/Wrapping/WrapITK/Typedefs/ 
> vcl_complex.idx".
> Call Stack (most recent call first):
>  Wrapping/WrapITK/Libraries/cmake_install.cmake:32 (INCLUDE)
>  Wrapping/WrapITK/cmake_install.cmake:51 (INCLUDE)
>  Wrapping/cmake_install.cmake:32 (INCLUDE)
>  cmake_install.cmake:46 (INCLUDE)
>
>
> make: *** [install] Error 1

So you're not building python support there?

>
>
> but i'm really intersted in the ITK python bindings, unlucky if i  
> set to ON
> the python wrapper :
>
> WRAP_ITK_PYTHON                  ON
>
> the build give me errors :
>
> /Users/Shared/src/ITK/build/Wrapping/WrapITK/Languages/Python/PyBase/ 
> pyBasePython.cpp:96202:   instantiated from here
> /Users/Shared/src/ITK/build/Wrapping/WrapITK/Languages/Python/PyBase/ 
> pyBasePython.cpp:4881: warning: deprecated conversion from string  
> constant to ‘char*’
> Linking CXX shared module ../../../../../bin/_ITKPyBasePython.so
> [ 21%] Built target ITKPyBasePython
> Scanning dependencies of target VXLNumericsIdx
> [ 21%] Generating vcl_complex.xml
> In file included from /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/ 
> xmmintrin.h:40,
>                 from /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/ 
> emmintrin.h:35,
>                 from /Users/Shared/src/ITK/Code/Common/ 
> itkMathDetail.h:42,
>                 from /Users/Shared/src/ITK/Code/Common/itkMath.h:32,
>                 from /Users/Shared/src/ITK/Code/Common/itkIndex.h:23,
>                 from /Users/Shared/src/ITK/Code/Review/ 
> itkLabelObjectLine.h:21,
>                 from /Users/Shared/src/ITK/Code/Review/ 
> itkLabelObject.h:23,
>                 from /Users/Shared/src/ITK/Code/Review/ 
> itkShapeLabelObject.h:21,
>                 from /Users/Shared/src/ITK/Code/Review/ 
> itkStatisticsLabelObject.h:21,
>                 from /Users/Shared/src/ITK/build/Wrapping/WrapITK/ 
> Libraries/VXLNumerics/vcl_complex.cxx:2:
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h: In  
> function 'void _mm_empty()':
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:68: error:  
> '__builtin_ia32_emms' was not declared in this scope
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h: In  
> function 'long long int __vector__ _mm_cvtsi32_si64(int)':
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:85: error:  
> '__builtin_ia32_vec_init_v2si' was not declared in this scope
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h: In  
> function 'int _mm_cvtsi64_si32(long long int __vector__)':
>
>
> i posted the full make log on :
>
> http://www.geofemengineering.it/data/itk_build_log.txt
>


The warning may be caused by an old swig version. What is the swig  
version you are using?

The error may be caused by an old version of cable swig. What version  
are you using?

Thanks,

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

-------------- 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/20110125/74d47998/attachment.pgp>


More information about the Insight-users mailing list