[Insight-users] building ITK with Python wrappers on Ubuntu 13.04

Young Lee s43Lee at ucsd.edu
Sun Jun 30 17:50:29 EDT 2013


The default on Ubuntu13.04 is gcc-4.7.3.  But I suspected there was a 
problem with gcc so I tried it as well with gcc-4.4.7 that is in the 
Ubuntu repository. I got the identical error message with both versions 
of gcc.  On the RHEL 6.2 system where I got it to compile, it used 
gcc-4.4.6.


On 06/29/2013 03:35 PM, Bradley Lowekamp wrote:
> What version of gcc are you using?  There is a good chance that version is not supported by gcc_xml.
>
> On Jun 29, 2013, at 6:09 PM, Young Lee <s43Lee at ucsd.edu> wrote:
>
>> Hi,
>>
>> I was wondering if anyone had any suggestions on the error I'm getting when I try to build ITK 4.4.0 with Python wrappers on Ubuntu 13.04.  I'm able to build it OK on RHEL 6.2 and Ubuntu 12.04.  I can also build ITK4.4.0  on Ubntu 13.04 without problems if I turn off the Python wrappers option.  But when I try to build ITK4.4.0 with Python wrappers on Ubuntu 13.04,  I get the following error message:
>>
>> [ 43%] Generating vcl_complex.xml
>> In file included from /usr/include/endian.h:60,
>>                  from /usr/include/ctype.h:40,
>>                  from /usr/include/c++/4.7/cctype:44,
>>                  from /usr/include/c++/4.7/bits/localefwd.h:44,
>>                  from /usr/include/c++/4.7/string:45,
>>                  from /home/young/prog/Lin/ITK/InsightToolkit-4.4.0/Modules/Core/Common/include/itkMacro.h:46,
>>                  from /home/young/prog/Lin/ITK/InsightToolkit-4.4.0/Modules/Core/Common/include/itkLightObject.h:21,
>>                  from /home/young/prog/Lin/ITK/InsightToolkit-4.4.0/Modules/Core/Common/include/itkObject.h:31,
>>                  from /home/young/prog/Lin/ITK/InsightToolkit-4.4.0/Modules/Core/Common/include/itkCommand.h:21,
>>                  from /home/young/prog/Lin/ITK/ITKBuild4.4.0/Wrapping/Modules/ITKCommon/vcl_complex.cxx:1:
>> /usr/include/x86_64-linux-gnu/bits/byteswap.h: In function 'unsigned int __bswap_32(unsigned int)':
>> /usr/include/x86_64-linux-gnu/bits/byteswap.h:47: error: '__builtin_bswap32' was not declared in this scope
>> /usr/include/x86_64-linux-gnu/bits/byteswap.h: In function '__uint64_t __bswap_64(__uint64_t)':
>> /usr/include/x86_64-linux-gnu/bits/byteswap.h:111: error: '__builtin_bswap64' was not declared in this scope
>> make[2]: *** [Wrapping/Modules/ITKCommon/vcl_complex.xml] Error 1
>> make[1]: *** [Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonGccXML.dir/all] Error 2
>>
>> Thanks
>> Young
>>
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list