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

Massimo Di Stefano massimodisasha at gmail.com
Tue Jan 25 19:38:59 EST 2011


Il giorno 25/gen/2011, alle ore 16.11, Gaëtan Lehmann ha scritto:

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

Hi Gaëtan,

> 
>> 
>> I'm new to ITK
> 
> Welcome to ITK!

thanks to help me :-)

> 
>> 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?


yes, here i have :  

WRAP_ITK_PYTHON                  OFF


> 
>> 
>> 
>> 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?

swig -version gived me :

SWIG Version 1.3.31

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

i used a stable version :

CableSwig-3.20.0

> 
> Thanks,
> 
> Gaëtan

I can try to update both swig and cableswig to the dev versions 
and try to make a new ITK build


Thanks,

Massimo


> 
> -- 
> 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
> 



More information about the Insight-users mailing list